11 #ifndef GI_GBPE_INDIRECTEPGMAPPINGTOMAPPINGRULESETRSRC_HPP 12 #define GI_GBPE_INDIRECTEPGMAPPINGTOMAPPINGRULESETRSRC_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 = 18;
37 return getObjectInstance().isSet(589826ul, opflex::modb::PropertyInfo::ENUM8);
47 return (
const uint8_t)getObjectInstance().getUInt64(589826ul);
56 const uint8_t
getRole(
const uint8_t defaultValue)
58 return getRole().get_value_or(defaultValue);
71 getTLMutator().modify(getClassId(), getURI())->setUInt64(589826ul, newValue);
83 getTLMutator().modify(getClassId(), getURI())->unset(589826ul, opflex::modb::PropertyInfo::ENUM8, opflex::modb::PropertyInfo::SCALAR);
93 return getObjectInstance().isSet(589827ul, opflex::modb::PropertyInfo::REFERENCE);
103 return getObjectInstance().getReference(589827ul).first;
114 return getObjectInstance().getReference(589827ul).second;
149 getTLMutator().modify(getClassId(), getURI())->setReference(589827ul, 28, uri);
169 const std::string& gbpeMappingRuleSetName)
171 getTLMutator().modify(getClassId(), getURI())->setReference(589827ul, 28, opflex::modb::URIBuilder().addElement(
"PolicyUniverse").addElement(
"GbpeMappingRuleSet").addElement(gbpeMappingRuleSetName).build());
183 getTLMutator().modify(getClassId(), getURI())->unset(589827ul, opflex::modb::PropertyInfo::REFERENCE, opflex::modb::PropertyInfo::SCALAR);
193 return getObjectInstance().isSet(589825ul, opflex::modb::PropertyInfo::ENUM8);
203 return (
const uint8_t)getObjectInstance().getUInt64(589825ul);
212 const uint8_t
getType(
const uint8_t defaultValue)
214 return getType().get_value_or(defaultValue);
227 getTLMutator().modify(getClassId(), getURI())->setUInt64(589825ul, newValue);
239 getTLMutator().modify(getClassId(), getURI())->unset(589825ul, opflex::modb::PropertyInfo::ENUM8, opflex::modb::PropertyInfo::SCALAR);
254 static boost::optional<OF_SHARED_PTR<modelgbp::gbpe::IndirectEpgMappingToMappingRuleSetRSrc> >
resolve(
255 opflex::ofcore::OFFramework& framework,
256 const opflex::modb::URI& uri)
258 return opflex::modb::mointernal::MO::resolve<modelgbp::gbpe::IndirectEpgMappingToMappingRuleSetRSrc>(framework,
CLASS_ID, uri);
272 static boost::optional<OF_SHARED_PTR<modelgbp::gbpe::IndirectEpgMappingToMappingRuleSetRSrc> >
resolve(
273 const opflex::modb::URI& uri)
275 return opflex::modb::mointernal::MO::resolve<modelgbp::gbpe::IndirectEpgMappingToMappingRuleSetRSrc>(opflex::ofcore::OFFramework::defaultInstance(),
CLASS_ID, uri);
294 static boost::optional<OF_SHARED_PTR<modelgbp::gbpe::IndirectEpgMappingToMappingRuleSetRSrc> >
resolve(
295 opflex::ofcore::OFFramework& framework,
296 const std::string& gbpeIndirectEpgMappingName)
298 return resolve(framework,opflex::modb::URIBuilder().addElement(
"PolicyUniverse").addElement(
"GbpeIndirectEpgMapping").addElement(gbpeIndirectEpgMappingName).addElement(
"GbpeIndirectEpgMappingToMappingRuleSetRSrc").build());
316 static boost::optional<OF_SHARED_PTR<modelgbp::gbpe::IndirectEpgMappingToMappingRuleSetRSrc> >
resolve(
317 const std::string& gbpeIndirectEpgMappingName)
319 return resolve(opflex::ofcore::OFFramework::defaultInstance(),gbpeIndirectEpgMappingName);
332 getTLMutator().remove(
CLASS_ID, getURI());
345 static void remove(opflex::ofcore::OFFramework& framework,
346 const opflex::modb::URI& uri)
348 MO::remove(framework,
CLASS_ID, uri);
361 static void remove(
const opflex::modb::URI& uri)
363 remove(opflex::ofcore::OFFramework::defaultInstance(), uri);
381 opflex::ofcore::OFFramework& framework,
382 const std::string& gbpeIndirectEpgMappingName)
384 MO::remove(framework,
CLASS_ID, opflex::modb::URIBuilder().addElement(
"PolicyUniverse").addElement(
"GbpeIndirectEpgMapping").addElement(gbpeIndirectEpgMappingName).addElement(
"GbpeIndirectEpgMappingToMappingRuleSetRSrc").build());
402 const std::string& gbpeIndirectEpgMappingName)
404 remove(opflex::ofcore::OFFramework::defaultInstance(),gbpeIndirectEpgMappingName);
419 opflex::ofcore::OFFramework& framework,
420 opflex::modb::ObjectListener* listener)
422 opflex::modb::mointernal
423 ::MO::registerListener(framework, listener,
CLASS_ID);
438 opflex::modb::ObjectListener* listener)
450 opflex::ofcore::OFFramework& framework,
451 opflex::modb::ObjectListener* listener)
453 opflex::modb::mointernal
454 ::MO::unregisterListener(framework, listener,
CLASS_ID);
464 opflex::modb::ObjectListener* listener)
474 opflex::ofcore::OFFramework& framework,
475 const opflex::modb::URI& uri,
476 const OF_SHARED_PTR<const opflex::modb::mointernal::ObjectInstance>& oi)
477 : MO(framework,
CLASS_ID, uri, oi) { }
482 #endif // GI_GBPE_INDIRECTEPGMAPPINGTOMAPPINGRULESETRSRC_HPP opflex::modb::URI getTargetURI(opflex::modb::URI defaultValue)
Get the value of targetURI if set, otherwise the value of default passed in.
Definition: IndirectEpgMappingToMappingRuleSetRSrc.hpp:133
static boost::optional< OF_SHARED_PTR< modelgbp::gbpe::IndirectEpgMappingToMappingRuleSetRSrc > > resolve(opflex::ofcore::OFFramework &framework, const opflex::modb::URI &uri)
Retrieve an instance of IndirectEpgMappingToMappingRuleSetRSrc from the managed object store...
Definition: IndirectEpgMappingToMappingRuleSetRSrc.hpp:254
static const opflex::modb::class_id_t CLASS_ID
The unique class ID for IndirectEpgMappingToMappingRuleSetRSrc.
Definition: IndirectEpgMappingToMappingRuleSetRSrc.hpp:29
bool isTypeSet()
Check whether type has been set.
Definition: IndirectEpgMappingToMappingRuleSetRSrc.hpp:191
boost::optional< opflex::modb::URI > getTargetURI()
Get the value of targetURI if it has been set.
Definition: IndirectEpgMappingToMappingRuleSetRSrc.hpp:111
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: IndirectEpgMappingToMappingRuleSetRSrc.hpp:418
IndirectEpgMappingToMappingRuleSetRSrc(opflex::ofcore::OFFramework &framework, const opflex::modb::URI &uri, const OF_SHARED_PTR< const opflex::modb::mointernal::ObjectInstance > &oi)
Construct an instance of IndirectEpgMappingToMappingRuleSetRSrc.
Definition: IndirectEpgMappingToMappingRuleSetRSrc.hpp:473
modelgbp::gbpe::IndirectEpgMappingToMappingRuleSetRSrc & setRole(const uint8_t newValue)
Set role to the specified value in the currently-active mutator.
Definition: IndirectEpgMappingToMappingRuleSetRSrc.hpp:69
boost::optional< const uint8_t > getType()
Get the value of type if it has been set.
Definition: IndirectEpgMappingToMappingRuleSetRSrc.hpp:200
static boost::optional< OF_SHARED_PTR< modelgbp::gbpe::IndirectEpgMappingToMappingRuleSetRSrc > > resolve(const opflex::modb::URI &uri)
Retrieve an instance of IndirectEpgMappingToMappingRuleSetRSrc from the managed object store using th...
Definition: IndirectEpgMappingToMappingRuleSetRSrc.hpp:272
modelgbp::gbpe::IndirectEpgMappingToMappingRuleSetRSrc & unsetTarget()
Unset target in the currently-active mutator.
Definition: IndirectEpgMappingToMappingRuleSetRSrc.hpp:181
bool isTargetSet()
Check whether target has been set.
Definition: IndirectEpgMappingToMappingRuleSetRSrc.hpp:91
static boost::optional< OF_SHARED_PTR< modelgbp::gbpe::IndirectEpgMappingToMappingRuleSetRSrc > > resolve(opflex::ofcore::OFFramework &framework, const std::string &gbpeIndirectEpgMappingName)
Retrieve an instance of IndirectEpgMappingToMappingRuleSetRSrc from the managed object store by const...
Definition: IndirectEpgMappingToMappingRuleSetRSrc.hpp:294
const uint8_t getRole(const uint8_t defaultValue)
Get the value of role if set, otherwise the value of default passed in.
Definition: IndirectEpgMappingToMappingRuleSetRSrc.hpp:56
boost::optional< const uint8_t > getRole()
Get the value of role if it has been set.
Definition: IndirectEpgMappingToMappingRuleSetRSrc.hpp:44
Definition: IndirectEpgMappingToMappingRuleSetRSrc.hpp:21
static void unregisterListener(opflex::modb::ObjectListener *listener)
Unregister a listener from updates to this class from the default framework instance.
Definition: IndirectEpgMappingToMappingRuleSetRSrc.hpp:463
static void unregisterListener(opflex::ofcore::OFFramework &framework, opflex::modb::ObjectListener *listener)
Unregister a listener from updates to this class.
Definition: IndirectEpgMappingToMappingRuleSetRSrc.hpp:449
bool isRoleSet()
Check whether role has been set.
Definition: IndirectEpgMappingToMappingRuleSetRSrc.hpp:35
modelgbp::gbpe::IndirectEpgMappingToMappingRuleSetRSrc & setType(const uint8_t newValue)
Set type to the specified value in the currently-active mutator.
Definition: IndirectEpgMappingToMappingRuleSetRSrc.hpp:225
modelgbp::gbpe::IndirectEpgMappingToMappingRuleSetRSrc & setTargetMappingRuleSet(const std::string &gbpeMappingRuleSetName)
Set the reference to point to an instance of MappingRuleSet in the currently-active mutator by constr...
Definition: IndirectEpgMappingToMappingRuleSetRSrc.hpp:168
boost::optional< opflex::modb::class_id_t > getTargetClass()
Get the value of targetClass if it has been set.
Definition: IndirectEpgMappingToMappingRuleSetRSrc.hpp:100
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: IndirectEpgMappingToMappingRuleSetRSrc.hpp:123
const uint8_t getType(const uint8_t defaultValue)
Get the value of type if set, otherwise the value of default passed in.
Definition: IndirectEpgMappingToMappingRuleSetRSrc.hpp:212
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: IndirectEpgMappingToMappingRuleSetRSrc.hpp:437
modelgbp::gbpe::IndirectEpgMappingToMappingRuleSetRSrc & unsetType()
Unset type in the currently-active mutator.
Definition: IndirectEpgMappingToMappingRuleSetRSrc.hpp:237
modelgbp::gbpe::IndirectEpgMappingToMappingRuleSetRSrc & unsetRole()
Unset role in the currently-active mutator.
Definition: IndirectEpgMappingToMappingRuleSetRSrc.hpp:81
modelgbp::gbpe::IndirectEpgMappingToMappingRuleSetRSrc & setTargetMappingRuleSet(const opflex::modb::URI &uri)
Set the reference to point to an instance of MappingRuleSet with the specified URI.
Definition: IndirectEpgMappingToMappingRuleSetRSrc.hpp:147
SOME COPYRIGHT.
Definition: OpcodeEnumT.hpp:12
static boost::optional< OF_SHARED_PTR< modelgbp::gbpe::IndirectEpgMappingToMappingRuleSetRSrc > > resolve(const std::string &gbpeIndirectEpgMappingName)
Retrieve an instance of IndirectEpgMappingToMappingRuleSetRSrc from the default managed object store ...
Definition: IndirectEpgMappingToMappingRuleSetRSrc.hpp:316