11#ifndef GI_SPAN_MEMBERTOREFRSRC_HPP
12#define GI_SPAN_MEMBERTOREFRSRC_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 = 74;
37 return getObjectInstance().isSet(2424834ul, opflex::modb::PropertyInfo::ENUM8);
47 return (
const uint8_t)getObjectInstance().getUInt64(2424834ul);
56 const uint8_t
getRole(
const uint8_t defaultValue)
58 return getRole().get_value_or(defaultValue);
71 getTLMutator().modify(getClassId(), getURI())->setUInt64(2424834ul, newValue);
83 getTLMutator().modify(getClassId(), getURI())->unset(2424834ul, opflex::modb::PropertyInfo::ENUM8, opflex::modb::PropertyInfo::SCALAR);
93 return getObjectInstance().isSet(2424835ul, opflex::modb::PropertyInfo::REFERENCE);
103 return getObjectInstance().getReference(2424835ul).first;
114 return getObjectInstance().getReference(2424835ul).second;
149 getTLMutator().modify(getClassId(), getURI())->setReference(2424835ul, 152, uri);
171 const std::string& policySpaceName,
172 const std::string& gbpEpGroupName)
174 getTLMutator().modify(getClassId(), getURI())->setReference(2424835ul, 152, opflex::modb::URIBuilder().addElement(
"PolicyUniverse").addElement(
"PolicySpace").addElement(policySpaceName).addElement(
"GbpEpGroup").addElement(gbpEpGroupName).build());
189 getTLMutator().modify(getClassId(), getURI())->setReference(2424835ul, 69, uri);
211 const std::string& platformConfigName,
212 const std::string& spanLocalEpName)
214 getTLMutator().modify(getClassId(), getURI())->setReference(2424835ul, 69, opflex::modb::URIBuilder().addElement(
"PolicyUniverse").addElement(
"PlatformConfig").addElement(platformConfigName).addElement(
"SpanLocalEp").addElement(spanLocalEpName).build());
226 getTLMutator().modify(getClassId(), getURI())->unset(2424835ul, opflex::modb::PropertyInfo::REFERENCE, opflex::modb::PropertyInfo::SCALAR);
236 return getObjectInstance().isSet(2424833ul, opflex::modb::PropertyInfo::ENUM8);
246 return (
const uint8_t)getObjectInstance().getUInt64(2424833ul);
255 const uint8_t
getType(
const uint8_t defaultValue)
257 return getType().get_value_or(defaultValue);
270 getTLMutator().modify(getClassId(), getURI())->setUInt64(2424833ul, newValue);
282 getTLMutator().modify(getClassId(), getURI())->unset(2424833ul, opflex::modb::PropertyInfo::ENUM8, opflex::modb::PropertyInfo::SCALAR);
297 static boost::optional<OF_SHARED_PTR<modelgbp::span::MemberToRefRSrc> >
resolve(
298 opflex::ofcore::OFFramework& framework,
299 const opflex::modb::URI& uri)
301 return opflex::modb::mointernal::MO::resolve<modelgbp::span::MemberToRefRSrc>(framework,
CLASS_ID, uri);
315 static boost::optional<OF_SHARED_PTR<modelgbp::span::MemberToRefRSrc> >
resolve(
316 const opflex::modb::URI& uri)
318 return opflex::modb::mointernal::MO::resolve<modelgbp::span::MemberToRefRSrc>(opflex::ofcore::OFFramework::defaultInstance(),
CLASS_ID, uri);
342 opflex::ofcore::OFFramework& framework,
343 const std::string& platformConfigName,
344 const std::string& spanSrcGrpName,
345 const std::string& spanSrcMemberName)
347 return resolve(framework,opflex::modb::URIBuilder().addElement(
"PolicyUniverse").addElement(
"PlatformConfig").addElement(platformConfigName).addElement(
"SpanSrcGrp").addElement(spanSrcGrpName).addElement(
"SpanSrcMember").addElement(spanSrcMemberName).addElement(
"SpanMemberToRefRSrc").build());
370 const std::string& platformConfigName,
371 const std::string& spanSrcGrpName,
372 const std::string& spanSrcMemberName)
398 opflex::ofcore::OFFramework& framework,
399 const std::string& platformConfigName,
400 const std::string& spanDstGrpName,
401 const std::string& spanSrcMemberName)
403 return resolve(framework,opflex::modb::URIBuilder().addElement(
"PolicyUniverse").addElement(
"PlatformConfig").addElement(platformConfigName).addElement(
"SpanDstGrp").addElement(spanDstGrpName).addElement(
"SpanSrcMember").addElement(spanSrcMemberName).addElement(
"SpanMemberToRefRSrc").build());
426 const std::string& platformConfigName,
427 const std::string& spanDstGrpName,
428 const std::string& spanSrcMemberName)
454 opflex::ofcore::OFFramework& framework,
455 const std::string& platformConfigName,
456 const std::string& spanSrcGrpName,
457 const std::string& spanDstMemberName)
459 return resolve(framework,opflex::modb::URIBuilder().addElement(
"PolicyUniverse").addElement(
"PlatformConfig").addElement(platformConfigName).addElement(
"SpanSrcGrp").addElement(spanSrcGrpName).addElement(
"SpanDstMember").addElement(spanDstMemberName).addElement(
"SpanMemberToRefRSrc").build());
482 const std::string& platformConfigName,
483 const std::string& spanSrcGrpName,
484 const std::string& spanDstMemberName)
510 opflex::ofcore::OFFramework& framework,
511 const std::string& platformConfigName,
512 const std::string& spanDstGrpName,
513 const std::string& spanDstMemberName)
515 return resolve(framework,opflex::modb::URIBuilder().addElement(
"PolicyUniverse").addElement(
"PlatformConfig").addElement(platformConfigName).addElement(
"SpanDstGrp").addElement(spanDstGrpName).addElement(
"SpanDstMember").addElement(spanDstMemberName).addElement(
"SpanMemberToRefRSrc").build());
538 const std::string& platformConfigName,
539 const std::string& spanDstGrpName,
540 const std::string& spanDstMemberName)
555 getTLMutator().remove(
CLASS_ID, getURI());
568 static void remove(opflex::ofcore::OFFramework& framework,
569 const opflex::modb::URI& uri)
571 MO::remove(framework,
CLASS_ID, uri);
584 static void remove(
const opflex::modb::URI& uri)
586 remove(opflex::ofcore::OFFramework::defaultInstance(), uri);
608 opflex::ofcore::OFFramework& framework,
609 const std::string& platformConfigName,
610 const std::string& spanSrcGrpName,
611 const std::string& spanSrcMemberName)
613 MO::remove(framework,
CLASS_ID, opflex::modb::URIBuilder().addElement(
"PolicyUniverse").addElement(
"PlatformConfig").addElement(platformConfigName).addElement(
"SpanSrcGrp").addElement(spanSrcGrpName).addElement(
"SpanSrcMember").addElement(spanSrcMemberName).addElement(
"SpanMemberToRefRSrc").build());
635 const std::string& platformConfigName,
636 const std::string& spanSrcGrpName,
637 const std::string& spanSrcMemberName)
661 opflex::ofcore::OFFramework& framework,
662 const std::string& platformConfigName,
663 const std::string& spanDstGrpName,
664 const std::string& spanSrcMemberName)
666 MO::remove(framework,
CLASS_ID, opflex::modb::URIBuilder().addElement(
"PolicyUniverse").addElement(
"PlatformConfig").addElement(platformConfigName).addElement(
"SpanDstGrp").addElement(spanDstGrpName).addElement(
"SpanSrcMember").addElement(spanSrcMemberName).addElement(
"SpanMemberToRefRSrc").build());
688 const std::string& platformConfigName,
689 const std::string& spanDstGrpName,
690 const std::string& spanSrcMemberName)
714 opflex::ofcore::OFFramework& framework,
715 const std::string& platformConfigName,
716 const std::string& spanSrcGrpName,
717 const std::string& spanDstMemberName)
719 MO::remove(framework,
CLASS_ID, opflex::modb::URIBuilder().addElement(
"PolicyUniverse").addElement(
"PlatformConfig").addElement(platformConfigName).addElement(
"SpanSrcGrp").addElement(spanSrcGrpName).addElement(
"SpanDstMember").addElement(spanDstMemberName).addElement(
"SpanMemberToRefRSrc").build());
741 const std::string& platformConfigName,
742 const std::string& spanSrcGrpName,
743 const std::string& spanDstMemberName)
767 opflex::ofcore::OFFramework& framework,
768 const std::string& platformConfigName,
769 const std::string& spanDstGrpName,
770 const std::string& spanDstMemberName)
772 MO::remove(framework,
CLASS_ID, opflex::modb::URIBuilder().addElement(
"PolicyUniverse").addElement(
"PlatformConfig").addElement(platformConfigName).addElement(
"SpanDstGrp").addElement(spanDstGrpName).addElement(
"SpanDstMember").addElement(spanDstMemberName).addElement(
"SpanMemberToRefRSrc").build());
794 const std::string& platformConfigName,
795 const std::string& spanDstGrpName,
796 const std::string& spanDstMemberName)
813 opflex::ofcore::OFFramework& framework,
814 opflex::modb::ObjectListener* listener)
816 opflex::modb::mointernal
817 ::MO::registerListener(framework, listener,
CLASS_ID);
832 opflex::modb::ObjectListener* listener)
844 opflex::ofcore::OFFramework& framework,
845 opflex::modb::ObjectListener* listener)
847 opflex::modb::mointernal
848 ::MO::unregisterListener(framework, listener,
CLASS_ID);
858 opflex::modb::ObjectListener* listener)
868 opflex::ofcore::OFFramework& framework,
869 const opflex::modb::URI& uri,
870 const OF_SHARED_PTR<const opflex::modb::mointernal::ObjectInstance>& oi)
871 : MO(framework,
CLASS_ID, uri, oi) { }
Definition MemberToRefRSrc.hpp:23
static boost::optional< OF_SHARED_PTR< modelgbp::span::MemberToRefRSrc > > resolveUnderPolicyUniversePlatformConfigSpanDstGrpSpanSrcMember(opflex::ofcore::OFFramework &framework, const std::string &platformConfigName, const std::string &spanDstGrpName, const std::string &spanSrcMemberName)
Retrieve an instance of MemberToRefRSrc from the managed object store by constructing its URI from th...
Definition MemberToRefRSrc.hpp:397
bool isTypeSet()
Check whether type has been set.
Definition MemberToRefRSrc.hpp:234
static void remove(const opflex::modb::URI &uri)
Remove the MemberToRefRSrc object with the specified URI using the currently-active mutator and the d...
Definition MemberToRefRSrc.hpp:584
modelgbp::span::MemberToRefRSrc & unsetTarget()
Unset target in the currently-active mutator.
Definition MemberToRefRSrc.hpp:224
modelgbp::span::MemberToRefRSrc & unsetType()
Unset type in the currently-active mutator.
Definition MemberToRefRSrc.hpp:280
boost::optional< opflex::modb::class_id_t > getTargetClass()
Get the value of targetClass if it has been set.
Definition MemberToRefRSrc.hpp:100
static boost::optional< OF_SHARED_PTR< modelgbp::span::MemberToRefRSrc > > resolveUnderPolicyUniversePlatformConfigSpanSrcGrpSpanDstMember(opflex::ofcore::OFFramework &framework, const std::string &platformConfigName, const std::string &spanSrcGrpName, const std::string &spanDstMemberName)
Retrieve an instance of MemberToRefRSrc from the managed object store by constructing its URI from th...
Definition MemberToRefRSrc.hpp:453
opflex::modb::URI getTargetURI(opflex::modb::URI defaultValue)
Get the value of targetURI if set, otherwise the value of default passed in.
Definition MemberToRefRSrc.hpp:133
modelgbp::span::MemberToRefRSrc & setType(const uint8_t newValue)
Set type to the specified value in the currently-active mutator.
Definition MemberToRefRSrc.hpp:268
static void removeUnderPolicyUniversePlatformConfigSpanSrcGrpSpanDstMember(opflex::ofcore::OFFramework &framework, const std::string &platformConfigName, const std::string &spanSrcGrpName, const std::string &spanDstMemberName)
Remove the MemberToRefRSrc object with the specified path elements from the managed object store.
Definition MemberToRefRSrc.hpp:713
modelgbp::span::MemberToRefRSrc & setTargetEpGroup(const std::string &policySpaceName, const std::string &gbpEpGroupName)
Set the reference to point to an instance of EpGroup in the currently-active mutator by constructing ...
Definition MemberToRefRSrc.hpp:170
static boost::optional< OF_SHARED_PTR< modelgbp::span::MemberToRefRSrc > > resolveUnderPolicyUniversePlatformConfigSpanDstGrpSpanDstMember(opflex::ofcore::OFFramework &framework, const std::string &platformConfigName, const std::string &spanDstGrpName, const std::string &spanDstMemberName)
Retrieve an instance of MemberToRefRSrc from the managed object store by constructing its URI from th...
Definition MemberToRefRSrc.hpp:509
const uint8_t getRole(const uint8_t defaultValue)
Get the value of role if set, otherwise the value of default passed in.
Definition MemberToRefRSrc.hpp:56
const uint8_t getType(const uint8_t defaultValue)
Get the value of type if set, otherwise the value of default passed in.
Definition MemberToRefRSrc.hpp:255
static void removeUnderPolicyUniversePlatformConfigSpanSrcGrpSpanDstMember(const std::string &platformConfigName, const std::string &spanSrcGrpName, const std::string &spanDstMemberName)
Remove the MemberToRefRSrc object with the specified path elements from the managed object store usin...
Definition MemberToRefRSrc.hpp:740
boost::optional< const uint8_t > getRole()
Get the value of role if it has been set.
Definition MemberToRefRSrc.hpp:44
static void removeUnderPolicyUniversePlatformConfigSpanDstGrpSpanDstMember(const std::string &platformConfigName, const std::string &spanDstGrpName, const std::string &spanDstMemberName)
Remove the MemberToRefRSrc object with the specified path elements from the managed object store usin...
Definition MemberToRefRSrc.hpp:793
MemberToRefRSrc(opflex::ofcore::OFFramework &framework, const opflex::modb::URI &uri, const OF_SHARED_PTR< const opflex::modb::mointernal::ObjectInstance > &oi)
Construct an instance of MemberToRefRSrc.
Definition MemberToRefRSrc.hpp:867
static void removeUnderPolicyUniversePlatformConfigSpanDstGrpSpanDstMember(opflex::ofcore::OFFramework &framework, const std::string &platformConfigName, const std::string &spanDstGrpName, const std::string &spanDstMemberName)
Remove the MemberToRefRSrc object with the specified path elements from the managed object store.
Definition MemberToRefRSrc.hpp:766
static void unregisterListener(opflex::modb::ObjectListener *listener)
Unregister a listener from updates to this class from the default framework instance.
Definition MemberToRefRSrc.hpp:857
boost::optional< opflex::modb::URI > getTargetURI()
Get the value of targetURI if it has been set.
Definition MemberToRefRSrc.hpp:111
static boost::optional< OF_SHARED_PTR< modelgbp::span::MemberToRefRSrc > > resolveUnderPolicyUniversePlatformConfigSpanDstGrpSpanDstMember(const std::string &platformConfigName, const std::string &spanDstGrpName, const std::string &spanDstMemberName)
Retrieve an instance of MemberToRefRSrc from the default managed object store by constructing its URI...
Definition MemberToRefRSrc.hpp:537
bool isTargetSet()
Check whether target has been set.
Definition MemberToRefRSrc.hpp:91
bool isRoleSet()
Check whether role has been set.
Definition MemberToRefRSrc.hpp:35
static boost::optional< OF_SHARED_PTR< modelgbp::span::MemberToRefRSrc > > resolve(opflex::ofcore::OFFramework &framework, const opflex::modb::URI &uri)
Retrieve an instance of MemberToRefRSrc from the managed object store.
Definition MemberToRefRSrc.hpp:297
modelgbp::span::MemberToRefRSrc & setTargetLocalEp(const opflex::modb::URI &uri)
Set the reference to point to an instance of LocalEp with the specified URI.
Definition MemberToRefRSrc.hpp:187
modelgbp::span::MemberToRefRSrc & unsetRole()
Unset role in the currently-active mutator.
Definition MemberToRefRSrc.hpp:81
modelgbp::span::MemberToRefRSrc & setTargetLocalEp(const std::string &platformConfigName, const std::string &spanLocalEpName)
Set the reference to point to an instance of LocalEp in the currently-active mutator by constructing ...
Definition MemberToRefRSrc.hpp:210
static const opflex::modb::class_id_t CLASS_ID
The unique class ID for MemberToRefRSrc.
Definition MemberToRefRSrc.hpp:29
static boost::optional< OF_SHARED_PTR< modelgbp::span::MemberToRefRSrc > > resolveUnderPolicyUniversePlatformConfigSpanSrcGrpSpanSrcMember(const std::string &platformConfigName, const std::string &spanSrcGrpName, const std::string &spanSrcMemberName)
Retrieve an instance of MemberToRefRSrc from the default managed object store by constructing its URI...
Definition MemberToRefRSrc.hpp:369
modelgbp::span::MemberToRefRSrc & setRole(const uint8_t newValue)
Set role to the specified value in the currently-active mutator.
Definition MemberToRefRSrc.hpp:69
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 MemberToRefRSrc.hpp:123
static void unregisterListener(opflex::ofcore::OFFramework &framework, opflex::modb::ObjectListener *listener)
Unregister a listener from updates to this class.
Definition MemberToRefRSrc.hpp:843
static void removeUnderPolicyUniversePlatformConfigSpanSrcGrpSpanSrcMember(const std::string &platformConfigName, const std::string &spanSrcGrpName, const std::string &spanSrcMemberName)
Remove the MemberToRefRSrc object with the specified path elements from the managed object store usin...
Definition MemberToRefRSrc.hpp:634
static boost::optional< OF_SHARED_PTR< modelgbp::span::MemberToRefRSrc > > resolveUnderPolicyUniversePlatformConfigSpanSrcGrpSpanSrcMember(opflex::ofcore::OFFramework &framework, const std::string &platformConfigName, const std::string &spanSrcGrpName, const std::string &spanSrcMemberName)
Retrieve an instance of MemberToRefRSrc from the managed object store by constructing its URI from th...
Definition MemberToRefRSrc.hpp:341
static boost::optional< OF_SHARED_PTR< modelgbp::span::MemberToRefRSrc > > resolveUnderPolicyUniversePlatformConfigSpanSrcGrpSpanDstMember(const std::string &platformConfigName, const std::string &spanSrcGrpName, const std::string &spanDstMemberName)
Retrieve an instance of MemberToRefRSrc from the default managed object store by constructing its URI...
Definition MemberToRefRSrc.hpp:481
static void removeUnderPolicyUniversePlatformConfigSpanDstGrpSpanSrcMember(opflex::ofcore::OFFramework &framework, const std::string &platformConfigName, const std::string &spanDstGrpName, const std::string &spanSrcMemberName)
Remove the MemberToRefRSrc object with the specified path elements from the managed object store.
Definition MemberToRefRSrc.hpp:660
static boost::optional< OF_SHARED_PTR< modelgbp::span::MemberToRefRSrc > > resolve(const opflex::modb::URI &uri)
Retrieve an instance of MemberToRefRSrc from the managed object store using the default framework ins...
Definition MemberToRefRSrc.hpp:315
static void remove(opflex::ofcore::OFFramework &framework, const opflex::modb::URI &uri)
Remove the MemberToRefRSrc object with the specified URI using the currently-active mutator.
Definition MemberToRefRSrc.hpp:568
boost::optional< const uint8_t > getType()
Get the value of type if it has been set.
Definition MemberToRefRSrc.hpp:243
void remove()
Remove this instance using the currently-active mutator.
Definition MemberToRefRSrc.hpp:553
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 MemberToRefRSrc.hpp:831
static void removeUnderPolicyUniversePlatformConfigSpanDstGrpSpanSrcMember(const std::string &platformConfigName, const std::string &spanDstGrpName, const std::string &spanSrcMemberName)
Remove the MemberToRefRSrc object with the specified path elements from the managed object store usin...
Definition MemberToRefRSrc.hpp:687
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 MemberToRefRSrc.hpp:812
static boost::optional< OF_SHARED_PTR< modelgbp::span::MemberToRefRSrc > > resolveUnderPolicyUniversePlatformConfigSpanDstGrpSpanSrcMember(const std::string &platformConfigName, const std::string &spanDstGrpName, const std::string &spanSrcMemberName)
Retrieve an instance of MemberToRefRSrc from the default managed object store by constructing its URI...
Definition MemberToRefRSrc.hpp:425
static void removeUnderPolicyUniversePlatformConfigSpanSrcGrpSpanSrcMember(opflex::ofcore::OFFramework &framework, const std::string &platformConfigName, const std::string &spanSrcGrpName, const std::string &spanSrcMemberName)
Remove the MemberToRefRSrc object with the specified path elements from the managed object store.
Definition MemberToRefRSrc.hpp:607
modelgbp::span::MemberToRefRSrc & setTargetEpGroup(const opflex::modb::URI &uri)
Set the reference to point to an instance of EpGroup with the specified URI.
Definition MemberToRefRSrc.hpp:147
SOME COPYRIGHT.
Definition OpcodeEnumT.hpp:12