modelgbp Generated OpFlex Model  1.3.0
modelgbp::epr::SecurityGroupContext Class Reference
Inheritance diagram for modelgbp::epr::SecurityGroupContext:

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::epr::SecurityGroupContextsetName (const std::string &newValue)
 Set name to the specified value in the currently-active mutator. More...
 
modelgbp::epr::SecurityGroupContextunsetName ()
 Unset name in the currently-active mutator. More...
 
bool isSecGroupSet ()
 Check whether secGroup has been set. More...
 
boost::optional< const
std::string & > 
getSecGroup ()
 Get the value of secGroup if it has been set. More...
 
const std::string & getSecGroup (const std::string &defaultValue)
 Get the value of secGroup if set, otherwise the value of default passed in. More...
 
modelgbp::epr::SecurityGroupContextsetSecGroup (const std::string &newValue)
 Set secGroup to the specified value in the currently-active mutator. More...
 
modelgbp::epr::SecurityGroupContextunsetSecGroup ()
 Unset secGroup in the currently-active mutator. More...
 
void remove ()
 Remove this instance using the currently-active mutator. More...
 
 SecurityGroupContext (opflex::ofcore::OFFramework &framework, const opflex::modb::URI &uri, const boost::shared_ptr< const opflex::modb::mointernal::ObjectInstance > &oi)
 Construct an instance of SecurityGroupContext. More...
 

Static Public Member Functions

static boost::optional
< boost::shared_ptr
< modelgbp::epr::SecurityGroupContext > > 
resolve (opflex::ofcore::OFFramework &framework, const opflex::modb::URI &uri)
 Retrieve an instance of SecurityGroupContext from the managed object store. More...
 
static boost::optional
< boost::shared_ptr
< modelgbp::epr::SecurityGroupContext > > 
resolve (const opflex::modb::URI &uri)
 Retrieve an instance of SecurityGroupContext from the managed object store using the default framework instance. More...
 
static boost::optional
< boost::shared_ptr
< modelgbp::epr::SecurityGroupContext > > 
resolve (opflex::ofcore::OFFramework &framework, const std::string &eprL2EpContext, const opflex::modb::MAC &eprL2EpMac, const std::string &eprSecurityGroupContextSecGroup)
 Retrieve an instance of SecurityGroupContext from the managed object store by constructing its URI from the path elements that lead to it. More...
 
static boost::optional
< boost::shared_ptr
< modelgbp::epr::SecurityGroupContext > > 
resolve (const std::string &eprL2EpContext, const opflex::modb::MAC &eprL2EpMac, const std::string &eprSecurityGroupContextSecGroup)
 Retrieve an instance of SecurityGroupContext from the default managed object store by constructing its URI from the path elements that lead to it. More...
 
static boost::optional
< boost::shared_ptr
< modelgbp::epr::SecurityGroupContext > > 
resolve (opflex::ofcore::OFFramework &framework, const std::string &eprL3EpContext, const std::string &eprL3EpIp, const std::string &eprSecurityGroupContextSecGroup)
 Retrieve an instance of SecurityGroupContext from the managed object store by constructing its URI from the path elements that lead to it. More...
 
static boost::optional
< boost::shared_ptr
< modelgbp::epr::SecurityGroupContext > > 
resolve (const std::string &eprL3EpContext, const std::string &eprL3EpIp, const std::string &eprSecurityGroupContextSecGroup)
 Retrieve an instance of SecurityGroupContext 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 SecurityGroupContext object with the specified URI using the currently-active mutator. More...
 
static void remove (const opflex::modb::URI &uri)
 Remove the SecurityGroupContext 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 &eprL2EpContext, const opflex::modb::MAC &eprL2EpMac, const std::string &eprSecurityGroupContextSecGroup)
 Remove the SecurityGroupContext object with the specified path elements from the managed object store. More...
 
static void remove (const std::string &eprL2EpContext, const opflex::modb::MAC &eprL2EpMac, const std::string &eprSecurityGroupContextSecGroup)
 Remove the SecurityGroupContext object with the specified path elements from the managed object store using the default framework instance. More...
 
static void remove (opflex::ofcore::OFFramework &framework, const std::string &eprL3EpContext, const std::string &eprL3EpIp, const std::string &eprSecurityGroupContextSecGroup)
 Remove the SecurityGroupContext object with the specified path elements from the managed object store. More...
 
static void remove (const std::string &eprL3EpContext, const std::string &eprL3EpIp, const std::string &eprSecurityGroupContextSecGroup)
 Remove the SecurityGroupContext 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 = 81
 The unique class ID for SecurityGroupContext.
 

Constructor & Destructor Documentation

modelgbp::epr::SecurityGroupContext::SecurityGroupContext ( opflex::ofcore::OFFramework &  framework,
const opflex::modb::URI &  uri,
const boost::shared_ptr< const opflex::modb::mointernal::ObjectInstance > &  oi 
)
inline

Construct an instance of SecurityGroupContext.

This should not typically be called from user code.

Member Function Documentation

