11#ifndef GI_GBPE_INDIRECTEPGMAPPING_HPP
12#define GI_GBPE_INDIRECTEPGMAPPING_HPP
14#include <boost/optional.hpp>
15#include "opflex/modb/URIBuilder.h"
16#include "opflex/modb/mo-internal/MO.h"
20#include "modelgbp/gbpe/IndirectEpgMappingToDefaultGroupRSrc.hpp"
24#include "modelgbp/gbpe/IndirectEpgMappingToMappingRuleSetRSrc.hpp"
28#include "modelgbp/gbpe/EpgMappingCtxFromEpgMappingRTgt.hpp"
34 :
public opflex::modb::mointernal::MO
41 static const opflex::modb::class_id_t
CLASS_ID = 14;
49 return getObjectInstance().isSet(458753ul, opflex::modb::PropertyInfo::STRING);
56 boost::optional<const std::string&>
getName()
59 return getObjectInstance().getString(458753ul);
68 const std::string&
getName(
const std::string& defaultValue)
70 return getName().get_value_or(defaultValue);
83 getTLMutator().modify(getClassId(), getURI())->setString(458753ul, newValue);
95 getTLMutator().modify(getClassId(), getURI())->unset(458753ul, opflex::modb::PropertyInfo::STRING, opflex::modb::PropertyInfo::SCALAR);
110 static boost::optional<OF_SHARED_PTR<modelgbp::gbpe::IndirectEpgMapping> >
resolve(
111 opflex::ofcore::OFFramework& framework,
112 const opflex::modb::URI& uri)
114 return opflex::modb::mointernal::MO::resolve<modelgbp::gbpe::IndirectEpgMapping>(framework,
CLASS_ID, uri);
128 static boost::optional<OF_SHARED_PTR<modelgbp::gbpe::IndirectEpgMapping> >
resolve(
129 const opflex::modb::URI& uri)
131 return opflex::modb::mointernal::MO::resolve<modelgbp::gbpe::IndirectEpgMapping>(opflex::ofcore::OFFramework::defaultInstance(),
CLASS_ID, uri);
150 static boost::optional<OF_SHARED_PTR<modelgbp::gbpe::IndirectEpgMapping> >
resolve(
151 opflex::ofcore::OFFramework& framework,
152 const std::string& gbpeIndirectEpgMappingName)
154 return resolve(framework,opflex::modb::URIBuilder().addElement(
"PolicyUniverse").addElement(
"GbpeIndirectEpgMapping").addElement(gbpeIndirectEpgMappingName).build());
172 static boost::optional<OF_SHARED_PTR<modelgbp::gbpe::IndirectEpgMapping> >
resolve(
173 const std::string& gbpeIndirectEpgMappingName)
175 return resolve(opflex::ofcore::OFFramework::defaultInstance(),gbpeIndirectEpgMappingName);
206 OF_SHARED_PTR<modelgbp::gbpe::IndirectEpgMappingToDefaultGroupRSrc> result = addChild<modelgbp::gbpe::IndirectEpgMappingToDefaultGroupRSrc>(
207 CLASS_ID, getURI(), 2147942415ul, 15,
208 opflex::modb::URIBuilder(getURI()).addElement(
"GbpeIndirectEpgMappingToDefaultGroupRSrc").build()
241 OF_SHARED_PTR<modelgbp::gbpe::IndirectEpgMappingToMappingRuleSetRSrc> result = addChild<modelgbp::gbpe::IndirectEpgMappingToMappingRuleSetRSrc>(
242 CLASS_ID, getURI(), 2147942418ul, 18,
243 opflex::modb::URIBuilder(getURI()).addElement(
"GbpeIndirectEpgMappingToMappingRuleSetRSrc").build()
260 const std::string& gbpeEpgMappingCtxFromEpgMappingRTgtSource)
278 const std::string& gbpeEpgMappingCtxFromEpgMappingRTgtSource)
280 OF_SHARED_PTR<modelgbp::gbpe::EpgMappingCtxFromEpgMappingRTgt> result = addChild<modelgbp::gbpe::EpgMappingCtxFromEpgMappingRTgt>(
281 CLASS_ID, getURI(), 2147942423ul, 23,
282 opflex::modb::URIBuilder(getURI()).addElement(
"GbpeEpgMappingCtxFromEpgMappingRTgt").addElement(gbpeEpgMappingCtxFromEpgMappingRTgtSource).build()
284 result->setSource(gbpeEpgMappingCtxFromEpgMappingRTgtSource);
304 opflex::modb::mointernal::MO::resolveChildren<modelgbp::gbpe::EpgMappingCtxFromEpgMappingRTgt>(
305 getFramework(),
CLASS_ID, getURI(), 2147942423ul, 23, out);
318 getTLMutator().remove(
CLASS_ID, getURI());
331 static void remove(opflex::ofcore::OFFramework& framework,
332 const opflex::modb::URI& uri)
334 MO::remove(framework,
CLASS_ID, uri);
347 static void remove(
const opflex::modb::URI& uri)
349 remove(opflex::ofcore::OFFramework::defaultInstance(), uri);
367 opflex::ofcore::OFFramework& framework,
368 const std::string& gbpeIndirectEpgMappingName)
370 MO::remove(framework,
CLASS_ID, opflex::modb::URIBuilder().addElement(
"PolicyUniverse").addElement(
"GbpeIndirectEpgMapping").addElement(gbpeIndirectEpgMappingName).build());
388 const std::string& gbpeIndirectEpgMappingName)
390 remove(opflex::ofcore::OFFramework::defaultInstance(),gbpeIndirectEpgMappingName);
405 opflex::ofcore::OFFramework& framework,
406 opflex::modb::ObjectListener* listener)
408 opflex::modb::mointernal
409 ::MO::registerListener(framework, listener,
CLASS_ID);
424 opflex::modb::ObjectListener* listener)
436 opflex::ofcore::OFFramework& framework,
437 opflex::modb::ObjectListener* listener)
439 opflex::modb::mointernal
440 ::MO::unregisterListener(framework, listener,
CLASS_ID);
450 opflex::modb::ObjectListener* listener)
460 opflex::ofcore::OFFramework& framework,
461 const opflex::modb::URI& uri,
462 const OF_SHARED_PTR<const opflex::modb::mointernal::ObjectInstance>& oi)
463 : MO(framework,
CLASS_ID, uri, oi) { }
static boost::optional< OF_SHARED_PTR< modelgbp::gbpe::EpgMappingCtxFromEpgMappingRTgt > > resolve(opflex::ofcore::OFFramework &framework, const opflex::modb::URI &uri)
Retrieve an instance of EpgMappingCtxFromEpgMappingRTgt from the managed object store.
Definition EpgMappingCtxFromEpgMappingRTgt.hpp:210
static boost::optional< OF_SHARED_PTR< modelgbp::gbpe::IndirectEpgMappingToDefaultGroupRSrc > > resolve(opflex::ofcore::OFFramework &framework, const opflex::modb::URI &uri)
Retrieve an instance of IndirectEpgMappingToDefaultGroupRSrc from the managed object store.
Definition IndirectEpgMappingToDefaultGroupRSrc.hpp:257
static boost::optional< OF_SHARED_PTR< modelgbp::gbpe::IndirectEpgMappingToMappingRuleSetRSrc > > resolve(opflex::ofcore::OFFramework &framework, const opflex::modb::URI &uri)
Retrieve an instance of IndirectEpgMappingToMappingRuleSetRSrc from the managed object store.
Definition IndirectEpgMappingToMappingRuleSetRSrc.hpp:254
Definition IndirectEpgMapping.hpp:35
static void remove(const opflex::modb::URI &uri)
Remove the IndirectEpgMapping object with the specified URI using the currently-active mutator and th...
Definition IndirectEpgMapping.hpp:347
const std::string & getName(const std::string &defaultValue)
Get the value of name if set, otherwise the value of default passed in.
Definition IndirectEpgMapping.hpp:68
static void unregisterListener(opflex::modb::ObjectListener *listener)
Unregister a listener from updates to this class from the default framework instance.
Definition IndirectEpgMapping.hpp:449
static const opflex::modb::class_id_t CLASS_ID
The unique class ID for IndirectEpgMapping.
Definition IndirectEpgMapping.hpp:41
OF_SHARED_PTR< modelgbp::gbpe::EpgMappingCtxFromEpgMappingRTgt > addGbpeEpgMappingCtxFromEpgMappingRTgt(const std::string &gbpeEpgMappingCtxFromEpgMappingRTgtSource)
Create a new child object with the specified naming properties and make it a child of this object in ...
Definition IndirectEpgMapping.hpp:277
modelgbp::gbpe::IndirectEpgMapping & setName(const std::string &newValue)
Set name to the specified value in the currently-active mutator.
Definition IndirectEpgMapping.hpp:81
void resolveGbpeEpgMappingCtxFromEpgMappingRTgt(std::vector< OF_SHARED_PTR< modelgbp::gbpe::EpgMappingCtxFromEpgMappingRTgt > > &out)
Resolve and retrieve all of the immediate children of type modelgbp::gbpe::EpgMappingCtxFromEpgMappin...
Definition IndirectEpgMapping.hpp:302
IndirectEpgMapping(opflex::ofcore::OFFramework &framework, const opflex::modb::URI &uri, const OF_SHARED_PTR< const opflex::modb::mointernal::ObjectInstance > &oi)
Construct an instance of IndirectEpgMapping.
Definition IndirectEpgMapping.hpp:459
static void remove(opflex::ofcore::OFFramework &framework, const opflex::modb::URI &uri)
Remove the IndirectEpgMapping object with the specified URI using the currently-active mutator.
Definition IndirectEpgMapping.hpp:331
modelgbp::gbpe::IndirectEpgMapping & unsetName()
Unset name in the currently-active mutator.
Definition IndirectEpgMapping.hpp:93
void remove()
Remove this instance using the currently-active mutator.
Definition IndirectEpgMapping.hpp:316
boost::optional< OF_SHARED_PTR< modelgbp::gbpe::EpgMappingCtxFromEpgMappingRTgt > > resolveGbpeEpgMappingCtxFromEpgMappingRTgt(const std::string &gbpeEpgMappingCtxFromEpgMappingRTgtSource)
Retrieve the child object with the specified naming properties.
Definition IndirectEpgMapping.hpp:259
bool isNameSet()
Check whether name has been set.
Definition IndirectEpgMapping.hpp:47
static boost::optional< OF_SHARED_PTR< modelgbp::gbpe::IndirectEpgMapping > > resolve(const std::string &gbpeIndirectEpgMappingName)
Retrieve an instance of IndirectEpgMapping from the default managed object store by constructing its ...
Definition IndirectEpgMapping.hpp:172
static void registerListener(opflex::modb::ObjectListener *listener)
Register a listener that will get called for changes related to this class with the default framework...
Definition IndirectEpgMapping.hpp:423
OF_SHARED_PTR< modelgbp::gbpe::IndirectEpgMappingToMappingRuleSetRSrc > addGbpeIndirectEpgMappingToMappingRuleSetRSrc()
Create a new child object with the specified naming properties and make it a child of this object in ...
Definition IndirectEpgMapping.hpp:238
static boost::optional< OF_SHARED_PTR< modelgbp::gbpe::IndirectEpgMapping > > resolve(const opflex::modb::URI &uri)
Retrieve an instance of IndirectEpgMapping from the managed object store using the default framework ...
Definition IndirectEpgMapping.hpp:128
static void remove(const std::string &gbpeIndirectEpgMappingName)
Remove the IndirectEpgMapping object with the specified path elements from the managed object store u...
Definition IndirectEpgMapping.hpp:387
static void remove(opflex::ofcore::OFFramework &framework, const std::string &gbpeIndirectEpgMappingName)
Remove the IndirectEpgMapping object with the specified path elements from the managed object store.
Definition IndirectEpgMapping.hpp:366
static void unregisterListener(opflex::ofcore::OFFramework &framework, opflex::modb::ObjectListener *listener)
Unregister a listener from updates to this class.
Definition IndirectEpgMapping.hpp:435
OF_SHARED_PTR< modelgbp::gbpe::IndirectEpgMappingToDefaultGroupRSrc > addGbpeIndirectEpgMappingToDefaultGroupRSrc()
Create a new child object with the specified naming properties and make it a child of this object in ...
Definition IndirectEpgMapping.hpp:203
boost::optional< const std::string & > getName()
Get the value of name if it has been set.
Definition IndirectEpgMapping.hpp:56
boost::optional< OF_SHARED_PTR< modelgbp::gbpe::IndirectEpgMappingToMappingRuleSetRSrc > > resolveGbpeIndirectEpgMappingToMappingRuleSetRSrc()
Retrieve the child object with the specified naming properties.
Definition IndirectEpgMapping.hpp:222
static void registerListener(opflex::ofcore::OFFramework &framework, opflex::modb::ObjectListener *listener)
Register a listener that will get called for changes related to this class.
Definition IndirectEpgMapping.hpp:404
static boost::optional< OF_SHARED_PTR< modelgbp::gbpe::IndirectEpgMapping > > resolve(opflex::ofcore::OFFramework &framework, const std::string &gbpeIndirectEpgMappingName)
Retrieve an instance of IndirectEpgMapping from the managed object store by constructing its URI from...
Definition IndirectEpgMapping.hpp:150
boost::optional< OF_SHARED_PTR< modelgbp::gbpe::IndirectEpgMappingToDefaultGroupRSrc > > resolveGbpeIndirectEpgMappingToDefaultGroupRSrc()
Retrieve the child object with the specified naming properties.
Definition IndirectEpgMapping.hpp:187
static boost::optional< OF_SHARED_PTR< modelgbp::gbpe::IndirectEpgMapping > > resolve(opflex::ofcore::OFFramework &framework, const opflex::modb::URI &uri)
Retrieve an instance of IndirectEpgMapping from the managed object store.
Definition IndirectEpgMapping.hpp:110
SOME COPYRIGHT.
Definition OpcodeEnumT.hpp:12