modelgbp Generated OpFlex Model 1.7.0
modelgbp::policy::Universe Class Reference
Inheritance diagram for modelgbp::policy::Universe:

Public Member Functions

boost::optional< OF_SHARED_PTR< modelgbp::gbpe::EpgMapping > > resolveGbpeEpgMapping (const std::string &gbpeEpgMappingName)
 Retrieve the child object with the specified naming properties.
 
OF_SHARED_PTR< modelgbp::gbpe::EpgMappingaddGbpeEpgMapping (const std::string &gbpeEpgMappingName)
 Create a new child object with the specified naming properties and make it a child of this object in the currently-active mutator.
 
void resolveGbpeEpgMapping (std::vector< OF_SHARED_PTR< modelgbp::gbpe::EpgMapping > > &out)
 Resolve and retrieve all of the immediate children of type modelgbp::gbpe::EpgMapping.
 
boost::optional< OF_SHARED_PTR< modelgbp::gbpe::IndirectEpgMapping > > resolveGbpeIndirectEpgMapping (const std::string &gbpeIndirectEpgMappingName)
 Retrieve the child object with the specified naming properties.
 
OF_SHARED_PTR< modelgbp::gbpe::IndirectEpgMappingaddGbpeIndirectEpgMapping (const std::string &gbpeIndirectEpgMappingName)
 Create a new child object with the specified naming properties and make it a child of this object in the currently-active mutator.
 
void resolveGbpeIndirectEpgMapping (std::vector< OF_SHARED_PTR< modelgbp::gbpe::IndirectEpgMapping > > &out)
 Resolve and retrieve all of the immediate children of type modelgbp::gbpe::IndirectEpgMapping.
 
boost::optional< OF_SHARED_PTR< modelgbp::gbpe::MappingRuleSet > > resolveGbpeMappingRuleSet (const std::string &gbpeMappingRuleSetName)
 Retrieve the child object with the specified naming properties.
 
OF_SHARED_PTR< modelgbp::gbpe::MappingRuleSetaddGbpeMappingRuleSet (const std::string &gbpeMappingRuleSetName)
 Create a new child object with the specified naming properties and make it a child of this object in the currently-active mutator.
 
void resolveGbpeMappingRuleSet (std::vector< OF_SHARED_PTR< modelgbp::gbpe::MappingRuleSet > > &out)
 Resolve and retrieve all of the immediate children of type modelgbp::gbpe::MappingRuleSet.
 
boost::optional< OF_SHARED_PTR< modelgbp::platform::Config > > resolvePlatformConfig (const std::string &platformConfigName)
 Retrieve the child object with the specified naming properties.
 
OF_SHARED_PTR< modelgbp::platform::ConfigaddPlatformConfig (const std::string &platformConfigName)
 Create a new child object with the specified naming properties and make it a child of this object in the currently-active mutator.
 
void resolvePlatformConfig (std::vector< OF_SHARED_PTR< modelgbp::platform::Config > > &out)
 Resolve and retrieve all of the immediate children of type modelgbp::platform::Config.
 
boost::optional< OF_SHARED_PTR< modelgbp::policy::Space > > resolvePolicySpace (const std::string &policySpaceName)
 Retrieve the child object with the specified naming properties.
 
OF_SHARED_PTR< modelgbp::policy::SpaceaddPolicySpace (const std::string &policySpaceName)
 Create a new child object with the specified naming properties and make it a child of this object in the currently-active mutator.
 
void resolvePolicySpace (std::vector< OF_SHARED_PTR< modelgbp::policy::Space > > &out)
 Resolve and retrieve all of the immediate children of type modelgbp::policy::Space.
 
void remove ()
 Remove this instance using the currently-active mutator.
 
 Universe (opflex::ofcore::OFFramework &framework, const opflex::modb::URI &uri, const OF_SHARED_PTR< const opflex::modb::mointernal::ObjectInstance > &oi)
 Construct an instance of Universe.
 

Static Public Member Functions

static boost::optional< OF_SHARED_PTR< modelgbp::policy::Universe > > resolve (opflex::ofcore::OFFramework &framework, const opflex::modb::URI &uri)
 Retrieve an instance of Universe from the managed object store.
 
static boost::optional< OF_SHARED_PTR< modelgbp::policy::Universe > > resolve (const opflex::modb::URI &uri)
 Retrieve an instance of Universe from the managed object store using the default framework instance.
 
static boost::optional< OF_SHARED_PTR< modelgbp::policy::Universe > > resolve (opflex::ofcore::OFFramework &framework)
 Retrieve an instance of Universe from the managed object store by constructing its URI from the path elements that lead to it.
 
static boost::optional< OF_SHARED_PTR< modelgbp::policy::Universe > > resolve ()
 Retrieve an instance of Universe 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 Universe object with the specified URI using the currently-active mutator.
 
static void remove (const opflex::modb::URI &uri)
 Remove the Universe object with the specified URI using the currently-active mutator and 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 = 223
 The unique class ID for Universe.
 

Constructor & Destructor Documentation

◆ Universe()

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

Construct an instance of Universe.

This should not typically be called from user code.

References CLASS_ID.