boost::optional<const std::string&> modelgbp::epr::SecurityGroupContext::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().

const std::string& modelgbp::epr::SecurityGroupContext::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().

boost::optional<const std::string&> modelgbp::epr::SecurityGroupContext::getSecGroup ( )
inline

Get the value of secGroup if it has been set.

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

References isSecGroupSet().

Referenced by getSecGroup().

const std::string& modelgbp::epr::SecurityGroupContext::getSecGroup ( const std::string &  defaultValue)
inline

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

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

References getSecGroup().

bool modelgbp::epr::SecurityGroupContext::isNameSet ( )
inline

Check whether name has been set.

Returns
true if name has been set

Referenced by getName().

bool modelgbp::epr::SecurityGroupContext::isSecGroupSet ( )
inline

Check whether secGroup has been set.

Returns
true if secGroup has been set

Referenced by getSecGroup().

static void modelgbp::epr::SecurityGroupContext::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().

static void modelgbp::epr::SecurityGroupContext::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().

void modelgbp::epr::SecurityGroupContext::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.

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

Remove the SecurityGroupContext 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.

static void modelgbp::epr::SecurityGroupContext::remove ( const opflex::modb::URI &  uri)
inlinestatic

Remove the SecurityGroupContext 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
static void modelgbp::epr::SecurityGroupContext::remove ( opflex::ofcore::OFFramework &  framework,
const std::string &  eprL2EpContext,
const opflex::modb::MAC &  eprL2EpMac,
const std::string &  eprSecurityGroupContextSecGroup 
)
inlinestatic

Remove the SecurityGroupContext 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: /EprL2Universe/EprL2Ep/[eprL2EpContext]/[eprL2EpMac]/EprSecurityGroupContext/[eprSecurityGroupContextSecGroup]

Parameters
frameworkthe framework instance to use
eprL2EpContextthe value of eprL2EpContext, a naming property for L2Ep
eprL2EpMacthe value of eprL2EpMac, a naming property for L2Ep
eprSecurityGroupContextSecGroupthe value of eprSecurityGroupContextSecGroup, a naming property for SecurityGroupContext
Exceptions
std::logic_errorif no mutator is active

References CLASS_ID.

static void modelgbp::epr::SecurityGroupContext::remove ( const std::string &  eprL2EpContext,
const opflex::modb::MAC &  eprL2EpMac,
const std::string &  eprSecurityGroupContextSecGroup 
)
inlinestatic

Remove the SecurityGroupContext 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: /EprL2Universe/EprL2Ep/[eprL2EpContext]/[eprL2EpMac]/EprSecurityGroupContext/[eprSecurityGroupContextSecGroup]

Parameters
eprL2EpContextthe value of eprL2EpContext, a naming property for L2Ep
eprL2EpMacthe value of eprL2EpMac, a naming property for L2Ep
eprSecurityGroupContextSecGroupthe value of eprSecurityGroupContextSecGroup, a naming property for SecurityGroupContext
Exceptions
std::logic_errorif no mutator is active
static void modelgbp::epr::SecurityGroupContext::remove ( opflex::ofcore::OFFramework &  framework,
const std::string &  eprL3EpContext,
const std::string &  eprL3EpIp,
const std::string &  eprSecurityGroupContextSecGroup 
)
inlinestatic

Remove the SecurityGroupContext 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: /EprL3Universe/EprL3Ep/[eprL3EpContext]/[eprL3EpIp]/EprSecurityGroupContext/[eprSecurityGroupContextSecGroup]

Parameters
frameworkthe framework instance to use
eprL3EpContextthe value of eprL3EpContext, a naming property for L3Ep
eprL3EpIpthe value of eprL3EpIp, a naming property for L3Ep
eprSecurityGroupContextSecGroupthe value of eprSecurityGroupContextSecGroup, a naming property for SecurityGroupContext
Exceptions
std::logic_errorif no mutator is active

References CLASS_ID.

static void modelgbp::epr::SecurityGroupContext::remove ( const std::string &  eprL3EpContext,
const std::string &  eprL3EpIp,
const std::string &  eprSecurityGroupContextSecGroup 
)
inlinestatic

Remove the SecurityGroupContext 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: /EprL3Universe/EprL3Ep/[eprL3EpContext]/[eprL3EpIp]/EprSecurityGroupContext/[eprSecurityGroupContextSecGroup]

Parameters
eprL3EpContextthe value of eprL3EpContext, a naming property for L3Ep
eprL3EpIpthe value of eprL3EpIp, a naming property for L3Ep
eprSecurityGroupContextSecGroupthe value of eprSecurityGroupContextSecGroup, a naming property for SecurityGroupContext
Exceptions
std::logic_errorif no mutator is active
static boost::optional<boost::shared_ptr<modelgbp::epr::SecurityGroupContext> > modelgbp::epr::SecurityGroupContext::resolve ( opflex::ofcore::OFFramework &  framework,
const opflex::modb::URI &  uri 
)
inlinestatic

