11 #ifndef GI_SPAN_MEMBERFROMREFRTGT_HPP 12 #define GI_SPAN_MEMBERFROMREFRTGT_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 = 75;
37 return getObjectInstance().isSet(2457602ul, opflex::modb::PropertyInfo::ENUM8);
47 return (
const uint8_t)getObjectInstance().getUInt64(2457602ul);
56 const uint8_t
getRole(
const uint8_t defaultValue)
58 return getRole().get_value_or(defaultValue);
71 getTLMutator().modify(getClassId(), getURI())->setUInt64(2457602ul, newValue);
83 getTLMutator().modify(getClassId(), getURI())->unset(2457602ul, opflex::modb::PropertyInfo::ENUM8, opflex::modb::PropertyInfo::SCALAR);
93 return getObjectInstance().isSet(2457603ul, opflex::modb::PropertyInfo::STRING);
103 return getObjectInstance().getString(2457603ul);
112 const std::string&
getSource(
const std::string& defaultValue)
114 return getSource().get_value_or(defaultValue);
127 getTLMutator().modify(getClassId(), getURI())->setString(2457603ul, newValue);
139 getTLMutator().modify(getClassId(), getURI())->unset(2457603ul, opflex::modb::PropertyInfo::STRING, opflex::modb::PropertyInfo::SCALAR);
149 return getObjectInstance().isSet(2457601ul, opflex::modb::PropertyInfo::ENUM8);
159 return (
const uint8_t)getObjectInstance().getUInt64(2457601ul);
168 const uint8_t
getType(
const uint8_t defaultValue)
170 return getType().get_value_or(defaultValue);
183 getTLMutator().modify(getClassId(), getURI())->setUInt64(2457601ul, newValue);
195 getTLMutator().modify(getClassId(), getURI())->unset(2457601ul, opflex::modb::PropertyInfo::ENUM8, opflex::modb::PropertyInfo::SCALAR);
210 static boost::optional<OF_SHARED_PTR<modelgbp::span::MemberFromRefRTgt> >
resolve(
211 opflex::ofcore::OFFramework& framework,
212 const opflex::modb::URI& uri)
214 return opflex::modb::mointernal::MO::resolve<modelgbp::span::MemberFromRefRTgt>(framework,
CLASS_ID, uri);
228 static boost::optional<OF_SHARED_PTR<modelgbp::span::MemberFromRefRTgt> >
resolve(
229 const opflex::modb::URI& uri)
231 return opflex::modb::mointernal::MO::resolve<modelgbp::span::MemberFromRefRTgt>(opflex::ofcore::OFFramework::defaultInstance(),
CLASS_ID, uri);
255 opflex::ofcore::OFFramework& framework,
256 const std::string& platformConfigName,
257 const std::string& spanLocalEpName,
258 const std::string& spanMemberFromRefRTgtSource)
260 return resolve(framework,opflex::modb::URIBuilder().addElement(
"PolicyUniverse").addElement(
"PlatformConfig").addElement(platformConfigName).addElement(
"SpanLocalEp").addElement(spanLocalEpName).addElement(
"SpanMemberFromRefRTgt").addElement(spanMemberFromRefRTgtSource).build());
283 const std::string& platformConfigName,
284 const std::string& spanLocalEpName,
285 const std::string& spanMemberFromRefRTgtSource)
311 opflex::ofcore::OFFramework& framework,
312 const std::string& policySpaceName,
313 const std::string& gbpEpGroupName,
314 const std::string& spanMemberFromRefRTgtSource)
316 return resolve(framework,opflex::modb::URIBuilder().addElement(
"PolicyUniverse").addElement(
"PolicySpace").addElement(policySpaceName).addElement(
"GbpEpGroup").addElement(gbpEpGroupName).addElement(
"SpanMemberFromRefRTgt").addElement(spanMemberFromRefRTgtSource).build());
339 const std::string& policySpaceName,
340 const std::string& gbpEpGroupName,
341 const std::string& spanMemberFromRefRTgtSource)
356 getTLMutator().remove(
CLASS_ID, getURI());
369 static void remove(opflex::ofcore::OFFramework& framework,
370 const opflex::modb::URI& uri)
372 MO::remove(framework,
CLASS_ID, uri);
385 static void remove(
const opflex::modb::URI& uri)
387 remove(opflex::ofcore::OFFramework::defaultInstance(), uri);
409 opflex::ofcore::OFFramework& framework,
410 const std::string& platformConfigName,
411 const std::string& spanLocalEpName,
412 const std::string& spanMemberFromRefRTgtSource)
414 MO::remove(framework,
CLASS_ID, opflex::modb::URIBuilder().addElement(
"PolicyUniverse").addElement(
"PlatformConfig").addElement(platformConfigName).addElement(
"SpanLocalEp").addElement(spanLocalEpName).addElement(
"SpanMemberFromRefRTgt").addElement(spanMemberFromRefRTgtSource).build());
436 const std::string& platformConfigName,
437 const std::string& spanLocalEpName,
438 const std::string& spanMemberFromRefRTgtSource)
462 opflex::ofcore::OFFramework& framework,
463 const std::string& policySpaceName,
464 const std::string& gbpEpGroupName,
465 const std::string& spanMemberFromRefRTgtSource)
467 MO::remove(framework,
CLASS_ID, opflex::modb::URIBuilder().addElement(
"PolicyUniverse").addElement(
"PolicySpace").addElement(policySpaceName).addElement(
"GbpEpGroup").addElement(gbpEpGroupName).addElement(
"SpanMemberFromRefRTgt").addElement(spanMemberFromRefRTgtSource).build());
489 const std::string& policySpaceName,
490 const std::string& gbpEpGroupName,
491 const std::string& spanMemberFromRefRTgtSource)
508 opflex::ofcore::OFFramework& framework,
509 opflex::modb::ObjectListener* listener)
511 opflex::modb::mointernal
512 ::MO::registerListener(framework, listener,
CLASS_ID);
527 opflex::modb::ObjectListener* listener)
539 opflex::ofcore::OFFramework& framework,
540 opflex::modb::ObjectListener* listener)
542 opflex::modb::mointernal
543 ::MO::unregisterListener(framework, listener,
CLASS_ID);
553 opflex::modb::ObjectListener* listener)
563 opflex::ofcore::OFFramework& framework,
564 const opflex::modb::URI& uri,
565 const OF_SHARED_PTR<const opflex::modb::mointernal::ObjectInstance>& oi)
566 : MO(framework,
CLASS_ID, uri, oi) { }
571 #endif // GI_SPAN_MEMBERFROMREFRTGT_HPP modelgbp::span::MemberFromRefRTgt & unsetRole()
Unset role in the currently-active mutator.
Definition: MemberFromRefRTgt.hpp:81
boost::optional< const uint8_t > getType()
Get the value of type if it has been set.
Definition: MemberFromRefRTgt.hpp:156
bool isTypeSet()
Check whether type has been set.
Definition: MemberFromRefRTgt.hpp:147
boost::optional< const uint8_t > getRole()
Get the value of role if it has been set.
Definition: MemberFromRefRTgt.hpp:44
static void unregisterListener(opflex::ofcore::OFFramework &framework, opflex::modb::ObjectListener *listener)
Unregister a listener from updates to this class.
Definition: MemberFromRefRTgt.hpp:538
const uint8_t getRole(const uint8_t defaultValue)
Get the value of role if set, otherwise the value of default passed in.
Definition: MemberFromRefRTgt.hpp:56
static boost::optional< OF_SHARED_PTR< modelgbp::span::MemberFromRefRTgt > > resolveUnderPolicyUniversePolicySpaceGbpEpGroup(const std::string &policySpaceName, const std::string &gbpEpGroupName, const std::string &spanMemberFromRefRTgtSource)
Retrieve an instance of MemberFromRefRTgt from the default managed object store by constructing its U...
Definition: MemberFromRefRTgt.hpp:338
boost::optional< const std::string & > getSource()
Get the value of source if it has been set.
Definition: MemberFromRefRTgt.hpp:100
MemberFromRefRTgt(opflex::ofcore::OFFramework &framework, const opflex::modb::URI &uri, const OF_SHARED_PTR< const opflex::modb::mointernal::ObjectInstance > &oi)
Construct an instance of MemberFromRefRTgt.
Definition: MemberFromRefRTgt.hpp:562
static void removeUnderPolicyUniversePolicySpaceGbpEpGroup(opflex::ofcore::OFFramework &framework, const std::string &policySpaceName, const std::string &gbpEpGroupName, const std::string &spanMemberFromRefRTgtSource)
Remove the MemberFromRefRTgt object with the specified path elements from the managed object store...
Definition: MemberFromRefRTgt.hpp:461
modelgbp::span::MemberFromRefRTgt & setSource(const std::string &newValue)
Set source to the specified value in the currently-active mutator.
Definition: MemberFromRefRTgt.hpp:125
static boost::optional< OF_SHARED_PTR< modelgbp::span::MemberFromRefRTgt > > resolveUnderPolicyUniversePlatformConfigSpanLocalEp(const std::string &platformConfigName, const std::string &spanLocalEpName, const std::string &spanMemberFromRefRTgtSource)
Retrieve an instance of MemberFromRefRTgt from the default managed object store by constructing its U...
Definition: MemberFromRefRTgt.hpp:282
const std::string & getSource(const std::string &defaultValue)
Get the value of source if set, otherwise the value of default passed in.
Definition: MemberFromRefRTgt.hpp:112
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: MemberFromRefRTgt.hpp:507
bool isRoleSet()
Check whether role has been set.
Definition: MemberFromRefRTgt.hpp:35
modelgbp::span::MemberFromRefRTgt & unsetSource()
Unset source in the currently-active mutator.
Definition: MemberFromRefRTgt.hpp:137
static const opflex::modb::class_id_t CLASS_ID
The unique class ID for MemberFromRefRTgt.
Definition: MemberFromRefRTgt.hpp:29
static void unregisterListener(opflex::modb::ObjectListener *listener)
Unregister a listener from updates to this class from the default framework instance.
Definition: MemberFromRefRTgt.hpp:552
const uint8_t getType(const uint8_t defaultValue)
Get the value of type if set, otherwise the value of default passed in.
Definition: MemberFromRefRTgt.hpp:168
modelgbp::span::MemberFromRefRTgt & unsetType()
Unset type in the currently-active mutator.
Definition: MemberFromRefRTgt.hpp:193
static void removeUnderPolicyUniversePlatformConfigSpanLocalEp(opflex::ofcore::OFFramework &framework, const std::string &platformConfigName, const std::string &spanLocalEpName, const std::string &spanMemberFromRefRTgtSource)
Remove the MemberFromRefRTgt object with the specified path elements from the managed object store...
Definition: MemberFromRefRTgt.hpp:408
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: MemberFromRefRTgt.hpp:526
modelgbp::span::MemberFromRefRTgt & setType(const uint8_t newValue)
Set type to the specified value in the currently-active mutator.
Definition: MemberFromRefRTgt.hpp:181
Definition: MemberFromRefRTgt.hpp:21
static boost::optional< OF_SHARED_PTR< modelgbp::span::MemberFromRefRTgt > > resolve(const opflex::modb::URI &uri)
Retrieve an instance of MemberFromRefRTgt from the managed object store using the default framework i...
Definition: MemberFromRefRTgt.hpp:228
static boost::optional< OF_SHARED_PTR< modelgbp::span::MemberFromRefRTgt > > resolveUnderPolicyUniversePolicySpaceGbpEpGroup(opflex::ofcore::OFFramework &framework, const std::string &policySpaceName, const std::string &gbpEpGroupName, const std::string &spanMemberFromRefRTgtSource)
Retrieve an instance of MemberFromRefRTgt from the managed object store by constructing its URI from ...
Definition: MemberFromRefRTgt.hpp:310
bool isSourceSet()
Check whether source has been set.
Definition: MemberFromRefRTgt.hpp:91
modelgbp::span::MemberFromRefRTgt & setRole(const uint8_t newValue)
Set role to the specified value in the currently-active mutator.
Definition: MemberFromRefRTgt.hpp:69
static boost::optional< OF_SHARED_PTR< modelgbp::span::MemberFromRefRTgt > > resolve(opflex::ofcore::OFFramework &framework, const opflex::modb::URI &uri)
Retrieve an instance of MemberFromRefRTgt from the managed object store.
Definition: MemberFromRefRTgt.hpp:210
static void removeUnderPolicyUniversePlatformConfigSpanLocalEp(const std::string &platformConfigName, const std::string &spanLocalEpName, const std::string &spanMemberFromRefRTgtSource)
Remove the MemberFromRefRTgt object with the specified path elements from the managed object store us...
Definition: MemberFromRefRTgt.hpp:435
static void removeUnderPolicyUniversePolicySpaceGbpEpGroup(const std::string &policySpaceName, const std::string &gbpEpGroupName, const std::string &spanMemberFromRefRTgtSource)
Remove the MemberFromRefRTgt object with the specified path elements from the managed object store us...
Definition: MemberFromRefRTgt.hpp:488
SOME COPYRIGHT.
Definition: OpcodeEnumT.hpp:12
static boost::optional< OF_SHARED_PTR< modelgbp::span::MemberFromRefRTgt > > resolveUnderPolicyUniversePlatformConfigSpanLocalEp(opflex::ofcore::OFFramework &framework, const std::string &platformConfigName, const std::string &spanLocalEpName, const std::string &spanMemberFromRefRTgtSource)
Retrieve an instance of MemberFromRefRTgt from the managed object store by constructing its URI from ...
Definition: MemberFromRefRTgt.hpp:254