Member Function Documentation

◆ addGbpeEpgMapping()

OF_SHARED_PTR< modelgbp::gbpe::EpgMapping > modelgbp::policy::Universe::addGbpeEpgMapping ( const std::string & gbpeEpgMappingName)
inline

Create a new child object with the specified naming properties and make it a child of this object in the currently-active mutator.

If the object already exists in the store, get a mutable copy of that object. If the object already exists in the mutator, get a reference to the object.

Parameters
gbpeEpgMappingNamethe value of gbpeEpgMappingName, a naming property for EpgMapping
Exceptions
std::logic_errorif no mutator is active
Returns
a shared pointer to the (possibly new) object

References CLASS_ID.

◆ addGbpeIndirectEpgMapping()

OF_SHARED_PTR< modelgbp::gbpe::IndirectEpgMapping > modelgbp::policy::Universe::addGbpeIndirectEpgMapping ( const std::string & gbpeIndirectEpgMappingName)
inline

Create a new child object with the specified naming properties and make it a child of this object in the currently-active mutator.

If the object already exists in the store, get a mutable copy of that object. If the object already exists in the mutator, get a reference to the object.

Parameters
gbpeIndirectEpgMappingNamethe value of gbpeIndirectEpgMappingName, a naming property for IndirectEpgMapping
Exceptions
std::logic_errorif no mutator is active
Returns
a shared pointer to the (possibly new) object

References CLASS_ID.

◆ addGbpeMappingRuleSet()

OF_SHARED_PTR< modelgbp::gbpe::MappingRuleSet > modelgbp::policy::Universe::addGbpeMappingRuleSet ( const std::string & gbpeMappingRuleSetName)
inline

Create a new child object with the specified naming properties and make it a child of this object in the currently-active mutator.

If the object already exists in the store, get a mutable copy of that object. If the object already exists in the mutator, get a reference to the object.

Parameters
gbpeMappingRuleSetNamethe value of gbpeMappingRuleSetName, a naming property for MappingRuleSet
Exceptions
std::logic_errorif no mutator is active
Returns
a shared pointer to the (possibly new) object

References CLASS_ID.

◆ addPlatformConfig()

OF_SHARED_PTR< modelgbp::platform::Config > modelgbp::policy::Universe::addPlatformConfig ( const std::string & platformConfigName)
inline

Create a new child object with the specified naming properties and make it a child of this object in the currently-active mutator.

If the object already exists in the store, get a mutable copy of that object. If the object already exists in the mutator, get a reference to the object.

Parameters
platformConfigNamethe value of platformConfigName, a naming property for Config
Exceptions
std::logic_errorif no mutator is active
Returns
a shared pointer to the (possibly new) object

References CLASS_ID.

◆ addPolicySpace()

OF_SHARED_PTR< modelgbp::policy::Space > modelgbp::policy::Universe::addPolicySpace ( const std::string & policySpaceName)
inline

Create a new child object with the specified naming properties and make it a child of this object in the currently-active mutator.

If the object already exists in the store, get a mutable copy of that object. If the object already exists in the mutator, get a reference to the object.

Parameters
policySpaceNamethe value of policySpaceName, a naming property for Space
Exceptions
std::logic_errorif no mutator is active
Returns
a shared pointer to the (possibly new) object

References CLASS_ID.

◆ registerListener() [1/2]

static void modelgbp::policy::Universe::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().

◆ registerListener() [2/2]

static void modelgbp::policy::Universe::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().

◆ remove() [1/3]

void modelgbp::policy::Universe::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.

Referenced by remove().

◆ remove() [2/3]

static void modelgbp::policy::Universe::remove ( const opflex::modb::URI & uri)
inlinestatic

Remove the Universe 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

References remove().

◆ remove() [3/3]

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

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

◆ resolve() [1/4]

static boost::optional< OF_SHARED_PTR< modelgbp::policy::Universe > > modelgbp::policy::Universe::resolve ( )
inlinestatic

Retrieve an instance of Universe 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: /PolicyUniverse

Returns
a shared pointer to the object or boost::none if it does not exist.

References resolve().

Referenced by resolve(), resolve(), and modelgbp::dmtree::Root::resolvePolicyUniverse().

◆ resolve() [2/4]

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

Retrieve an instance of Universe 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::policy::Universe > > modelgbp::policy::Universe::resolve ( opflex::ofcore::OFFramework & framework)
inlinestatic

Retrieve an instance of Universe 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: /PolicyUniverse

Parameters
frameworkthe framework instance to use
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::policy::Universe > > modelgbp::policy::Universe::resolve ( opflex::ofcore::OFFramework & framework,
const opflex::modb::URI & uri )
inlinestatic

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

◆ resolveGbpeEpgMapping() [1/2]

boost::optional< OF_SHARED_PTR< modelgbp::gbpe::EpgMapping > > modelgbp::policy::Universe::resolveGbpeEpgMapping ( const std::string & gbpeEpgMappingName)
inline

Retrieve the child object with the specified naming properties.

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
gbpeEpgMappingNamethe value of gbpeEpgMappingName, a naming property for EpgMapping
Returns
a shared pointer to the object or boost::none if it does not exist.