Retrieve an instance of SecurityGroupContext 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(), modelgbp::epr::L3Ep::resolveEprSecurityGroupContext(), and modelgbp::epr::L2Ep::resolveEprSecurityGroupContext().

static boost::optional<boost::shared_ptr<modelgbp::epr::SecurityGroupContext> > modelgbp::epr::SecurityGroupContext::resolve ( const opflex::modb::URI &  uri)
inlinestatic

Retrieve an instance of SecurityGroupContext 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.

static boost::optional<boost::shared_ptr<modelgbp::epr::SecurityGroupContext> > modelgbp::epr::SecurityGroupContext::resolve ( opflex::ofcore::OFFramework &  framework,
const std::string &  eprL2EpContext,
const opflex::modb::MAC &  eprL2EpMac,
const std::string &  eprSecurityGroupContextSecGroup 
)
inlinestatic

Retrieve an instance of SecurityGroupContext 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: /EprL2Universe/EprL2Ep/[eprL2EpContext]/[eprL2EpMac]/EprSecurityGroupContext/[eprSecurityGroupContextSecGroup]

Parameters
frameworkthe framework instance to use
eprL2EpContextthe value of eprL2EpContext, a naming property for L2Ep
eprL2EpMacthe value of eprL2EpMac, a naming property for L2Ep
eprSecurityGroupContextSecGroupthe value of eprSecurityGroupContextSecGroup, a naming property for SecurityGroupContext
Returns
a shared pointer to the object or boost::none if it does not exist.

References resolve().

static boost::optional<boost::shared_ptr<modelgbp::epr::SecurityGroupContext> > modelgbp::epr::SecurityGroupContext::resolve ( const std::string &  eprL2EpContext,
const opflex::modb::MAC &  eprL2EpMac,
const std::string &  eprSecurityGroupContextSecGroup 
)
inlinestatic

Retrieve an instance of SecurityGroupContext 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: /EprL2Universe/EprL2Ep/[eprL2EpContext]/[eprL2EpMac]/EprSecurityGroupContext/[eprSecurityGroupContextSecGroup]

Parameters
eprL2EpContextthe value of eprL2EpContext, a naming property for L2Ep
eprL2EpMacthe value of eprL2EpMac, a naming property for L2Ep
eprSecurityGroupContextSecGroupthe value of eprSecurityGroupContextSecGroup, a naming property for SecurityGroupContext
Returns
a shared pointer to the object or boost::none if it does not exist.

References resolve().

static boost::optional<boost::shared_ptr<modelgbp::epr::SecurityGroupContext> > modelgbp::epr::SecurityGroupContext::resolve ( opflex::ofcore::OFFramework &  framework,
const std::string &  eprL3EpContext,
const std::string &  eprL3EpIp,
const std::string &  eprSecurityGroupContextSecGroup 
)
inlinestatic

Retrieve an instance of SecurityGroupContext 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: /EprL3Universe/EprL3Ep/[eprL3EpContext]/[eprL3EpIp]/EprSecurityGroupContext/[eprSecurityGroupContextSecGroup]

Parameters
frameworkthe framework instance to use
eprL3EpContextthe value of eprL3EpContext, a naming property for L3Ep
eprL3EpIpthe value of eprL3EpIp, a naming property for L3Ep
eprSecurityGroupContextSecGroupthe value of eprSecurityGroupContextSecGroup, a naming property for SecurityGroupContext
Returns
a shared pointer to the object or boost::none if it does not exist.

References resolve().

static boost::optional<boost::shared_ptr<modelgbp::epr::SecurityGroupContext> > modelgbp::epr::SecurityGroupContext::resolve ( const std::string &  eprL3EpContext,
const std::string &  eprL3EpIp,
const std::string &  eprSecurityGroupContextSecGroup 
)
inlinestatic

Retrieve an instance of SecurityGroupContext 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: /EprL3Universe/EprL3Ep/[eprL3EpContext]/[eprL3EpIp]/EprSecurityGroupContext/[eprSecurityGroupContextSecGroup]

Parameters
eprL3EpContextthe value of eprL3EpContext, a naming property for L3Ep
eprL3EpIpthe value of eprL3EpIp, a naming property for L3Ep
eprSecurityGroupContextSecGroupthe value of eprSecurityGroupContextSecGroup, a naming property for SecurityGroupContext
Returns
a shared pointer to the object or boost::none if it does not exist.

References resolve().

modelgbp::epr::SecurityGroupContext& modelgbp::epr::SecurityGroupContext::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
modelgbp::epr::SecurityGroupContext& modelgbp::epr::SecurityGroupContext::setSecGroup ( const std::string &  newValue)
inline

Set secGroup 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
static void modelgbp::epr::SecurityGroupContext::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().

static void modelgbp::epr::SecurityGroupContext::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().

modelgbp::epr::SecurityGroupContext& modelgbp::epr::SecurityGroupContext::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
modelgbp::epr::SecurityGroupContext& modelgbp::epr::SecurityGroupContext::unsetSecGroup ( )
inline

Unset secGroup 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: