|
bool | isIpSet () |
| Check whether ip has been set.
|
|
boost::optional< const std::string & > | getIp () |
| Get the value of ip if it has been set.
|
|
const std::string & | getIp (const std::string &defaultValue) |
| Get the value of ip if set, otherwise the value of default passed in.
|
|
modelgbp::inv::Ip & | setIp (const std::string &newValue) |
| Set ip to the specified value in the currently-active mutator.
|
|
modelgbp::inv::Ip & | unsetIp () |
| Unset ip in the currently-active mutator.
|
|
bool | isMacSet () |
| Check whether mac has been set.
|
|
boost::optional< const opflex::modb::MAC & > | getMac () |
| Get the value of mac if it has been set.
|
|
const opflex::modb::MAC & | getMac (const opflex::modb::MAC &defaultValue) |
| Get the value of mac if set, otherwise the value of default passed in.
|
|
modelgbp::inv::Ip & | setMac (const opflex::modb::MAC &newValue) |
| Set mac to the specified value in the currently-active mutator.
|
|
modelgbp::inv::Ip & | unsetMac () |
| Unset mac in the currently-active mutator.
|
|
bool | isTypeSet () |
| Check whether type has been set.
|
|
boost::optional< const std::string & > | getType () |
| Get the value of type if it has been set.
|
|
const std::string & | getType (const std::string &defaultValue) |
| Get the value of type if set, otherwise the value of default passed in.
|
|
modelgbp::inv::Ip & | setType (const std::string &newValue) |
| Set type to the specified value in the currently-active mutator.
|
|
modelgbp::inv::Ip & | unsetType () |
| Unset type in the currently-active mutator.
|
|
void | remove () |
| Remove this instance using the currently-active mutator.
|
|
| Ip (opflex::ofcore::OFFramework &framework, const opflex::modb::URI &uri, const OF_SHARED_PTR< const opflex::modb::mointernal::ObjectInstance > &oi) |
| Construct an instance of Ip.
|
|
|
static boost::optional< OF_SHARED_PTR< modelgbp::inv::Ip > > | resolve (opflex::ofcore::OFFramework &framework, const opflex::modb::URI &uri) |
| Retrieve an instance of Ip from the managed object store.
|
|
static boost::optional< OF_SHARED_PTR< modelgbp::inv::Ip > > | resolve (const opflex::modb::URI &uri) |
| Retrieve an instance of Ip from the managed object store using the default framework instance.
|
|
static boost::optional< OF_SHARED_PTR< modelgbp::inv::Ip > > | resolve (opflex::ofcore::OFFramework &framework, const std::string &invLocalEndpointInventoryName, const std::string &invLocalInventoryEpUuid, const std::string &invIpIp, const std::string &invIpType) |
| Retrieve an instance of Ip 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::Ip > > | resolve (const std::string &invLocalEndpointInventoryName, const std::string &invLocalInventoryEpUuid, const std::string &invIpIp, const std::string &invIpType) |
| Retrieve an instance of Ip 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 Ip object with the specified URI using the currently-active mutator.
|
|
static void | remove (const opflex::modb::URI &uri) |
| Remove the Ip 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, const std::string &invIpIp, const std::string &invIpType) |
| Remove the Ip object with the specified path elements from the managed object store.
|
|
static void | remove (const std::string &invLocalEndpointInventoryName, const std::string &invLocalInventoryEpUuid, const std::string &invIpIp, const std::string &invIpType) |
| Remove the Ip 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 void modelgbp::inv::Ip::remove |
( |
const std::string & | invLocalEndpointInventoryName, |
|
|
const std::string & | invLocalInventoryEpUuid, |
|
|
const std::string & | invIpIp, |
|
|
const std::string & | invIpType ) |
|
inlinestatic |
Remove the Ip 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]/InvIp/[invIpIp]/[invIpType]
- Parameters
-
invLocalEndpointInventoryName | the value of invLocalEndpointInventoryName, a naming property for LocalEndpointInventory |
invLocalInventoryEpUuid | the value of invLocalInventoryEpUuid, a naming property for LocalInventoryEp |
invIpIp | the value of invIpIp, a naming property for Ip |
invIpType | the value of invIpType, a naming property for Ip |
- Exceptions
-
std::logic_error | if no mutator is active |
References remove().
static void modelgbp::inv::Ip::remove |
( |
opflex::ofcore::OFFramework & | framework, |
|
|
const std::string & | invLocalEndpointInventoryName, |
|
|
const std::string & | invLocalInventoryEpUuid, |
|
|
const std::string & | invIpIp, |
|
|
const std::string & | invIpType ) |
|
inlinestatic |
Remove the Ip 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]/InvIp/[invIpIp]/[invIpType]
- Parameters
-
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 |
invIpIp | the value of invIpIp, a naming property for Ip |
invIpType | the value of invIpType, a naming property for Ip |
- Exceptions
-
std::logic_error | if no mutator is active |
References CLASS_ID.
static boost::optional< OF_SHARED_PTR< modelgbp::inv::Ip > > modelgbp::inv::Ip::resolve |
( |
const std::string & | invLocalEndpointInventoryName, |
|
|
const std::string & | invLocalInventoryEpUuid, |
|
|
const std::string & | invIpIp, |
|
|
const std::string & | invIpType ) |
|
inlinestatic |
Retrieve an instance of Ip 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]/InvIp/[invIpIp]/[invIpType]
- Parameters
-
invLocalEndpointInventoryName | the value of invLocalEndpointInventoryName, a naming property for LocalEndpointInventory |
invLocalInventoryEpUuid | the value of invLocalInventoryEpUuid, a naming property for LocalInventoryEp |
invIpIp | the value of invIpIp, a naming property for Ip |
invIpType | the value of invIpType, a naming property for Ip |
- Returns
- a shared pointer to the object or boost::none if it does not exist.
References resolve().
static boost::optional< OF_SHARED_PTR< modelgbp::inv::Ip > > modelgbp::inv::Ip::resolve |
( |
opflex::ofcore::OFFramework & | framework, |
|
|
const std::string & | invLocalEndpointInventoryName, |
|
|
const std::string & | invLocalInventoryEpUuid, |
|
|
const std::string & | invIpIp, |
|
|
const std::string & | invIpType ) |
|
inlinestatic |
Retrieve an instance of Ip 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]/InvIp/[invIpIp]/[invIpType]
- Parameters
-
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 |
invIpIp | the value of invIpIp, a naming property for Ip |
invIpType | the value of invIpType, a naming property for Ip |
- Returns
- a shared pointer to the object or boost::none if it does not exist.
References resolve().