ONVIF:...Options(3pm)
π ONVIF::Media::Types::FocusOptions π
okay bestie, sit down, hydrate, and let me tell you about this little Perl module. it's ONVIF::Media::Types::FocusOptions β part of the ONVIF family, living its best life in the 3pm manual section (that's the Perl module section, iykyk). it's giving very much "one small piece of a big beautiful XML puzzle" and honestly? we're obsessed. π
β¨ NAME β¨
ONVIF::Media::Types::FocusOptions β no cap, that's the whole name, that's the whole vibe.
πΈ DESCRIPTION πΈ
so basically this is a Perl data type class for the XML Schema defined complexType FocusOptions, and it comes straight from the namespace http://www.onvif.org/ver10/schema. that's it. that's the whole job. it's a little Perl glow-up of an XML type, living in the ONVIF Media universe. π¦
π PROPERTIES π
the way these properties are RIGHT THERE for you β you can access each one with get_PROPERTY / set_PROPERTY methods. getters and setters, the classic duo, the main character energy of OO Perl. π
AutoFocusModesDefaultSpeedNearLimitFarLimit
four properties. four little icons. we love a tidy list. β¨
π₯ METHODS π₯
π new π
it's the constructor! the moment of creation! the birth of an object! π£ and here's the tea: the following data structure may be passed to new():
{ # ONVIF::Media::Types::FocusOptions
AutoFocusModes => $some_value, # AutoFocusMode
DefaultSpeed => { # ONVIF::Media::Types::FloatRange
Min => $some_value, # float
Max => $some_value, # float
},
NearLimit => { # ONVIF::Media::Types::FloatRange
Min => $some_value, # float
Max => $some_value, # float
},
FarLimit => { # ONVIF::Media::Types::FloatRange
Min => $some_value, # float
Max => $some_value, # float
},
},
look at that. a nested hashref. DefaultSpeed, NearLimit and FarLimit are all ONVIF::Media::Types::FloatRange situations, each one rocking a Min and a Max that are both floats, while AutoFocusModes is just sitting there being an AutoFocusMode. literal perfection. π«Ά
pro tip from your girl: $some_value is a placeholder, bestie β swap it for your actual values, don't pass the literal string, I'm begging π
π AUTHOR π
Generated by SOAP::WSDL. it wrote itself, we just showed up and slayed. β¨
and that's the whole page, babe! before you go β the tiny fine print at the bottom says this is perl v5.40.1, dated 2026-02-01, and it lives in the ONVIF:...Options(3pm) corner of the manual. so go forth, construct your FocusOptions, set your properties, and be iconic. bye bestie!! πππ¦πΈβππ
π¦ where this page comes from
- ubuntu resolute: zoneminder 1.36.37+dfsg1-1 Β· GPL-2.0-or-later
- ubuntu stonking: zoneminder 1.36.37+dfsg1-1 Β· GPL-2.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms