11 #ifndef GI_GBPE_EPGMAPPINGCTXFROMEPGMAPPINGRTGT_HPP 12 #define GI_GBPE_EPGMAPPINGCTXFROMEPGMAPPINGRTGT_HPP 14 #include <boost/optional.hpp> 15 #include "opflex/modb/URIBuilder.h" 16 #include "opflex/modb/mo-internal/MO.h" 22 :
public opflex::modb::mointernal::MO
29 static const opflex::modb::class_id_t
CLASS_ID = 23;
37 return getObjectInstance().isSet(753666ul, opflex::modb::PropertyInfo::ENUM8);
47 return (
const uint8_t)getObjectInstance().getUInt64(753666ul);
56 const uint8_t
getRole(
const uint8_t defaultValue)
58 return getRole().get_value_or(defaultValue);
71 getTLMutator().modify(getClassId(), getURI())->setUInt64(753666ul, newValue);
83 getTLMutator().modify(getClassId(), getURI())->unset(753666ul, opflex::modb::PropertyInfo::ENUM8, opflex::modb::PropertyInfo::SCALAR);
93 return getObjectInstance().isSet(753667ul, opflex::modb::PropertyInfo::STRING);
103 return getObjectInstance().getString(753667ul);
112 const std::string&
getSource(
const std::string& defaultValue)
114 return getSource().get_value_or(defaultValue);
127 getTLMutator().modify(getClassId(), getURI())->setString(753667ul, newValue);
139 getTLMutator().modify(getClassId(), getURI())->unset(753667ul, opflex::modb::PropertyInfo::STRING, opflex::modb::PropertyInfo::SCALAR);
149 return getObjectInstance().isSet(753665ul, opflex::modb::PropertyInfo::ENUM8);
159 return (
const uint8_t)getObjectInstance().getUInt64(753665ul);
168 const uint8_t
getType(
const uint8_t defaultValue)
170 return getType().get_value_or(defaultValue);
183 getTLMutator().modify(getClassId(), getURI())->setUInt64(753665ul, newValue);
195 getTLMutator().modify(getClassId(), getURI())->unset(753665ul, opflex::modb::PropertyInfo::ENUM8, opflex::modb::PropertyInfo::SCALAR);
210 static boost::optional<OF_SHARED_PTR<modelgbp::gbpe::EpgMappingCtxFromEpgMappingRTgt> >
resolve(
211 opflex::ofcore::OFFramework& framework,
212 const opflex::modb::URI& uri)
214 return opflex::modb::mointernal::MO::resolve<modelgbp::gbpe::EpgMappingCtxFromEpgMappingRTgt>(framework,
CLASS_ID, uri);
228 static boost::optional<OF_SHARED_PTR<modelgbp::gbpe::EpgMappingCtxFromEpgMappingRTgt> >
resolve(
229 const opflex::modb::URI& uri)
231 return opflex::modb::mointernal::MO::resolve<modelgbp::gbpe::EpgMappingCtxFromEpgMappingRTgt>(opflex::ofcore::OFFramework::defaultInstance(),
CLASS_ID, uri);
253 opflex::ofcore::OFFramework& framework,
254 const std::string& gbpeEpgMappingName,
255 const std::string& gbpeEpgMappingCtxFromEpgMappingRTgtSource)
257 return resolve(framework,opflex::modb::URIBuilder().addElement(
"PolicyUniverse").addElement(
"GbpeEpgMapping").addElement(gbpeEpgMappingName).addElement(
"GbpeEpgMappingCtxFromEpgMappingRTgt").addElement(gbpeEpgMappingCtxFromEpgMappingRTgtSource).build());
278 const std::string& gbpeEpgMappingName,
279 const std::string& gbpeEpgMappingCtxFromEpgMappingRTgtSource)
303 opflex::ofcore::OFFramework& framework,
304 const std::string& gbpeIndirectEpgMappingName,
305 const std::string& gbpeEpgMappingCtxFromEpgMappingRTgtSource)
307 return resolve(framework,opflex::modb::URIBuilder().addElement(
"PolicyUniverse").addElement(
"GbpeIndirectEpgMapping").addElement(gbpeIndirectEpgMappingName).addElement(
"GbpeEpgMappingCtxFromEpgMappingRTgt").addElement(gbpeEpgMappingCtxFromEpgMappingRTgtSource).build());
328 const std::string& gbpeIndirectEpgMappingName,
329 const std::string& gbpeEpgMappingCtxFromEpgMappingRTgtSource)
344 getTLMutator().remove(
CLASS_ID, getURI());
357 static void remove(opflex::ofcore::OFFramework& framework,
358 const opflex::modb::URI& uri)
360 MO::remove(framework,
CLASS_ID, uri);
373 static void remove(
const opflex::modb::URI& uri)
375 remove(opflex::ofcore::OFFramework::defaultInstance(), uri);
395 opflex::ofcore::OFFramework& framework,
396 const std::string& gbpeEpgMappingName,
397 const std::string& gbpeEpgMappingCtxFromEpgMappingRTgtSource)
399 MO::remove(framework,
CLASS_ID, opflex::modb::URIBuilder().addElement(
"PolicyUniverse").addElement(
"GbpeEpgMapping").addElement(gbpeEpgMappingName).addElement(
"GbpeEpgMappingCtxFromEpgMappingRTgt").addElement(gbpeEpgMappingCtxFromEpgMappingRTgtSource).build());
419 const std::string& gbpeEpgMappingName,
420 const std::string& gbpeEpgMappingCtxFromEpgMappingRTgtSource)
442 opflex::ofcore::OFFramework& framework,
443 const std::string& gbpeIndirectEpgMappingName,
444 const std::string& gbpeEpgMappingCtxFromEpgMappingRTgtSource)
446 MO::remove(framework,
CLASS_ID, opflex::modb::URIBuilder().addElement(
"PolicyUniverse").addElement(
"GbpeIndirectEpgMapping").addElement(gbpeIndirectEpgMappingName).addElement(
"GbpeEpgMappingCtxFromEpgMappingRTgt").addElement(gbpeEpgMappingCtxFromEpgMappingRTgtSource).build());
466 const std::string& gbpeIndirectEpgMappingName,
467 const std::string& gbpeEpgMappingCtxFromEpgMappingRTgtSource)
484 opflex::ofcore::OFFramework& framework,
485 opflex::modb::ObjectListener* listener)
487 opflex::modb::mointernal
488 ::MO::registerListener(framework, listener,
CLASS_ID);
503 opflex::modb::ObjectListener* listener)
515 opflex::ofcore::OFFramework& framework,
516 opflex::modb::ObjectListener* listener)
518 opflex::modb::mointernal
519 ::MO::unregisterListener(framework, listener,
CLASS_ID);
529 opflex::modb::ObjectListener* listener)
539 opflex::ofcore::OFFramework& framework,
540 const opflex::modb::URI& uri,
541 const OF_SHARED_PTR<const opflex::modb::mointernal::ObjectInstance>& oi)
542 : MO(framework,
CLASS_ID, uri, oi) { }
547 #endif // GI_GBPE_EPGMAPPINGCTXFROMEPGMAPPINGRTGT_HPP modelgbp::gbpe::EpgMappingCtxFromEpgMappingRTgt & setSource(const std::string &newValue)
Set source to the specified value in the currently-active mutator.
Definition: EpgMappingCtxFromEpgMappingRTgt.hpp:125
modelgbp::gbpe::EpgMappingCtxFromEpgMappingRTgt & setType(const uint8_t newValue)
Set type to the specified value in the currently-active mutator.
Definition: EpgMappingCtxFromEpgMappingRTgt.hpp:181
static boost::optional< OF_SHARED_PTR< modelgbp::gbpe::EpgMappingCtxFromEpgMappingRTgt > > resolveUnderPolicyUniverseGbpeIndirectEpgMapping(const std::string &gbpeIndirectEpgMappingName, const std::string &gbpeEpgMappingCtxFromEpgMappingRTgtSource)
Retrieve an instance of EpgMappingCtxFromEpgMappingRTgt from the default managed object store by cons...
Definition: EpgMappingCtxFromEpgMappingRTgt.hpp:327
bool isSourceSet()
Check whether source has been set.
Definition: EpgMappingCtxFromEpgMappingRTgt.hpp:91
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: EpgMappingCtxFromEpgMappingRTgt.hpp:502
modelgbp::gbpe::EpgMappingCtxFromEpgMappingRTgt & setRole(const uint8_t newValue)
Set role to the specified value in the currently-active mutator.
Definition: EpgMappingCtxFromEpgMappingRTgt.hpp:69
boost::optional< const uint8_t > getType()
Get the value of type if it has been set.
Definition: EpgMappingCtxFromEpgMappingRTgt.hpp:156
const uint8_t getType(const uint8_t defaultValue)
Get the value of type if set, otherwise the value of default passed in.
Definition: EpgMappingCtxFromEpgMappingRTgt.hpp:168
bool isRoleSet()
Check whether role has been set.
Definition: EpgMappingCtxFromEpgMappingRTgt.hpp:35
modelgbp::gbpe::EpgMappingCtxFromEpgMappingRTgt & unsetRole()
Unset role in the currently-active mutator.
Definition: EpgMappingCtxFromEpgMappingRTgt.hpp:81
static void unregisterListener(opflex::ofcore::OFFramework &framework, opflex::modb::ObjectListener *listener)
Unregister a listener from updates to this class.
Definition: EpgMappingCtxFromEpgMappingRTgt.hpp:514
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: EpgMappingCtxFromEpgMappingRTgt.hpp:483
Definition: EpgMappingCtxFromEpgMappingRTgt.hpp:21
modelgbp::gbpe::EpgMappingCtxFromEpgMappingRTgt & unsetType()
Unset type in the currently-active mutator.
Definition: EpgMappingCtxFromEpgMappingRTgt.hpp:193
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
boost::optional< const std::string & > getSource()
Get the value of source if it has been set.
Definition: EpgMappingCtxFromEpgMappingRTgt.hpp:100
static boost::optional< OF_SHARED_PTR< modelgbp::gbpe::EpgMappingCtxFromEpgMappingRTgt > > resolveUnderPolicyUniverseGbpeEpgMapping(const std::string &gbpeEpgMappingName, const std::string &gbpeEpgMappingCtxFromEpgMappingRTgtSource)
Retrieve an instance of EpgMappingCtxFromEpgMappingRTgt from the default managed object store by cons...
Definition: EpgMappingCtxFromEpgMappingRTgt.hpp:277
modelgbp::gbpe::EpgMappingCtxFromEpgMappingRTgt & unsetSource()
Unset source in the currently-active mutator.
Definition: EpgMappingCtxFromEpgMappingRTgt.hpp:137
bool isTypeSet()
Check whether type has been set.
Definition: EpgMappingCtxFromEpgMappingRTgt.hpp:147
static boost::optional< OF_SHARED_PTR< modelgbp::gbpe::EpgMappingCtxFromEpgMappingRTgt > > resolve(const opflex::modb::URI &uri)
Retrieve an instance of EpgMappingCtxFromEpgMappingRTgt from the managed object store using the defau...
Definition: EpgMappingCtxFromEpgMappingRTgt.hpp:228
static void unregisterListener(opflex::modb::ObjectListener *listener)
Unregister a listener from updates to this class from the default framework instance.
Definition: EpgMappingCtxFromEpgMappingRTgt.hpp:528
static void removeUnderPolicyUniverseGbpeEpgMapping(const std::string &gbpeEpgMappingName, const std::string &gbpeEpgMappingCtxFromEpgMappingRTgtSource)
Remove the EpgMappingCtxFromEpgMappingRTgt object with the specified path elements from the managed o...
Definition: EpgMappingCtxFromEpgMappingRTgt.hpp:418
const std::string & getSource(const std::string &defaultValue)
Get the value of source if set, otherwise the value of default passed in.
Definition: EpgMappingCtxFromEpgMappingRTgt.hpp:112
const uint8_t getRole(const uint8_t defaultValue)
Get the value of role if set, otherwise the value of default passed in.
Definition: EpgMappingCtxFromEpgMappingRTgt.hpp:56
EpgMappingCtxFromEpgMappingRTgt(opflex::ofcore::OFFramework &framework, const opflex::modb::URI &uri, const OF_SHARED_PTR< const opflex::modb::mointernal::ObjectInstance > &oi)
Construct an instance of EpgMappingCtxFromEpgMappingRTgt.
Definition: EpgMappingCtxFromEpgMappingRTgt.hpp:538
static void removeUnderPolicyUniverseGbpeIndirectEpgMapping(opflex::ofcore::OFFramework &framework, const std::string &gbpeIndirectEpgMappingName, const std::string &gbpeEpgMappingCtxFromEpgMappingRTgtSource)
Remove the EpgMappingCtxFromEpgMappingRTgt object with the specified path elements from the managed o...
Definition: EpgMappingCtxFromEpgMappingRTgt.hpp:441
static void removeUnderPolicyUniverseGbpeIndirectEpgMapping(const std::string &gbpeIndirectEpgMappingName, const std::string &gbpeEpgMappingCtxFromEpgMappingRTgtSource)
Remove the EpgMappingCtxFromEpgMappingRTgt object with the specified path elements from the managed o...
Definition: EpgMappingCtxFromEpgMappingRTgt.hpp:465
static boost::optional< OF_SHARED_PTR< modelgbp::gbpe::EpgMappingCtxFromEpgMappingRTgt > > resolveUnderPolicyUniverseGbpeEpgMapping(opflex::ofcore::OFFramework &framework, const std::string &gbpeEpgMappingName, const std::string &gbpeEpgMappingCtxFromEpgMappingRTgtSource)
Retrieve an instance of EpgMappingCtxFromEpgMappingRTgt from the managed object store by constructing...
Definition: EpgMappingCtxFromEpgMappingRTgt.hpp:252
boost::optional< const uint8_t > getRole()
Get the value of role if it has been set.
Definition: EpgMappingCtxFromEpgMappingRTgt.hpp:44
static const opflex::modb::class_id_t CLASS_ID
The unique class ID for EpgMappingCtxFromEpgMappingRTgt.
Definition: EpgMappingCtxFromEpgMappingRTgt.hpp:29
SOME COPYRIGHT.
Definition: OpcodeEnumT.hpp:12
static boost::optional< OF_SHARED_PTR< modelgbp::gbpe::EpgMappingCtxFromEpgMappingRTgt > > resolveUnderPolicyUniverseGbpeIndirectEpgMapping(opflex::ofcore::OFFramework &framework, const std::string &gbpeIndirectEpgMappingName, const std::string &gbpeEpgMappingCtxFromEpgMappingRTgtSource)
Retrieve an instance of EpgMappingCtxFromEpgMappingRTgt from the managed object store by constructing...
Definition: EpgMappingCtxFromEpgMappingRTgt.hpp:302
static void removeUnderPolicyUniverseGbpeEpgMapping(opflex::ofcore::OFFramework &framework, const std::string &gbpeEpgMappingName, const std::string &gbpeEpgMappingCtxFromEpgMappingRTgtSource)
Remove the EpgMappingCtxFromEpgMappingRTgt object with the specified path elements from the managed o...
Definition: EpgMappingCtxFromEpgMappingRTgt.hpp:394