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 = 14;
37 return getObjectInstance().isSet(458754ul, opflex::modb::PropertyInfo::ENUM8);
47 return (
const uint8_t)getObjectInstance().getUInt64(458754ul);
56 const uint8_t
getRole(
const uint8_t defaultValue)
58 return getRole().get_value_or(defaultValue);
71 getTLMutator().modify(getClassId(), getURI())->setUInt64(458754ul, newValue);
83 getTLMutator().modify(getClassId(), getURI())->unset(458754ul, opflex::modb::PropertyInfo::ENUM8, opflex::modb::PropertyInfo::SCALAR);
93 return getObjectInstance().isSet(458755ul, opflex::modb::PropertyInfo::REFERENCE);
103 return getObjectInstance().getReference(458755ul).first;
114 return getObjectInstance().getReference(458755ul).second;
149 getTLMutator().modify(getClassId(), getURI())->setReference(458755ul, 9, uri);
169 const std::string& gbpeEpgMappingName)
171 getTLMutator().modify(getClassId(), getURI())->setReference(458755ul, 9, opflex::modb::URIBuilder().addElement(
"PolicyUniverse").addElement(
"GbpeEpgMapping").addElement(gbpeEpgMappingName).build());
183 getTLMutator().modify(getClassId(), getURI())->unset(458755ul, opflex::modb::PropertyInfo::REFERENCE, opflex::modb::PropertyInfo::SCALAR);
193 return getObjectInstance().isSet(458753ul, opflex::modb::PropertyInfo::ENUM8);
203 return (
const uint8_t)getObjectInstance().getUInt64(458753ul);
212 const uint8_t
getType(
const uint8_t defaultValue)
214 return getType().get_value_or(defaultValue);
227 getTLMutator().modify(getClassId(), getURI())->setUInt64(458753ul, newValue);
239 getTLMutator().modify(getClassId(), getURI())->unset(458753ul, opflex::modb::PropertyInfo::ENUM8, opflex::modb::PropertyInfo::SCALAR);
254 static boost::optional<boost::shared_ptr<modelgbp::gbpe::EpgMappingCtxToEpgMappingRSrc> >
resolve(
255 opflex::ofcore::OFFramework& framework,
256 const opflex::modb::URI& uri)
258 return opflex::modb::mointernal::MO::resolve<modelgbp::gbpe::EpgMappingCtxToEpgMappingRSrc>(framework,
CLASS_ID, uri);
272 static boost::optional<boost::shared_ptr<modelgbp::gbpe::EpgMappingCtxToEpgMappingRSrc> >
resolve(
273 const opflex::modb::URI& uri)
275 return opflex::modb::mointernal::MO::resolve<modelgbp::gbpe::EpgMappingCtxToEpgMappingRSrc>(opflex::ofcore::OFFramework::defaultInstance(),
CLASS_ID, uri);
295 opflex::ofcore::OFFramework& framework,
296 const std::string& epdrLocalL2EpUuid)
298 return resolve(framework,opflex::modb::URIBuilder().addElement(
"EpdrL2Discovered").addElement(
"EpdrLocalL2Ep").addElement(epdrLocalL2EpUuid).addElement(
"GbpeEpgMappingCtx").addElement(
"GbpeEpgMappingCtxToEpgMappingRSrc").build());
317 const std::string& epdrLocalL2EpUuid)
339 opflex::ofcore::OFFramework& framework,
340 const std::string& epdrLocalL3EpUuid)
342 return resolve(framework,opflex::modb::URIBuilder().addElement(
"EpdrL3Discovered").addElement(
"EpdrLocalL3Ep").addElement(epdrLocalL3EpUuid).addElement(
"GbpeEpgMappingCtx").addElement(
"GbpeEpgMappingCtxToEpgMappingRSrc").build());
361 const std::string& epdrLocalL3EpUuid)
376 getTLMutator().remove(
CLASS_ID, getURI());
389 static void remove(opflex::ofcore::OFFramework& framework,
390 const opflex::modb::URI& uri)
392 MO::remove(framework,
CLASS_ID, uri);
405 static void remove(
const opflex::modb::URI& uri)
407 remove(opflex::ofcore::OFFramework::defaultInstance(), uri);
425 opflex::ofcore::OFFramework& framework,
426 const std::string& epdrLocalL2EpUuid)
428 MO::remove(framework,
CLASS_ID, opflex::modb::URIBuilder().addElement(
"EpdrL2Discovered").addElement(
"EpdrLocalL2Ep").addElement(epdrLocalL2EpUuid).addElement(
"GbpeEpgMappingCtx").addElement(
"GbpeEpgMappingCtxToEpgMappingRSrc").build());
446 const std::string& epdrLocalL2EpUuid)
466 opflex::ofcore::OFFramework& framework,
467 const std::string& epdrLocalL3EpUuid)
469 MO::remove(framework,
CLASS_ID, opflex::modb::URIBuilder().addElement(
"EpdrL3Discovered").addElement(
"EpdrLocalL3Ep").addElement(epdrLocalL3EpUuid).addElement(
"GbpeEpgMappingCtx").addElement(
"GbpeEpgMappingCtxToEpgMappingRSrc").build());
487 const std::string& epdrLocalL3EpUuid)
504 opflex::ofcore::OFFramework& framework,
505 opflex::modb::ObjectListener* listener)
507 opflex::modb::mointernal
508 ::MO::registerListener(framework, listener,
CLASS_ID);
523 opflex::modb::ObjectListener* listener)
535 opflex::ofcore::OFFramework& framework,
536 opflex::modb::ObjectListener* listener)
538 opflex::modb::mointernal
539 ::MO::unregisterListener(framework, listener,
CLASS_ID);
549 opflex::modb::ObjectListener* listener)
559 opflex::ofcore::OFFramework& framework,
560 const opflex::modb::URI& uri,
561 const boost::shared_ptr<const opflex::modb::mointernal::ObjectInstance>& oi)
562 : MO(framework,
CLASS_ID, uri, oi) { }
567 #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:445
bool isTypeSet()
Check whether type has been set.
Definition: EpgMappingCtxToEpgMappingRSrc.hpp:191
static boost::optional< boost::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:272
EpgMappingCtxToEpgMappingRSrc(opflex::ofcore::OFFramework &framework, const opflex::modb::URI &uri, const boost::shared_ptr< const opflex::modb::mointernal::ObjectInstance > &oi)
Construct an instance of EpgMappingCtxToEpgMappingRSrc.
Definition: EpgMappingCtxToEpgMappingRSrc.hpp:558
static boost::optional< boost::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:360
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:465
boost::optional< const uint8_t > getType()
Get the value of type if it has been set.
Definition: EpgMappingCtxToEpgMappingRSrc.hpp:200
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:486
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:522
static void unregisterListener(opflex::modb::ObjectListener *listener)
Unregister a listener from updates to this class from the default framework instance.
Definition: EpgMappingCtxToEpgMappingRSrc.hpp:548
static void unregisterListener(opflex::ofcore::OFFramework &framework, opflex::modb::ObjectListener *listener)
Unregister a listener from updates to this class.
Definition: EpgMappingCtxToEpgMappingRSrc.hpp:534
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:225
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
static boost::optional< boost::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:254
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:237
static const opflex::modb::class_id_t CLASS_ID
The unique class ID for EpgMappingCtxToEpgMappingRSrc.
Definition: EpgMappingCtxToEpgMappingRSrc.hpp:29
static boost::optional< boost::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:294
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:424
bool isRoleSet()
Check whether role has been set.
Definition: EpgMappingCtxToEpgMappingRSrc.hpp:35
static boost::optional< boost::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:316
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
modelgbp::gbpe::EpgMappingCtxToEpgMappingRSrc & unsetTarget()
Unset target in the currently-active mutator.
Definition: EpgMappingCtxToEpgMappingRSrc.hpp:181
static boost::optional< boost::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:338
modelgbp::gbpe::EpgMappingCtxToEpgMappingRSrc & unsetRole()
Unset role in the currently-active mutator.
Definition: EpgMappingCtxToEpgMappingRSrc.hpp:81
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:212
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:503