11 #ifndef GI_GBPE_EPGMAPPINGCTXTOEPGMAPPINGRSRC_HPP 12 #define GI_GBPE_EPGMAPPINGCTXTOEPGMAPPINGRSRC_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 = 22;
37 return getObjectInstance().isSet(720898ul, opflex::modb::PropertyInfo::ENUM8);
47 return (
const uint8_t)getObjectInstance().getUInt64(720898ul);
56 const uint8_t
getRole(
const uint8_t defaultValue)
58 return getRole().get_value_or(defaultValue);
71 getTLMutator().modify(getClassId(), getURI())->setUInt64(720898ul, newValue);
83 getTLMutator().modify(getClassId(), getURI())->unset(720898ul, opflex::modb::PropertyInfo::ENUM8, opflex::modb::PropertyInfo::SCALAR);
93 return getObjectInstance().isSet(720899ul, opflex::modb::PropertyInfo::REFERENCE);
103 return getObjectInstance().getReference(720899ul).first;
114 return getObjectInstance().getReference(720899ul).second;
149 getTLMutator().modify(getClassId(), getURI())->setReference(720899ul, 10, uri);
169 const std::string& gbpeEpgMappingName)
171 getTLMutator().modify(getClassId(), getURI())->setReference(720899ul, 10, opflex::modb::URIBuilder().addElement(
"PolicyUniverse").addElement(
"GbpeEpgMapping").addElement(gbpeEpgMappingName).build());
186 getTLMutator().modify(getClassId(), getURI())->setReference(720899ul, 14, uri);
206 const std::string& gbpeIndirectEpgMappingName)
208 getTLMutator().modify(getClassId(), getURI())->setReference(720899ul, 14, opflex::modb::URIBuilder().addElement(
"PolicyUniverse").addElement(
"GbpeIndirectEpgMapping").addElement(gbpeIndirectEpgMappingName).build());
220 getTLMutator().modify(getClassId(), getURI())->unset(720899ul, opflex::modb::PropertyInfo::REFERENCE, opflex::modb::PropertyInfo::SCALAR);
230 return getObjectInstance().isSet(720897ul, opflex::modb::PropertyInfo::ENUM8);
240 return (
const uint8_t)getObjectInstance().getUInt64(720897ul);
249 const uint8_t
getType(
const uint8_t defaultValue)
251 return getType().get_value_or(defaultValue);
264 getTLMutator().modify(getClassId(), getURI())->setUInt64(720897ul, newValue);
276 getTLMutator().modify(getClassId(), getURI())->unset(720897ul, opflex::modb::PropertyInfo::ENUM8, opflex::modb::PropertyInfo::SCALAR);
291 static boost::optional<OF_SHARED_PTR<modelgbp::gbpe::EpgMappingCtxToEpgMappingRSrc> >
resolve(
292 opflex::ofcore::OFFramework& framework,
293 const opflex::modb::URI& uri)
295 return opflex::modb::mointernal::MO::resolve<modelgbp::gbpe::EpgMappingCtxToEpgMappingRSrc>(framework,
CLASS_ID, uri);
309 static boost::optional<OF_SHARED_PTR<modelgbp::gbpe::EpgMappingCtxToEpgMappingRSrc> >
resolve(
310 const opflex::modb::URI& uri)
312 return opflex::modb::mointernal::MO::resolve<modelgbp::gbpe::EpgMappingCtxToEpgMappingRSrc>(opflex::ofcore::OFFramework::defaultInstance(),
CLASS_ID, uri);
332 opflex::ofcore::OFFramework& framework,
333 const std::string& epdrLocalL2EpUuid)
335 return resolve(framework,opflex::modb::URIBuilder().addElement(
"EpdrL2Discovered").addElement(
"EpdrLocalL2Ep").addElement(epdrLocalL2EpUuid).addElement(
"GbpeEpgMappingCtx").addElement(
"GbpeEpgMappingCtxToEpgMappingRSrc").build());
354 const std::string& epdrLocalL2EpUuid)
376 opflex::ofcore::OFFramework& framework,
377 const std::string& epdrLocalL3EpUuid)
379 return resolve(framework,opflex::modb::URIBuilder().addElement(
"EpdrL3Discovered").addElement(
"EpdrLocalL3Ep").addElement(epdrLocalL3EpUuid).addElement(
"GbpeEpgMappingCtx").addElement(
"GbpeEpgMappingCtxToEpgMappingRSrc").build());
398 const std::string& epdrLocalL3EpUuid)
413 getTLMutator().remove(
CLASS_ID, getURI());
426 static void remove(opflex::ofcore::OFFramework& framework,
427 const opflex::modb::URI& uri)
429 MO::remove(framework,
CLASS_ID, uri);
442 static void remove(
const opflex::modb::URI& uri)
444 remove(opflex::ofcore::OFFramework::defaultInstance(), uri);
462 opflex::ofcore::OFFramework& framework,
463 const std::string& epdrLocalL2EpUuid)
465 MO::remove(framework,
CLASS_ID, opflex::modb::URIBuilder().addElement(
"EpdrL2Discovered").addElement(
"EpdrLocalL2Ep").addElement(epdrLocalL2EpUuid).addElement(
"GbpeEpgMappingCtx").addElement(
"GbpeEpgMappingCtxToEpgMappingRSrc").build());
483 const std::string& epdrLocalL2EpUuid)
503 opflex::ofcore::OFFramework& framework,
504 const std::string& epdrLocalL3EpUuid)
506 MO::remove(framework,
CLASS_ID, opflex::modb::URIBuilder().addElement(
"EpdrL3Discovered").addElement(
"EpdrLocalL3Ep").addElement(epdrLocalL3EpUuid).addElement(
"GbpeEpgMappingCtx").addElement(
"GbpeEpgMappingCtxToEpgMappingRSrc").build());
524 const std::string& epdrLocalL3EpUuid)
541 opflex::ofcore::OFFramework& framework,
542 opflex::modb::ObjectListener* listener)
544 opflex::modb::mointernal
545 ::MO::registerListener(framework, listener,
CLASS_ID);
560 opflex::modb::ObjectListener* listener)
572 opflex::ofcore::OFFramework& framework,
573 opflex::modb::ObjectListener* listener)
575 opflex::modb::mointernal
576 ::MO::unregisterListener(framework, listener,
CLASS_ID);
586 opflex::modb::ObjectListener* listener)
596 opflex::ofcore::OFFramework& framework,
597 const opflex::modb::URI& uri,
598 const OF_SHARED_PTR<const opflex::modb::mointernal::ObjectInstance>& oi)
599 : MO(framework,
CLASS_ID, uri, oi) { }
604 #endif // GI_GBPE_EPGMAPPINGCTXTOEPGMAPPINGRSRC_HPP static void removeUnderEpdrL2DiscoveredEpdrLocalL2EpGbpeEpgMappingCtx(const std::string &epdrLocalL2EpUuid)
Remove the EpgMappingCtxToEpgMappingRSrc object with the specified path elements from the managed obj...
Definition: EpgMappingCtxToEpgMappingRSrc.hpp:482
bool isTypeSet()
Check whether type has been set.
Definition: EpgMappingCtxToEpgMappingRSrc.hpp:228
modelgbp::gbpe::EpgMappingCtxToEpgMappingRSrc & setTargetEpgMapping(const std::string &gbpeEpgMappingName)
Set the reference to point to an instance of EpgMapping in the currently-active mutator by constructi...
Definition: EpgMappingCtxToEpgMappingRSrc.hpp:168
static void removeUnderEpdrL3DiscoveredEpdrLocalL3EpGbpeEpgMappingCtx(opflex::ofcore::OFFramework &framework, const std::string &epdrLocalL3EpUuid)
Remove the EpgMappingCtxToEpgMappingRSrc object with the specified path elements from the managed obj...
Definition: EpgMappingCtxToEpgMappingRSrc.hpp:502
boost::optional< const uint8_t > getType()
Get the value of type if it has been set.
Definition: EpgMappingCtxToEpgMappingRSrc.hpp:237
modelgbp::gbpe::EpgMappingCtxToEpgMappingRSrc & setTargetIndirectEpgMapping(const opflex::modb::URI &uri)
Set the reference to point to an instance of IndirectEpgMapping with the specified URI...
Definition: EpgMappingCtxToEpgMappingRSrc.hpp:184
boost::optional< opflex::modb::class_id_t > getTargetClass()
Get the value of targetClass if it has been set.
Definition: EpgMappingCtxToEpgMappingRSrc.hpp:100
static void removeUnderEpdrL3DiscoveredEpdrLocalL3EpGbpeEpgMappingCtx(const std::string &epdrLocalL3EpUuid)
Remove the EpgMappingCtxToEpgMappingRSrc object with the specified path elements from the managed obj...
Definition: EpgMappingCtxToEpgMappingRSrc.hpp:523
boost::optional< opflex::modb::URI > getTargetURI()
Get the value of targetURI if it has been set.
Definition: EpgMappingCtxToEpgMappingRSrc.hpp:111
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: EpgMappingCtxToEpgMappingRSrc.hpp:559
static void unregisterListener(opflex::modb::ObjectListener *listener)
Unregister a listener from updates to this class from the default framework instance.
Definition: EpgMappingCtxToEpgMappingRSrc.hpp:585
static void unregisterListener(opflex::ofcore::OFFramework &framework, opflex::modb::ObjectListener *listener)
Unregister a listener from updates to this class.
Definition: EpgMappingCtxToEpgMappingRSrc.hpp:571
boost::optional< const uint8_t > getRole()
Get the value of role if it has been set.
Definition: EpgMappingCtxToEpgMappingRSrc.hpp:44
modelgbp::gbpe::EpgMappingCtxToEpgMappingRSrc & setType(const uint8_t newValue)
Set type to the specified value in the currently-active mutator.
Definition: EpgMappingCtxToEpgMappingRSrc.hpp:262
static boost::optional< OF_SHARED_PTR< modelgbp::gbpe::EpgMappingCtxToEpgMappingRSrc > > resolveUnderEpdrL2DiscoveredEpdrLocalL2EpGbpeEpgMappingCtx(const std::string &epdrLocalL2EpUuid)
Retrieve an instance of EpgMappingCtxToEpgMappingRSrc from the default managed object store by constr...
Definition: EpgMappingCtxToEpgMappingRSrc.hpp:353
modelgbp::gbpe::EpgMappingCtxToEpgMappingRSrc & setTargetIndirectEpgMapping(const std::string &gbpeIndirectEpgMappingName)
Set the reference to point to an instance of IndirectEpgMapping in the currently-active mutator by co...
Definition: EpgMappingCtxToEpgMappingRSrc.hpp:205
modelgbp::gbpe::EpgMappingCtxToEpgMappingRSrc & setRole(const uint8_t newValue)
Set role to the specified value in the currently-active mutator.
Definition: EpgMappingCtxToEpgMappingRSrc.hpp:69
modelgbp::gbpe::EpgMappingCtxToEpgMappingRSrc & setTargetEpgMapping(const opflex::modb::URI &uri)
Set the reference to point to an instance of EpgMapping with the specified URI.
Definition: EpgMappingCtxToEpgMappingRSrc.hpp:147
opflex::modb::class_id_t getTargetClass(opflex::modb::class_id_t defaultValue)
Get the value of targetClass if set, otherwise the value of default passed in.
Definition: EpgMappingCtxToEpgMappingRSrc.hpp:123
modelgbp::gbpe::EpgMappingCtxToEpgMappingRSrc & unsetType()
Unset type in the currently-active mutator.
Definition: EpgMappingCtxToEpgMappingRSrc.hpp:274
static boost::optional< OF_SHARED_PTR< modelgbp::gbpe::EpgMappingCtxToEpgMappingRSrc > > resolveUnderEpdrL2DiscoveredEpdrLocalL2EpGbpeEpgMappingCtx(opflex::ofcore::OFFramework &framework, const std::string &epdrLocalL2EpUuid)
Retrieve an instance of EpgMappingCtxToEpgMappingRSrc from the managed object store by constructing i...
Definition: EpgMappingCtxToEpgMappingRSrc.hpp:331
static const opflex::modb::class_id_t CLASS_ID
The unique class ID for EpgMappingCtxToEpgMappingRSrc.
Definition: EpgMappingCtxToEpgMappingRSrc.hpp:29
static void removeUnderEpdrL2DiscoveredEpdrLocalL2EpGbpeEpgMappingCtx(opflex::ofcore::OFFramework &framework, const std::string &epdrLocalL2EpUuid)
Remove the EpgMappingCtxToEpgMappingRSrc object with the specified path elements from the managed obj...
Definition: EpgMappingCtxToEpgMappingRSrc.hpp:461
bool isRoleSet()
Check whether role has been set.
Definition: EpgMappingCtxToEpgMappingRSrc.hpp:35
static boost::optional< OF_SHARED_PTR< modelgbp::gbpe::EpgMappingCtxToEpgMappingRSrc > > resolveUnderEpdrL3DiscoveredEpdrLocalL3EpGbpeEpgMappingCtx(opflex::ofcore::OFFramework &framework, const std::string &epdrLocalL3EpUuid)
Retrieve an instance of EpgMappingCtxToEpgMappingRSrc from the managed object store by constructing i...
Definition: EpgMappingCtxToEpgMappingRSrc.hpp:375
opflex::modb::URI getTargetURI(opflex::modb::URI defaultValue)
Get the value of targetURI if set, otherwise the value of default passed in.
Definition: EpgMappingCtxToEpgMappingRSrc.hpp:133
bool isTargetSet()
Check whether target has been set.
Definition: EpgMappingCtxToEpgMappingRSrc.hpp:91
const uint8_t getRole(const uint8_t defaultValue)
Get the value of role if set, otherwise the value of default passed in.
Definition: EpgMappingCtxToEpgMappingRSrc.hpp:56
static boost::optional< OF_SHARED_PTR< modelgbp::gbpe::EpgMappingCtxToEpgMappingRSrc > > resolveUnderEpdrL3DiscoveredEpdrLocalL3EpGbpeEpgMappingCtx(const std::string &epdrLocalL3EpUuid)
Retrieve an instance of EpgMappingCtxToEpgMappingRSrc from the default managed object store by constr...
Definition: EpgMappingCtxToEpgMappingRSrc.hpp:397
modelgbp::gbpe::EpgMappingCtxToEpgMappingRSrc & unsetTarget()
Unset target in the currently-active mutator.
Definition: EpgMappingCtxToEpgMappingRSrc.hpp:218
modelgbp::gbpe::EpgMappingCtxToEpgMappingRSrc & unsetRole()
Unset role in the currently-active mutator.
Definition: EpgMappingCtxToEpgMappingRSrc.hpp:81
static boost::optional< OF_SHARED_PTR< modelgbp::gbpe::EpgMappingCtxToEpgMappingRSrc > > resolve(opflex::ofcore::OFFramework &framework, const opflex::modb::URI &uri)
Retrieve an instance of EpgMappingCtxToEpgMappingRSrc from the managed object store.
Definition: EpgMappingCtxToEpgMappingRSrc.hpp:291
EpgMappingCtxToEpgMappingRSrc(opflex::ofcore::OFFramework &framework, const opflex::modb::URI &uri, const OF_SHARED_PTR< const opflex::modb::mointernal::ObjectInstance > &oi)
Construct an instance of EpgMappingCtxToEpgMappingRSrc.
Definition: EpgMappingCtxToEpgMappingRSrc.hpp:595
Definition: EpgMappingCtxToEpgMappingRSrc.hpp:21
const uint8_t getType(const uint8_t defaultValue)
Get the value of type if set, otherwise the value of default passed in.
Definition: EpgMappingCtxToEpgMappingRSrc.hpp:249
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: EpgMappingCtxToEpgMappingRSrc.hpp:540
static boost::optional< OF_SHARED_PTR< modelgbp::gbpe::EpgMappingCtxToEpgMappingRSrc > > resolve(const opflex::modb::URI &uri)
Retrieve an instance of EpgMappingCtxToEpgMappingRSrc from the managed object store using the default...
Definition: EpgMappingCtxToEpgMappingRSrc.hpp:309
SOME COPYRIGHT.
Definition: OpcodeEnumT.hpp:12