References modelgbp::gbpe::EpgMapping::resolve().

◆ resolveGbpeEpgMapping() [2/2]

void modelgbp::policy::Universe::resolveGbpeEpgMapping ( std::vector< OF_SHARED_PTR< modelgbp::gbpe::EpgMapping > > & out)
inline

Resolve and retrieve all of the immediate children of type modelgbp::gbpe::EpgMapping.

Note that this retrieves only those children that exist in the local store. It is possible that there are other children that exist remotely.

The resulting managed objects will be added to the result vector provided.

Parameters
outa reference to a vector that will receive the child objects.

References CLASS_ID.

◆ resolveGbpeIndirectEpgMapping() [1/2]

boost::optional< OF_SHARED_PTR< modelgbp::gbpe::IndirectEpgMapping > > modelgbp::policy::Universe::resolveGbpeIndirectEpgMapping ( const std::string & gbpeIndirectEpgMappingName)
inline

Retrieve the child object with the specified naming properties.

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
gbpeIndirectEpgMappingNamethe value of gbpeIndirectEpgMappingName, a naming property for IndirectEpgMapping
Returns
a shared pointer to the object or boost::none if it does not exist.

References modelgbp::gbpe::IndirectEpgMapping::resolve().

◆ resolveGbpeIndirectEpgMapping() [2/2]

void modelgbp::policy::Universe::resolveGbpeIndirectEpgMapping ( std::vector< OF_SHARED_PTR< modelgbp::gbpe::IndirectEpgMapping > > & out)
inline

Resolve and retrieve all of the immediate children of type modelgbp::gbpe::IndirectEpgMapping.

Note that this retrieves only those children that exist in the local store. It is possible that there are other children that exist remotely.

The resulting managed objects will be added to the result vector provided.

Parameters
outa reference to a vector that will receive the child objects.

References CLASS_ID.

◆ resolveGbpeMappingRuleSet() [1/2]

boost::optional< OF_SHARED_PTR< modelgbp::gbpe::MappingRuleSet > > modelgbp::policy::Universe::resolveGbpeMappingRuleSet ( const std::string & gbpeMappingRuleSetName)
inline

Retrieve the child object with the specified naming properties.

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
gbpeMappingRuleSetNamethe value of gbpeMappingRuleSetName, a naming property for MappingRuleSet
Returns
a shared pointer to the object or boost::none if it does not exist.

References modelgbp::gbpe::MappingRuleSet::resolve().

◆ resolveGbpeMappingRuleSet() [2/2]

void modelgbp::policy::Universe::resolveGbpeMappingRuleSet ( std::vector< OF_SHARED_PTR< modelgbp::gbpe::MappingRuleSet > > & out)
inline

Resolve and retrieve all of the immediate children of type modelgbp::gbpe::MappingRuleSet.

Note that this retrieves only those children that exist in the local store. It is possible that there are other children that exist remotely.

The resulting managed objects will be added to the result vector provided.

Parameters
outa reference to a vector that will receive the child objects.

References CLASS_ID.

◆ resolvePlatformConfig() [1/2]

boost::optional< OF_SHARED_PTR< modelgbp::platform::Config > > modelgbp::policy::Universe::resolvePlatformConfig ( const std::string & platformConfigName)
inline

Retrieve the child object with the specified naming properties.

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
platformConfigNamethe value of platformConfigName, a naming property for Config
Returns
a shared pointer to the object or boost::none if it does not exist.

References modelgbp::platform::Config::resolve().

◆ resolvePlatformConfig() [2/2]

void modelgbp::policy::Universe::resolvePlatformConfig ( std::vector< OF_SHARED_PTR< modelgbp::platform::Config > > & out)
inline

Resolve and retrieve all of the immediate children of type modelgbp::platform::Config.

Note that this retrieves only those children that exist in the local store. It is possible that there are other children that exist remotely.

The resulting managed objects will be added to the result vector provided.

Parameters
outa reference to a vector that will receive the child objects.

References CLASS_ID.

◆ resolvePolicySpace() [1/2]

boost::optional< OF_SHARED_PTR< modelgbp::policy::Space > > modelgbp::policy::Universe::resolvePolicySpace ( const std::string & policySpaceName)
inline

Retrieve the child object with the specified naming properties.

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
policySpaceNamethe value of policySpaceName, a naming property for Space
Returns
a shared pointer to the object or boost::none if it does not exist.

References modelgbp::policy::Space::resolve().

◆ resolvePolicySpace() [2/2]

void modelgbp::policy::Universe::resolvePolicySpace ( std::vector< OF_SHARED_PTR< modelgbp::policy::Space > > & out)
inline

Resolve and retrieve all of the immediate children of type modelgbp::policy::Space.

Note that this retrieves only those children that exist in the local store. It is possible that there are other children that exist remotely.

The resulting managed objects will be added to the result vector provided.

Parameters
outa reference to a vector that will receive the child objects.

References CLASS_ID.

◆ unregisterListener() [1/2]

static void modelgbp::policy::Universe::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().

◆ unregisterListener() [2/2]

static void modelgbp::policy::Universe::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().


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