modelgbp Generated OpFlex Model  1.7.0
modelgbp::inv::SearchListEntry Class Reference
Inheritance diagram for modelgbp::inv::SearchListEntry:

Public Member Functions

bool isNameSet ()
 Check whether name has been set. More...
 
boost::optional< const std::string & > getName ()
 Get the value of name if it has been set. More...
 
const std::string & getName (const std::string &defaultValue)
 Get the value of name if set, otherwise the value of default passed in. More...
 
modelgbp::inv::SearchListEntrysetName (const std::string &newValue)
 Set name to the specified value in the currently-active mutator. More...
 
modelgbp::inv::SearchListEntryunsetName ()
 Unset name in the currently-active mutator. More...
 
void remove ()
 Remove this instance using the currently-active mutator. More...
 
 SearchListEntry (opflex::ofcore::OFFramework &framework, const opflex::modb::URI &uri, const OF_SHARED_PTR< const opflex::modb::mointernal::ObjectInstance > &oi)
 Construct an instance of SearchListEntry. More...
 

Static Public Member Functions

static boost::optional< OF_SHARED_PTR< modelgbp::inv::SearchListEntry > > resolve (opflex::ofcore::OFFramework &framework, const opflex::modb::URI &uri)
 Retrieve an instance of SearchListEntry from the managed object store. More...
 
static boost::optional< OF_SHARED_PTR< modelgbp::inv::SearchListEntry > > resolve (const opflex::modb::URI &uri)
 Retrieve an instance of SearchListEntry from the managed object store using the default framework instance. More...
 
static boost::optional< OF_SHARED_PTR< modelgbp::inv::SearchListEntry > > resolve (opflex::ofcore::OFFramework &framework, const std::string &invLocalEndpointInventoryName, const std::string &invLocalInventoryEpUuid, const std::string &invSearchListEntryName)
 Retrieve an instance of SearchListEntry from the managed object store by constructing its URI from the path elements that lead to it. More...
 
static boost::optional< OF_SHARED_PTR< modelgbp::inv::SearchListEntry > > resolve (const std::string &invLocalEndpointInventoryName, const std::string &invLocalInventoryEpUuid, const std::string &invSearchListEntryName)
 Retrieve an instance of SearchListEntry from the default managed object store by constructing its URI from the path elements that lead to it. More...
 
static void remove (opflex::ofcore::OFFramework &framework, const opflex::modb::URI &uri)
 Remove the SearchListEntry object with the specified URI using the currently-active mutator. More...
 
static void remove (const opflex::modb::URI &uri)
 Remove the SearchListEntry object with the specified URI using the currently-active mutator and the default framework instance. More...
 
static void remove (opflex::ofcore::OFFramework &framework, const std::string &invLocalEndpointInventoryName, const std::string &invLocalInventoryEpUuid, const std::string &invSearchListEntryName)
 Remove the SearchListEntry object with the specified path elements from the managed object store. More...
 
static void remove (const std::string &invLocalEndpointInventoryName, const std::string &invLocalInventoryEpUuid, const std::string &invSearchListEntryName)
 Remove the SearchListEntry object with the specified path elements from the managed object store using the default framework instance. More...
 
static void registerListener (opflex::ofcore::OFFramework &framework, opflex::modb::ObjectListener *listener)
 Register a listener that will get called for changes related to this class. More...
 
static void registerListener (opflex::modb::ObjectListener *listener)
 Register a listener that will get called for changes related to this class with the default framework instance. More...
 
static void unregisterListener (opflex::ofcore::OFFramework &framework, opflex::modb::ObjectListener *listener)
 Unregister a listener from updates to this class. More...
 
static void unregisterListener (opflex::modb::ObjectListener *listener)
 Unregister a listener from updates to this class from the default framework instance. More...
 

Static Public Attributes

static const opflex::modb::class_id_t CLASS_ID = 135
 The unique class ID for SearchListEntry.
 

Constructor & Destructor Documentation

◆ SearchListEntry()

modelgbp::inv::SearchListEntry::SearchListEntry ( opflex::ofcore::OFFramework &  framework,
const opflex::modb::URI &  uri,
const OF_SHARED_PTR< const opflex::modb::mointernal::ObjectInstance > &  oi 
)
inline

Construct an instance of SearchListEntry.

This should not typically be called from user code.

Member Function Documentation

◆ getName() [1/2]

boost::optional<const std::string&> modelgbp::inv::SearchListEntry::getName ( )
inline

Get the value of name if it has been set.

Returns
the value of name or boost::none if not set

References isNameSet().

Referenced by getName().

◆ getName() [2/2]

const std::string& modelgbp::inv::SearchListEntry::getName ( const std::string &  defaultValue)
inline

Get the value of name if set, otherwise the value of default passed in.

Parameters
defaultValuedefault value returned if the property is not set
Returns
the value of name if set, otherwise the value of default passed in

References getName().

◆ isNameSet()

bool modelgbp::inv::SearchListEntry::isNameSet ( )
inline

