modelgbp Generated OpFlex Model 1.7.0
|
Public Member Functions | |
bool | isRoleSet () |
Check whether role has been set. | |
boost::optional< const uint8_t > | getRole () |
Get the value of role if it has been set. | |
const uint8_t | getRole (const uint8_t defaultValue) |
Get the value of role if set, otherwise the value of default passed in. | |
modelgbp::inv::LocalInventoryEpToGroupRSrc & | setRole (const uint8_t newValue) |
Set role to the specified value in the currently-active mutator. | |
modelgbp::inv::LocalInventoryEpToGroupRSrc & | unsetRole () |
Unset role in the currently-active mutator. | |
bool | isTargetSet () |
Check whether target has been set. | |
boost::optional< opflex::modb::class_id_t > | getTargetClass () |
Get the value of targetClass if it has been set. | |
boost::optional< opflex::modb::URI > | getTargetURI () |
Get the value of targetURI if it has been set. | |
opflex::modb::class_id_t | getTargetClass (opflex::modb::class_id_t defaultValue) |
Get the value of targetClass if set, otherwise the value of default passed in. | |
opflex::modb::URI | getTargetURI (opflex::modb::URI defaultValue) |
Get the value of targetURI if set, otherwise the value of default passed in. | |
modelgbp::inv::LocalInventoryEpToGroupRSrc & | setTargetEpGroup (const opflex::modb::URI &uri) |
Set the reference to point to an instance of EpGroup with the specified URI. | |
modelgbp::inv::LocalInventoryEpToGroupRSrc & | setTargetEpGroup (const std::string &policySpaceName, const std::string &gbpEpGroupName) |
Set the reference to point to an instance of EpGroup in the currently-active mutator by constructing its URI from the path elements that lead to it. | |
modelgbp::inv::LocalInventoryEpToGroupRSrc & | unsetTarget () |
Unset target in the currently-active mutator. | |
bool | isTypeSet () |
Check whether type has been set. | |
boost::optional< const uint8_t > | getType () |
Get the value of type if it has been set. | |
const uint8_t | getType (const uint8_t defaultValue) |
Get the value of type if set, otherwise the value of default passed in. | |
modelgbp::inv::LocalInventoryEpToGroupRSrc & | setType (const uint8_t newValue) |
Set type to the specified value in the currently-active mutator. | |
modelgbp::inv::LocalInventoryEpToGroupRSrc & | unsetType () |
Unset type in the currently-active mutator. | |
void | remove () |
Remove this instance using the currently-active mutator. | |
LocalInventoryEpToGroupRSrc (opflex::ofcore::OFFramework &framework, const opflex::modb::URI &uri, const OF_SHARED_PTR< const opflex::modb::mointernal::ObjectInstance > &oi) | |
Construct an instance of LocalInventoryEpToGroupRSrc. | |
Static Public Member Functions | |
static boost::optional< OF_SHARED_PTR< modelgbp::inv::LocalInventoryEpToGroupRSrc > > | resolve (opflex::ofcore::OFFramework &framework, const opflex::modb::URI &uri) |
Retrieve an instance of LocalInventoryEpToGroupRSrc from the managed object store. | |
static boost::optional< OF_SHARED_PTR< modelgbp::inv::LocalInventoryEpToGroupRSrc > > | resolve (const opflex::modb::URI &uri) |
Retrieve an instance of LocalInventoryEpToGroupRSrc from the managed object store using the default framework instance. | |
static boost::optional< OF_SHARED_PTR< modelgbp::inv::LocalInventoryEpToGroupRSrc > > | resolve (opflex::ofcore::OFFramework &framework, const std::string &invLocalEndpointInventoryName, const std::string &invLocalInventoryEpUuid) |
Retrieve an instance of LocalInventoryEpToGroupRSrc from the managed object store by constructing its URI from the path elements that lead to it. | |
static boost::optional< OF_SHARED_PTR< modelgbp::inv::LocalInventoryEpToGroupRSrc > > | resolve (const std::string &invLocalEndpointInventoryName, const std::string &invLocalInventoryEpUuid) |
Retrieve an instance of LocalInventoryEpToGroupRSrc from the default managed object store by constructing its URI from the path elements that lead to it. | |
static void | remove (opflex::ofcore::OFFramework &framework, const opflex::modb::URI &uri) |
Remove the LocalInventoryEpToGroupRSrc object with the specified URI using the currently-active mutator. | |
static void | remove (const opflex::modb::URI &uri) |
Remove the LocalInventoryEpToGroupRSrc object with the specified URI using the currently-active mutator and the default framework instance. | |
static void | remove (opflex::ofcore::OFFramework &framework, const std::string &invLocalEndpointInventoryName, const std::string &invLocalInventoryEpUuid) |
Remove the LocalInventoryEpToGroupRSrc object with the specified path elements from the managed object store. | |
static void | remove (const std::string &invLocalEndpointInventoryName, const std::string &invLocalInventoryEpUuid) |
Remove the LocalInventoryEpToGroupRSrc object with the specified path elements from the managed object store using the default framework instance. | |
static void | registerListener (opflex::ofcore::OFFramework &framework, opflex::modb::ObjectListener *listener) |
Register a listener that will get called for changes related to this class. | |
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. | |
static void | unregisterListener (opflex::ofcore::OFFramework &framework, opflex::modb::ObjectListener *listener) |
Unregister a listener from updates to this class. | |
static void | unregisterListener (opflex::modb::ObjectListener *listener) |
Unregister a listener from updates to this class from the default framework instance. | |
Static Public Attributes | |
static const opflex::modb::class_id_t | CLASS_ID = 117 |
The unique class ID for LocalInventoryEpToGroupRSrc. | |
|
inline |
Construct an instance of LocalInventoryEpToGroupRSrc.
This should not typically be called from user code.
References CLASS_ID.
|
inline |
Get the value of role if it has been set.
References isRoleSet().
Referenced by getRole().
|
inline |
Get the value of role if set, otherwise the value of default passed in.
defaultValue | default value returned if the property is not set |
References getRole().
|
inline |
Get the value of targetClass if it has been set.
References isTargetSet().
Referenced by getTargetClass().
|
inline |
Get the value of targetClass if set, otherwise the value of default passed in.
defaultValue | default value returned if the property is not set |
References getTargetClass().
|
inline |
Get the value of targetURI if it has been set.
References isTargetSet().
Referenced by getTargetURI().
|
inline |
Get the value of targetURI if set, otherwise the value of default passed in.
defaultValue | default value returned if the property is not set |
References getTargetURI().
|
inline |
Get the value of type if it has been set.
References isTypeSet().
Referenced by getType().
|
inline |
Get the value of type if set, otherwise the value of default passed in.
defaultValue | default value returned if the property is not set |
References getType().
|
inline |
|
inline |
Check whether target has been set.
Referenced by getTargetClass(), and getTargetURI().
|
inline |
|
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.
listener | the 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().
|
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.
framework | the framework instance |
listener | the 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().
|
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.
std::logic_error | if no mutator is active |
References CLASS_ID.
|
inlinestatic |
Remove the LocalInventoryEpToGroupRSrc 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.
uri | the URI of the object to remove |
std::logic_error | if no mutator is active |
References remove().
|
inlinestatic |
Remove the LocalInventoryEpToGroupRSrc 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]/InvLocalInventoryEpToGroupRSrc
invLocalEndpointInventoryName | the value of invLocalEndpointInventoryName, a naming property for LocalEndpointInventory |
invLocalInventoryEpUuid | the value of invLocalInventoryEpUuid, a naming property for LocalInventoryEp |
std::logic_error | if no mutator is active |
References remove().
|
inlinestatic |
Remove the LocalInventoryEpToGroupRSrc 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.
framework | the framework instance to use |
uri | the URI of the object to remove |
std::logic_error | if no mutator is active |
References CLASS_ID.
|
inlinestatic |
Remove the LocalInventoryEpToGroupRSrc 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]/InvLocalInventoryEpToGroupRSrc
framework | the framework instance to use |
invLocalEndpointInventoryName | the value of invLocalEndpointInventoryName, a naming property for LocalEndpointInventory |
invLocalInventoryEpUuid | the value of invLocalInventoryEpUuid, a naming property for LocalInventoryEp |
std::logic_error | if no mutator is active |
References CLASS_ID.
|
inlinestatic |
Retrieve an instance of LocalInventoryEpToGroupRSrc 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.
uri | the URI of the object to retrieve |
References CLASS_ID.
|
inlinestatic |
Retrieve an instance of LocalInventoryEpToGroupRSrc 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]/InvLocalInventoryEpToGroupRSrc
invLocalEndpointInventoryName | the value of invLocalEndpointInventoryName, a naming property for LocalEndpointInventory |
invLocalInventoryEpUuid | the value of invLocalInventoryEpUuid, a naming property for LocalInventoryEp |
References resolve().
|
inlinestatic |
Retrieve an instance of LocalInventoryEpToGroupRSrc 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.
framework | the framework instance to use |
uri | the URI of the object to retrieve |
References CLASS_ID.
Referenced by resolve(), resolve(), and modelgbp::inv::LocalInventoryEp::resolveInvLocalInventoryEpToGroupRSrc().
|
inlinestatic |
Retrieve an instance of LocalInventoryEpToGroupRSrc 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]/InvLocalInventoryEpToGroupRSrc
framework | the framework instance to use |
invLocalEndpointInventoryName | the value of invLocalEndpointInventoryName, a naming property for LocalEndpointInventory |
invLocalInventoryEpUuid | the value of invLocalInventoryEpUuid, a naming property for LocalInventoryEp |
References resolve().
|
inline |
Set role to the specified value in the currently-active mutator.
newValue | the new value to set. |
std::logic_error | if no mutator is active |
|
inline |
Set the reference to point to an instance of EpGroup with the specified URI.
uri | The URI of the reference to add |
std::logic_error | if no mutator is active |
|
inline |
Set the reference to point to an instance of EpGroup in the currently-active mutator by constructing its URI from the path elements that lead to it.
The reference URI generated by this function will take the form: /PolicyUniverse/PolicySpace/[policySpaceName]/GbpEpGroup/[gbpEpGroupName]
policySpaceName | the value of policySpaceName, a naming property for Space |
gbpEpGroupName | the value of gbpEpGroupName, a naming property for EpGroup |
std::logic_error | if no mutator is active |
|
inline |
Set type to the specified value in the currently-active mutator.
newValue | the new value to set. |
std::logic_error | if no mutator is active |
|
inlinestatic |
Unregister a listener from updates to this class from the default framework instance.
listener | The listener to unregister. |
References unregisterListener().
|
inlinestatic |
Unregister a listener from updates to this class.
framework | the framework instance |
listener | The listener to unregister. |
References CLASS_ID.
Referenced by unregisterListener().
|
inline |
Unset role in the currently-active mutator.
std::logic_error | if no mutator is active |
|
inline |
Unset target in the currently-active mutator.
std::logic_error | if no mutator is active |
|
inline |
Unset type in the currently-active mutator.
std::logic_error | if no mutator is active |