11#ifndef GI_GBPE_EPGMAPPINGCTXTOATTRSETRSRC_HPP
12#define GI_GBPE_EPGMAPPINGCTXTOATTRSETRSRC_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 = 25;
37 return getObjectInstance().isSet(819202ul, opflex::modb::PropertyInfo::ENUM8);
47 return (
const uint8_t)getObjectInstance().getUInt64(819202ul);
56 const uint8_t
getRole(
const uint8_t defaultValue)
58 return getRole().get_value_or(defaultValue);
71 getTLMutator().modify(getClassId(), getURI())->setUInt64(819202ul, newValue);
83 getTLMutator().modify(getClassId(), getURI())->unset(819202ul, opflex::modb::PropertyInfo::ENUM8, opflex::modb::PropertyInfo::SCALAR);
93 return getObjectInstance().isSet(819203ul, opflex::modb::PropertyInfo::REFERENCE);
103 return getObjectInstance().getReference(819203ul).first;
114 return getObjectInstance().getReference(819203ul).second;
149 getTLMutator().modify(getClassId(), getURI())->setReference(819203ul, 36, uri);
169 const std::string& gbpeEpAttributeSetUuid)
171 getTLMutator().modify(getClassId(), getURI())->setReference(819203ul, 36, opflex::modb::URIBuilder().addElement(
"GbpeVMUniverse").addElement(
"GbpeEpAttributeSet").addElement(gbpeEpAttributeSetUuid).build());
183 getTLMutator().modify(getClassId(), getURI())->unset(819203ul, opflex::modb::PropertyInfo::REFERENCE, opflex::modb::PropertyInfo::SCALAR);
193 return getObjectInstance().isSet(819201ul, opflex::modb::PropertyInfo::ENUM8);
203 return (
const uint8_t)getObjectInstance().getUInt64(819201ul);
212 const uint8_t
getType(
const uint8_t defaultValue)
214 return getType().get_value_or(defaultValue);
227 getTLMutator().modify(getClassId(), getURI())->setUInt64(819201ul, newValue);
239 getTLMutator().modify(getClassId(), getURI())->unset(819201ul, opflex::modb::PropertyInfo::ENUM8, opflex::modb::PropertyInfo::SCALAR);
254 static boost::optional<OF_SHARED_PTR<modelgbp::gbpe::EpgMappingCtxToAttrSetRSrc> >
resolve(
255 opflex::ofcore::OFFramework& framework,
256 const opflex::modb::URI& uri)
258 return opflex::modb::mointernal::MO::resolve<modelgbp::gbpe::EpgMappingCtxToAttrSetRSrc>(framework,
CLASS_ID, uri);
272 static boost::optional<OF_SHARED_PTR<modelgbp::gbpe::EpgMappingCtxToAttrSetRSrc> >
resolve(
273 const opflex::modb::URI& uri)
275 return opflex::modb::mointernal::MO::resolve<modelgbp::gbpe::EpgMappingCtxToAttrSetRSrc>(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(
"GbpeEpgMappingCtxToAttrSetRSrc").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(
"GbpeEpgMappingCtxToAttrSetRSrc").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(
"GbpeEpgMappingCtxToAttrSetRSrc").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(
"GbpeEpgMappingCtxToAttrSetRSrc").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 OF_SHARED_PTR<const opflex::modb::mointernal::ObjectInstance>& oi)
562 : MO(framework,
CLASS_ID, uri, oi) { }
Definition EpgMappingCtxToAttrSetRSrc.hpp:23
static const opflex::modb::class_id_t CLASS_ID
The unique class ID for EpgMappingCtxToAttrSetRSrc.
Definition EpgMappingCtxToAttrSetRSrc.hpp:29
boost::optional< const uint8_t > getType()
Get the value of type if it has been set.
Definition EpgMappingCtxToAttrSetRSrc.hpp:200
static boost::optional< OF_SHARED_PTR< modelgbp::gbpe::EpgMappingCtxToAttrSetRSrc > > resolveUnderEpdrL3DiscoveredEpdrLocalL3EpGbpeEpgMappingCtx(opflex::ofcore::OFFramework &framework, const std::string &epdrLocalL3EpUuid)
Retrieve an instance of EpgMappingCtxToAttrSetRSrc from the managed object store by constructing its ...
Definition EpgMappingCtxToAttrSetRSrc.hpp:338
modelgbp::gbpe::EpgMappingCtxToAttrSetRSrc & setType(const uint8_t newValue)
Set type to the specified value in the currently-active mutator.
Definition EpgMappingCtxToAttrSetRSrc.hpp:225
static boost::optional< OF_SHARED_PTR< modelgbp::gbpe::EpgMappingCtxToAttrSetRSrc > > resolveUnderEpdrL3DiscoveredEpdrLocalL3EpGbpeEpgMappingCtx(const std::string &epdrLocalL3EpUuid)
Retrieve an instance of EpgMappingCtxToAttrSetRSrc from the default managed object store by construct...
Definition EpgMappingCtxToAttrSetRSrc.hpp:360
static void removeUnderEpdrL2DiscoveredEpdrLocalL2EpGbpeEpgMappingCtx(const std::string &epdrLocalL2EpUuid)
Remove the EpgMappingCtxToAttrSetRSrc object with the specified path elements from the managed object...
Definition EpgMappingCtxToAttrSetRSrc.hpp:445
bool isTargetSet()
Check whether target has been set.
Definition EpgMappingCtxToAttrSetRSrc.hpp:91
modelgbp::gbpe::EpgMappingCtxToAttrSetRSrc & unsetRole()
Unset role in the currently-active mutator.
Definition EpgMappingCtxToAttrSetRSrc.hpp:81
static void removeUnderEpdrL3DiscoveredEpdrLocalL3EpGbpeEpgMappingCtx(opflex::ofcore::OFFramework &framework, const std::string &epdrLocalL3EpUuid)
Remove the EpgMappingCtxToAttrSetRSrc object with the specified path elements from the managed object...
Definition EpgMappingCtxToAttrSetRSrc.hpp:465
static void removeUnderEpdrL2DiscoveredEpdrLocalL2EpGbpeEpgMappingCtx(opflex::ofcore::OFFramework &framework, const std::string &epdrLocalL2EpUuid)
Remove the EpgMappingCtxToAttrSetRSrc object with the specified path elements from the managed object...
Definition EpgMappingCtxToAttrSetRSrc.hpp:424
modelgbp::gbpe::EpgMappingCtxToAttrSetRSrc & setTargetEpAttributeSet(const std::string &gbpeEpAttributeSetUuid)
Set the reference to point to an instance of EpAttributeSet in the currently-active mutator by constr...
Definition EpgMappingCtxToAttrSetRSrc.hpp:168
boost::optional< opflex::modb::class_id_t > getTargetClass()
Get the value of targetClass if it has been set.
Definition EpgMappingCtxToAttrSetRSrc.hpp:100
static void remove(opflex::ofcore::OFFramework &framework, const opflex::modb::URI &uri)
Remove the EpgMappingCtxToAttrSetRSrc object with the specified URI using the currently-active mutato...
Definition EpgMappingCtxToAttrSetRSrc.hpp:389
modelgbp::gbpe::EpgMappingCtxToAttrSetRSrc & setTargetEpAttributeSet(const opflex::modb::URI &uri)
Set the reference to point to an instance of EpAttributeSet with the specified URI.
Definition EpgMappingCtxToAttrSetRSrc.hpp:147
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 EpgMappingCtxToAttrSetRSrc.hpp:503
static void remove(const opflex::modb::URI &uri)
Remove the EpgMappingCtxToAttrSetRSrc object with the specified URI using the currently-active mutato...
Definition EpgMappingCtxToAttrSetRSrc.hpp:405
bool isRoleSet()
Check whether role has been set.
Definition EpgMappingCtxToAttrSetRSrc.hpp:35
const uint8_t getRole(const uint8_t defaultValue)
Get the value of role if set, otherwise the value of default passed in.
Definition EpgMappingCtxToAttrSetRSrc.hpp:56
static boost::optional< OF_SHARED_PTR< modelgbp::gbpe::EpgMappingCtxToAttrSetRSrc > > resolve(const opflex::modb::URI &uri)
Retrieve an instance of EpgMappingCtxToAttrSetRSrc from the managed object store using the default fr...
Definition EpgMappingCtxToAttrSetRSrc.hpp:272
EpgMappingCtxToAttrSetRSrc(opflex::ofcore::OFFramework &framework, const opflex::modb::URI &uri, const OF_SHARED_PTR< const opflex::modb::mointernal::ObjectInstance > &oi)
Construct an instance of EpgMappingCtxToAttrSetRSrc.
Definition EpgMappingCtxToAttrSetRSrc.hpp:558
static void unregisterListener(opflex::modb::ObjectListener *listener)
Unregister a listener from updates to this class from the default framework instance.
Definition EpgMappingCtxToAttrSetRSrc.hpp:548
static boost::optional< OF_SHARED_PTR< modelgbp::gbpe::EpgMappingCtxToAttrSetRSrc > > resolve(opflex::ofcore::OFFramework &framework, const opflex::modb::URI &uri)
Retrieve an instance of EpgMappingCtxToAttrSetRSrc from the managed object store.
Definition EpgMappingCtxToAttrSetRSrc.hpp:254
const uint8_t getType(const uint8_t defaultValue)
Get the value of type if set, otherwise the value of default passed in.
Definition EpgMappingCtxToAttrSetRSrc.hpp:212
boost::optional< opflex::modb::URI > getTargetURI()
Get the value of targetURI if it has been set.
Definition EpgMappingCtxToAttrSetRSrc.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 EpgMappingCtxToAttrSetRSrc.hpp:522
static void removeUnderEpdrL3DiscoveredEpdrLocalL3EpGbpeEpgMappingCtx(const std::string &epdrLocalL3EpUuid)
Remove the EpgMappingCtxToAttrSetRSrc object with the specified path elements from the managed object...
Definition EpgMappingCtxToAttrSetRSrc.hpp:486
opflex::modb::URI getTargetURI(opflex::modb::URI defaultValue)
Get the value of targetURI if set, otherwise the value of default passed in.
Definition EpgMappingCtxToAttrSetRSrc.hpp:133
modelgbp::gbpe::EpgMappingCtxToAttrSetRSrc & setRole(const uint8_t newValue)
Set role to the specified value in the currently-active mutator.
Definition EpgMappingCtxToAttrSetRSrc.hpp:69
void remove()
Remove this instance using the currently-active mutator.
Definition EpgMappingCtxToAttrSetRSrc.hpp:374
modelgbp::gbpe::EpgMappingCtxToAttrSetRSrc & unsetType()
Unset type in the currently-active mutator.
Definition EpgMappingCtxToAttrSetRSrc.hpp:237
static void unregisterListener(opflex::ofcore::OFFramework &framework, opflex::modb::ObjectListener *listener)
Unregister a listener from updates to this class.
Definition EpgMappingCtxToAttrSetRSrc.hpp:534
static boost::optional< OF_SHARED_PTR< modelgbp::gbpe::EpgMappingCtxToAttrSetRSrc > > resolveUnderEpdrL2DiscoveredEpdrLocalL2EpGbpeEpgMappingCtx(opflex::ofcore::OFFramework &framework, const std::string &epdrLocalL2EpUuid)
Retrieve an instance of EpgMappingCtxToAttrSetRSrc from the managed object store by constructing its ...
Definition EpgMappingCtxToAttrSetRSrc.hpp:294
bool isTypeSet()
Check whether type has been set.
Definition EpgMappingCtxToAttrSetRSrc.hpp:191
static boost::optional< OF_SHARED_PTR< modelgbp::gbpe::EpgMappingCtxToAttrSetRSrc > > resolveUnderEpdrL2DiscoveredEpdrLocalL2EpGbpeEpgMappingCtx(const std::string &epdrLocalL2EpUuid)
Retrieve an instance of EpgMappingCtxToAttrSetRSrc from the default managed object store by construct...
Definition EpgMappingCtxToAttrSetRSrc.hpp:316
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 EpgMappingCtxToAttrSetRSrc.hpp:123
boost::optional< const uint8_t > getRole()
Get the value of role if it has been set.
Definition EpgMappingCtxToAttrSetRSrc.hpp:44
modelgbp::gbpe::EpgMappingCtxToAttrSetRSrc & unsetTarget()
Unset target in the currently-active mutator.
Definition EpgMappingCtxToAttrSetRSrc.hpp:181
SOME COPYRIGHT.
Definition OpcodeEnumT.hpp:12