11 #ifndef GI_GBPE_EPATTRIBUTESET_HPP
12 #define GI_GBPE_EPATTRIBUTESET_HPP
14 #include <boost/optional.hpp>
15 #include "opflex/modb/URIBuilder.h"
16 #include "opflex/modb/mo-internal/MO.h"
20 #include "modelgbp/gbpe/EpgMappingCtxFromAttrSetRTgt.hpp"
24 #include "modelgbp/gbpe/EpAttribute.hpp"
30 :
public opflex::modb::mointernal::MO
37 static const opflex::modb::class_id_t
CLASS_ID = 36;
45 return getObjectInstance().isSet(1179649ul, opflex::modb::PropertyInfo::STRING);
52 boost::optional<const std::string&>
getUuid()
55 return getObjectInstance().getString(1179649ul);
64 const std::string&
getUuid(
const std::string& defaultValue)
66 return getUuid().get_value_or(defaultValue);
79 getTLMutator().modify(getClassId(), getURI())->setString(1179649ul, newValue);
91 getTLMutator().modify(getClassId(), getURI())->unset(1179649ul, opflex::modb::PropertyInfo::STRING, opflex::modb::PropertyInfo::SCALAR);
106 static boost::optional<OF_SHARED_PTR<modelgbp::gbpe::EpAttributeSet> >
resolve(
107 opflex::ofcore::OFFramework& framework,
108 const opflex::modb::URI& uri)
110 return opflex::modb::mointernal::MO::resolve<modelgbp::gbpe::EpAttributeSet>(framework,
CLASS_ID, uri);
124 static boost::optional<OF_SHARED_PTR<modelgbp::gbpe::EpAttributeSet> >
resolve(
125 const opflex::modb::URI& uri)
127 return opflex::modb::mointernal::MO::resolve<modelgbp::gbpe::EpAttributeSet>(opflex::ofcore::OFFramework::defaultInstance(),
CLASS_ID, uri);
146 static boost::optional<OF_SHARED_PTR<modelgbp::gbpe::EpAttributeSet> >
resolve(
147 opflex::ofcore::OFFramework& framework,
148 const std::string& gbpeEpAttributeSetUuid)
150 return resolve(framework,opflex::modb::URIBuilder().addElement(
"GbpeVMUniverse").addElement(
"GbpeEpAttributeSet").addElement(gbpeEpAttributeSetUuid).build());
168 static boost::optional<OF_SHARED_PTR<modelgbp::gbpe::EpAttributeSet> >
resolve(
169 const std::string& gbpeEpAttributeSetUuid)
171 return resolve(opflex::ofcore::OFFramework::defaultInstance(),gbpeEpAttributeSetUuid);
186 const std::string& gbpeEpgMappingCtxFromAttrSetRTgtSource)
204 const std::string& gbpeEpgMappingCtxFromAttrSetRTgtSource)
206 OF_SHARED_PTR<modelgbp::gbpe::EpgMappingCtxFromAttrSetRTgt> result = addChild<modelgbp::gbpe::EpgMappingCtxFromAttrSetRTgt>(
207 CLASS_ID, getURI(), 2148663322ul, 26,
208 opflex::modb::URIBuilder(getURI()).addElement(
"GbpeEpgMappingCtxFromAttrSetRTgt").addElement(gbpeEpgMappingCtxFromAttrSetRTgtSource).build()
210 result->setSource(gbpeEpgMappingCtxFromAttrSetRTgtSource);
230 opflex::modb::mointernal::MO::resolveChildren<modelgbp::gbpe::EpgMappingCtxFromAttrSetRTgt>(
231 getFramework(),
CLASS_ID, getURI(), 2148663322ul, 26, out);
246 const std::string& gbpeEpAttributeName)
264 const std::string& gbpeEpAttributeName)
266 OF_SHARED_PTR<modelgbp::gbpe::EpAttribute> result = addChild<modelgbp::gbpe::EpAttribute>(
267 CLASS_ID, getURI(), 2148663333ul, 37,
268 opflex::modb::URIBuilder(getURI()).addElement(
"GbpeEpAttribute").addElement(gbpeEpAttributeName).build()
270 result->setName(gbpeEpAttributeName);
290 opflex::modb::mointernal::MO::resolveChildren<modelgbp::gbpe::EpAttribute>(
291 getFramework(),
CLASS_ID, getURI(), 2148663333ul, 37, out);
304 getTLMutator().remove(
CLASS_ID, getURI());
317 static void remove(opflex::ofcore::OFFramework& framework,
318 const opflex::modb::URI& uri)
320 MO::remove(framework,
CLASS_ID, uri);
333 static void remove(
const opflex::modb::URI& uri)
335 remove(opflex::ofcore::OFFramework::defaultInstance(), uri);
353 opflex::ofcore::OFFramework& framework,
354 const std::string& gbpeEpAttributeSetUuid)
356 MO::remove(framework,
CLASS_ID, opflex::modb::URIBuilder().addElement(
"GbpeVMUniverse").addElement(
"GbpeEpAttributeSet").addElement(gbpeEpAttributeSetUuid).build());
374 const std::string& gbpeEpAttributeSetUuid)
376 remove(opflex::ofcore::OFFramework::defaultInstance(),gbpeEpAttributeSetUuid);
391 opflex::ofcore::OFFramework& framework,
392 opflex::modb::ObjectListener* listener)
394 opflex::modb::mointernal
395 ::MO::registerListener(framework, listener,
CLASS_ID);
410 opflex::modb::ObjectListener* listener)
422 opflex::ofcore::OFFramework& framework,
423 opflex::modb::ObjectListener* listener)
425 opflex::modb::mointernal
426 ::MO::unregisterListener(framework, listener,
CLASS_ID);
436 opflex::modb::ObjectListener* listener)
446 opflex::ofcore::OFFramework& framework,
447 const opflex::modb::URI& uri,
448 const OF_SHARED_PTR<const opflex::modb::mointernal::ObjectInstance>& oi)
449 : MO(framework,
CLASS_ID, uri, oi) { }
454 #endif // GI_GBPE_EPATTRIBUTESET_HPP
static boost::optional< OF_SHARED_PTR< modelgbp::gbpe::EpAttributeSet > > resolve(opflex::ofcore::OFFramework &framework, const std::string &gbpeEpAttributeSetUuid)
Retrieve an instance of EpAttributeSet from the managed object store by constructing its URI from the...
Definition: EpAttributeSet.hpp:146
const std::string & getUuid(const std::string &defaultValue)
Get the value of uuid if set, otherwise the value of default passed in.
Definition: EpAttributeSet.hpp:64
static boost::optional< OF_SHARED_PTR< modelgbp::gbpe::EpgMappingCtxFromAttrSetRTgt > > resolve(opflex::ofcore::OFFramework &framework, const opflex::modb::URI &uri)
Retrieve an instance of EpgMappingCtxFromAttrSetRTgt from the managed object store.
Definition: EpgMappingCtxFromAttrSetRTgt.hpp:210
OF_SHARED_PTR< modelgbp::gbpe::EpgMappingCtxFromAttrSetRTgt > addGbpeEpgMappingCtxFromAttrSetRTgt(const std::string &gbpeEpgMappingCtxFromAttrSetRTgtSource)
Create a new child object with the specified naming properties and make it a child of this object in ...
Definition: EpAttributeSet.hpp:203
OF_SHARED_PTR< modelgbp::gbpe::EpAttribute > addGbpeEpAttribute(const std::string &gbpeEpAttributeName)
Create a new child object with the specified naming properties and make it a child of this object in ...
Definition: EpAttributeSet.hpp:263
static boost::optional< OF_SHARED_PTR< modelgbp::gbpe::EpAttribute > > resolve(opflex::ofcore::OFFramework &framework, const opflex::modb::URI &uri)
Retrieve an instance of EpAttribute from the managed object store.
Definition: EpAttribute.hpp:154
static boost::optional< OF_SHARED_PTR< modelgbp::gbpe::EpAttributeSet > > resolve(opflex::ofcore::OFFramework &framework, const opflex::modb::URI &uri)
Retrieve an instance of EpAttributeSet from the managed object store.
Definition: EpAttributeSet.hpp:106
Definition: EpAttributeSet.hpp:29
void resolveGbpeEpAttribute(std::vector< OF_SHARED_PTR< modelgbp::gbpe::EpAttribute > > &out)
Resolve and retrieve all of the immediate children of type modelgbp::gbpe::EpAttribute.
Definition: EpAttributeSet.hpp:288
boost::optional< const std::string & > getUuid()
Get the value of uuid if it has been set.
Definition: EpAttributeSet.hpp:52
boost::optional< OF_SHARED_PTR< modelgbp::gbpe::EpAttribute > > resolveGbpeEpAttribute(const std::string &gbpeEpAttributeName)
Retrieve the child object with the specified naming properties.
Definition: EpAttributeSet.hpp:245
static void unregisterListener(opflex::ofcore::OFFramework &framework, opflex::modb::ObjectListener *listener)
Unregister a listener from updates to this class.
Definition: EpAttributeSet.hpp:421
void resolveGbpeEpgMappingCtxFromAttrSetRTgt(std::vector< OF_SHARED_PTR< modelgbp::gbpe::EpgMappingCtxFromAttrSetRTgt > > &out)
Resolve and retrieve all of the immediate children of type modelgbp::gbpe::EpgMappingCtxFromAttrSetRT...
Definition: EpAttributeSet.hpp:228
boost::optional< OF_SHARED_PTR< modelgbp::gbpe::EpgMappingCtxFromAttrSetRTgt > > resolveGbpeEpgMappingCtxFromAttrSetRTgt(const std::string &gbpeEpgMappingCtxFromAttrSetRTgtSource)
Retrieve the child object with the specified naming properties.
Definition: EpAttributeSet.hpp:185
EpAttributeSet(opflex::ofcore::OFFramework &framework, const opflex::modb::URI &uri, const OF_SHARED_PTR< const opflex::modb::mointernal::ObjectInstance > &oi)
Construct an instance of EpAttributeSet.
Definition: EpAttributeSet.hpp:445
modelgbp::gbpe::EpAttributeSet & setUuid(const std::string &newValue)
Set uuid to the specified value in the currently-active mutator.
Definition: EpAttributeSet.hpp:77
bool isUuidSet()
Check whether uuid has been set.
Definition: EpAttributeSet.hpp:43
static void unregisterListener(opflex::modb::ObjectListener *listener)
Unregister a listener from updates to this class from the default framework instance.
Definition: EpAttributeSet.hpp:435
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: EpAttributeSet.hpp:390
static const opflex::modb::class_id_t CLASS_ID
The unique class ID for EpAttributeSet.
Definition: EpAttributeSet.hpp:37
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: EpAttributeSet.hpp:409
static boost::optional< OF_SHARED_PTR< modelgbp::gbpe::EpAttributeSet > > resolve(const std::string &gbpeEpAttributeSetUuid)
Retrieve an instance of EpAttributeSet from the default managed object store by constructing its URI ...
Definition: EpAttributeSet.hpp:168
static boost::optional< OF_SHARED_PTR< modelgbp::gbpe::EpAttributeSet > > resolve(const opflex::modb::URI &uri)
Retrieve an instance of EpAttributeSet from the managed object store using the default framework inst...
Definition: EpAttributeSet.hpp:124
modelgbp::gbpe::EpAttributeSet & unsetUuid()
Unset uuid in the currently-active mutator.
Definition: EpAttributeSet.hpp:89