Check whether name has been set.

Returns
true if name has been set

Referenced by getName().

◆ registerListener() [1/2]

static void modelgbp::inv::SearchListEntry::registerListener ( opflex::ofcore::OFFramework &  framework,
opflex::modb::ObjectListener *  listener 
)
inlinestatic

Register a listener that will get called for changes related to this class.

This listener will be called for any modifications of this class or any transitive children of this class.

Parameters
frameworkthe framework instance
listenerthe listener functional object that should be called when changes occur related to the class. This memory is owned by the caller and should be freed only after it has been unregistered.

References CLASS_ID.

Referenced by registerListener().

◆ registerListener() [2/2]

static void modelgbp::inv::SearchListEntry::registerListener ( opflex::modb::ObjectListener *  listener)
inlinestatic

Register a listener that will get called for changes related to this class with the default framework instance.

This listener will be called for any modifications of this class or any transitive children of this class.

Parameters
listenerthe listener functional object that should be called when changes occur related to the class. This memory is owned by the caller and should be freed only after it has been unregistered.

References registerListener().

◆ remove() [1/5]

void modelgbp::inv::SearchListEntry::remove ( )
inline

Remove this instance using the currently-active mutator.

If the object does not exist, then this will be a no-op. If this object has any children, they will be garbage-collected at some future time.

Exceptions
std::logic_errorif no mutator is active

References CLASS_ID.

◆ remove() [2/5]

static void modelgbp::inv::SearchListEntry::remove ( opflex::ofcore::OFFramework &  framework,
const opflex::modb::URI &  uri 
)
inlinestatic

Remove the SearchListEntry object with the specified URI using the currently-active mutator.

If the object does not exist, then this will be a no-op. If this object has any children, they will be garbage-collected at some future time.

Parameters
frameworkthe framework instance to use
urithe URI of the object to remove
Exceptions
std::logic_errorif no mutator is active

References CLASS_ID.

◆ remove() [3/5]

static void modelgbp::inv::SearchListEntry::remove ( const opflex::modb::URI &  uri)
inlinestatic

Remove the SearchListEntry object with the specified URI using the currently-active mutator and the default framework instance.

If the object does not exist, then this will be a no-op. If this object has any children, they will be garbage-collected at some future time.

Parameters
urithe URI of the object to remove
Exceptions
std::logic_errorif no mutator is active

◆ remove() [4/5]

static void modelgbp::inv::SearchListEntry::remove ( opflex::ofcore::OFFramework &  framework,
const std::string &  invLocalEndpointInventoryName,
const std::string &  invLocalInventoryEpUuid,
const std::string &  invSearchListEntryName 
)
inlinestatic

Remove the SearchListEntry object with the specified path elements from the managed object store.

If the object does not exist, then this will be a no-op. If this object has any children, they will be garbage-collected at some future time.

The object URI generated by this function will take the form: /InvUniverse/InvLocalEndpointInventory/[invLocalEndpointInventoryName]/InvLocalInventoryEp/[invLocalInventoryEpUuid]/InvDHCPv6Config/InvSearchListEntry/[invSearchListEntryName]

Parameters
frameworkthe framework instance to use
invLocalEndpointInventoryNamethe value of invLocalEndpointInventoryName, a naming property for LocalEndpointInventory
invLocalInventoryEpUuidthe value of invLocalInventoryEpUuid, a naming property for LocalInventoryEp
invSearchListEntryNamethe value of invSearchListEntryName, a naming property for SearchListEntry
Exceptions
std::logic_errorif no mutator is active

References CLASS_ID.

◆ remove() [5/5]

static void modelgbp::inv::SearchListEntry::remove ( const std::string &  invLocalEndpointInventoryName,
const std::string &  invLocalInventoryEpUuid,
const std::string &  invSearchListEntryName 
)
inlinestatic

Remove the SearchListEntry object with the specified path elements from the managed object store using the default framework instance.

If the object does not exist, then this will be a no-op. If this object has any children, they will be garbage-collected at some future time.

The object URI generated by this function will take the form: /InvUniverse/InvLocalEndpointInventory/[invLocalEndpointInventoryName]/InvLocalInventoryEp/[invLocalInventoryEpUuid]/InvDHCPv6Config/InvSearchListEntry/[invSearchListEntryName]

Parameters
invLocalEndpointInventoryNamethe value of invLocalEndpointInventoryName, a naming property for LocalEndpointInventory
invLocalInventoryEpUuidthe value of invLocalInventoryEpUuid, a naming property for LocalInventoryEp
invSearchListEntryNamethe value of invSearchListEntryName, a naming property for SearchListEntry
Exceptions
std::logic_errorif no mutator is active

◆ resolve() [1/4]

static boost::optional<OF_SHARED_PTR<modelgbp::inv::SearchListEntry> > modelgbp::inv::SearchListEntry::resolve ( opflex::ofcore::OFFramework &  framework,
const opflex::modb::URI &  uri 
)
inlinestatic

Retrieve an instance of SearchListEntry from the managed object store.

If the object does not exist in the local store, returns boost::none. Note that even though it may not exist locally, it may still exist remotely.

Parameters
frameworkthe framework instance to use
urithe URI of the object to retrieve
Returns
a shared pointer to the object or boost::none if it does not exist.

References CLASS_ID.

Referenced by resolve(), and modelgbp::inv::DHCPv6Config::resolveInvSearchListEntry().

◆ resolve() [2/4]

static boost::optional<OF_SHARED_PTR<modelgbp::inv::SearchListEntry> > modelgbp::inv::SearchListEntry::resolve ( const opflex::modb::URI &  uri)
inlinestatic

Retrieve an instance of SearchListEntry from the managed object store using the default framework instance.

If the object does not exist in the local store, returns boost::none. Note that even though it may not exist locally, it may still exist remotely.

Parameters
urithe URI of the object to retrieve
Returns
a shared pointer to the object or boost::none if it does not exist.

References CLASS_ID.

◆ resolve() [3/4]

static boost::optional<OF_SHARED_PTR<modelgbp::inv::SearchListEntry> > modelgbp::inv::SearchListEntry::resolve ( opflex::ofcore::OFFramework &  framework,
const std::string &  invLocalEndpointInventoryName,
const std::string &  invLocalInventoryEpUuid,
const std::string &  invSearchListEntryName 
)
inlinestatic

Retrieve an instance of SearchListEntry from the managed object store by constructing its URI from the path elements that lead to it.

If the object does not exist in the local store, returns boost::none. Note that even though it may not exist locally, it may still exist remotely.

The object URI generated by this function will take the form: /InvUniverse/InvLocalEndpointInventory/[invLocalEndpointInventoryName]/InvLocalInventoryEp/[invLocalInventoryEpUuid]/InvDHCPv6Config/InvSearchListEntry/[invSearchListEntryName]

Parameters
frameworkthe framework instance to use
invLocalEndpointInventoryNamethe value of invLocalEndpointInventoryName, a naming property for LocalEndpointInventory
invLocalInventoryEpUuidthe value of invLocalInventoryEpUuid, a naming property for LocalInventoryEp
invSearchListEntryNamethe value of invSearchListEntryName, a naming property for SearchListEntry
Returns
a shared pointer to the object or boost::none if it does not exist.

References resolve().

◆ resolve() [4/4]

static boost::optional<OF_SHARED_PTR<modelgbp::inv::SearchListEntry> > modelgbp::inv::SearchListEntry::resolve ( const std::string &  invLocalEndpointInventoryName,
const std::string &  invLocalInventoryEpUuid,
const std::string &  invSearchListEntryName 
)
inlinestatic

Retrieve an instance of SearchListEntry from the default managed object store by constructing its URI from the path elements that lead to it.

If the object does not exist in the local store, returns boost::none. Note that even though it may not exist locally, it may still exist remotely.

The object URI generated by this function will take the form: /InvUniverse/InvLocalEndpointInventory/[invLocalEndpointInventoryName]/InvLocalInventoryEp/[invLocalInventoryEpUuid]/InvDHCPv6Config/InvSearchListEntry/[invSearchListEntryName]

Parameters
invLocalEndpointInventoryNamethe value of invLocalEndpointInventoryName, a naming property for LocalEndpointInventory
invLocalInventoryEpUuidthe value of invLocalInventoryEpUuid, a naming property for LocalInventoryEp
invSearchListEntryNamethe value of invSearchListEntryName, a naming property for SearchListEntry
Returns
a shared pointer to the object or boost::none if it does not exist.

References resolve().

◆ setName()

modelgbp::inv::SearchListEntry& modelgbp::inv::SearchListEntry::setName ( const std::string &  newValue)
inline

Set name to the specified value in the currently-active mutator.

Parameters
newValuethe new value to set.
Returns
a reference to the current object
Exceptions
std::logic_errorif no mutator is active
See also
opflex::modb::Mutator

◆ unregisterListener() [1/2]

static void modelgbp::inv::SearchListEntry::unregisterListener ( opflex::ofcore::OFFramework &  framework,
opflex::modb::ObjectListener *  listener 
)
inlinestatic

Unregister a listener from updates to this class.

Parameters
frameworkthe framework instance
listenerThe listener to unregister.

References CLASS_ID.

Referenced by unregisterListener().

◆ unregisterListener() [2/2]

static void modelgbp::inv::SearchListEntry::unregisterListener ( opflex::modb::ObjectListener *  listener)
inlinestatic

Unregister a listener from updates to this class from the default framework instance.

Parameters
listenerThe listener to unregister.

References unregisterListener().

◆ unsetName()

modelgbp::inv::SearchListEntry& modelgbp::inv::SearchListEntry::unsetName ( )
inline

Unset name in the currently-active mutator.

Exceptions
std::logic_errorif no mutator is active
Returns
a reference to the current object
See also
opflex::modb::Mutator

The documentation for this class was generated from the following file: