11#ifndef GI_SPAN_DSTMEMBER_HPP
12#define GI_SPAN_DSTMEMBER_HPP
14#include <boost/optional.hpp>
15#include "opflex/modb/URIBuilder.h"
16#include "opflex/modb/mo-internal/MO.h"
20#include "modelgbp/span/MemberToRefRSrc.hpp"
24#include "modelgbp/span/DstSummary.hpp"
30 :
public opflex::modb::mointernal::MO
37 static const opflex::modb::class_id_t
CLASS_ID = 78;
45 return getObjectInstance().isSet(2555905ul, opflex::modb::PropertyInfo::STRING);
52 boost::optional<const std::string&>
getName()
55 return getObjectInstance().getString(2555905ul);
64 const std::string&
getName(
const std::string& defaultValue)
66 return getName().get_value_or(defaultValue);
79 getTLMutator().modify(getClassId(), getURI())->setString(2555905ul, newValue);
91 getTLMutator().modify(getClassId(), getURI())->unset(2555905ul, opflex::modb::PropertyInfo::STRING, opflex::modb::PropertyInfo::SCALAR);
106 static boost::optional<OF_SHARED_PTR<modelgbp::span::DstMember> >
resolve(
107 opflex::ofcore::OFFramework& framework,
108 const opflex::modb::URI& uri)
110 return opflex::modb::mointernal::MO::resolve<modelgbp::span::DstMember>(framework,
CLASS_ID, uri);
124 static boost::optional<OF_SHARED_PTR<modelgbp::span::DstMember> >
resolve(
125 const opflex::modb::URI& uri)
127 return opflex::modb::mointernal::MO::resolve<modelgbp::span::DstMember>(opflex::ofcore::OFFramework::defaultInstance(),
CLASS_ID, uri);
151 opflex::ofcore::OFFramework& framework,
152 const std::string& platformConfigName,
153 const std::string& spanSrcGrpName,
154 const std::string& spanDstMemberName)
156 return resolve(framework,opflex::modb::URIBuilder().addElement(
"PolicyUniverse").addElement(
"PlatformConfig").addElement(platformConfigName).addElement(
"SpanSrcGrp").addElement(spanSrcGrpName).addElement(
"SpanDstMember").addElement(spanDstMemberName).build());
179 const std::string& platformConfigName,
180 const std::string& spanSrcGrpName,
181 const std::string& spanDstMemberName)
207 opflex::ofcore::OFFramework& framework,
208 const std::string& platformConfigName,
209 const std::string& spanDstGrpName,
210 const std::string& spanDstMemberName)
212 return resolve(framework,opflex::modb::URIBuilder().addElement(
"PolicyUniverse").addElement(
"PlatformConfig").addElement(platformConfigName).addElement(
"SpanDstGrp").addElement(spanDstGrpName).addElement(
"SpanDstMember").addElement(spanDstMemberName).build());
235 const std::string& platformConfigName,
236 const std::string& spanDstGrpName,
237 const std::string& spanDstMemberName)
270 OF_SHARED_PTR<modelgbp::span::MemberToRefRSrc> result = addChild<modelgbp::span::MemberToRefRSrc>(
271 CLASS_ID, getURI(), 2150039626ul, 74,
272 opflex::modb::URIBuilder(getURI()).addElement(
"SpanMemberToRefRSrc").build()
305 OF_SHARED_PTR<modelgbp::span::DstSummary> result = addChild<modelgbp::span::DstSummary>(
306 CLASS_ID, getURI(), 2150039631ul, 79,
307 opflex::modb::URIBuilder(getURI()).addElement(
"SpanDstSummary").build()
322 getTLMutator().remove(
CLASS_ID, getURI());
335 static void remove(opflex::ofcore::OFFramework& framework,
336 const opflex::modb::URI& uri)
338 MO::remove(framework,
CLASS_ID, uri);
351 static void remove(
const opflex::modb::URI& uri)
353 remove(opflex::ofcore::OFFramework::defaultInstance(), uri);
375 opflex::ofcore::OFFramework& framework,
376 const std::string& platformConfigName,
377 const std::string& spanSrcGrpName,
378 const std::string& spanDstMemberName)
380 MO::remove(framework,
CLASS_ID, opflex::modb::URIBuilder().addElement(
"PolicyUniverse").addElement(
"PlatformConfig").addElement(platformConfigName).addElement(
"SpanSrcGrp").addElement(spanSrcGrpName).addElement(
"SpanDstMember").addElement(spanDstMemberName).build());
402 const std::string& platformConfigName,
403 const std::string& spanSrcGrpName,
404 const std::string& spanDstMemberName)
428 opflex::ofcore::OFFramework& framework,
429 const std::string& platformConfigName,
430 const std::string& spanDstGrpName,
431 const std::string& spanDstMemberName)
433 MO::remove(framework,
CLASS_ID, opflex::modb::URIBuilder().addElement(
"PolicyUniverse").addElement(
"PlatformConfig").addElement(platformConfigName).addElement(
"SpanDstGrp").addElement(spanDstGrpName).addElement(
"SpanDstMember").addElement(spanDstMemberName).build());
455 const std::string& platformConfigName,
456 const std::string& spanDstGrpName,
457 const std::string& spanDstMemberName)
474 opflex::ofcore::OFFramework& framework,
475 opflex::modb::ObjectListener* listener)
477 opflex::modb::mointernal
478 ::MO::registerListener(framework, listener,
CLASS_ID);
493 opflex::modb::ObjectListener* listener)
505 opflex::ofcore::OFFramework& framework,
506 opflex::modb::ObjectListener* listener)
508 opflex::modb::mointernal
509 ::MO::unregisterListener(framework, listener,
CLASS_ID);
519 opflex::modb::ObjectListener* listener)
529 opflex::ofcore::OFFramework& framework,
530 const opflex::modb::URI& uri,
531 const OF_SHARED_PTR<const opflex::modb::mointernal::ObjectInstance>& oi)
532 : MO(framework,
CLASS_ID, uri, oi) { }
Definition DstMember.hpp:31
static void remove(const opflex::modb::URI &uri)
Remove the DstMember object with the specified URI using the currently-active mutator and the default...
Definition DstMember.hpp:351
static boost::optional< OF_SHARED_PTR< modelgbp::span::DstMember > > resolveUnderPolicyUniversePlatformConfigSpanSrcGrp(const std::string &platformConfigName, const std::string &spanSrcGrpName, const std::string &spanDstMemberName)
Retrieve an instance of DstMember from the default managed object store by constructing its URI from ...
Definition DstMember.hpp:178
modelgbp::span::DstMember & unsetName()
Unset name in the currently-active mutator.
Definition DstMember.hpp:89
void remove()
Remove this instance using the currently-active mutator.
Definition DstMember.hpp:320
OF_SHARED_PTR< modelgbp::span::MemberToRefRSrc > addSpanMemberToRefRSrc()
Create a new child object with the specified naming properties and make it a child of this object in ...
Definition DstMember.hpp:267
DstMember(opflex::ofcore::OFFramework &framework, const opflex::modb::URI &uri, const OF_SHARED_PTR< const opflex::modb::mointernal::ObjectInstance > &oi)
Construct an instance of DstMember.
Definition DstMember.hpp:528
static void removeUnderPolicyUniversePlatformConfigSpanSrcGrp(const std::string &platformConfigName, const std::string &spanSrcGrpName, const std::string &spanDstMemberName)
Remove the DstMember object with the specified path elements from the managed object store using the ...
Definition DstMember.hpp:401
static boost::optional< OF_SHARED_PTR< modelgbp::span::DstMember > > resolve(const opflex::modb::URI &uri)
Retrieve an instance of DstMember from the managed object store using the default framework instance.
Definition DstMember.hpp:124
static void unregisterListener(opflex::modb::ObjectListener *listener)
Unregister a listener from updates to this class from the default framework instance.
Definition DstMember.hpp:518
modelgbp::span::DstMember & setName(const std::string &newValue)
Set name to the specified value in the currently-active mutator.
Definition DstMember.hpp:77
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 DstMember.hpp:473
boost::optional< OF_SHARED_PTR< modelgbp::span::MemberToRefRSrc > > resolveSpanMemberToRefRSrc()
Retrieve the child object with the specified naming properties.
Definition DstMember.hpp:251
static void removeUnderPolicyUniversePlatformConfigSpanSrcGrp(opflex::ofcore::OFFramework &framework, const std::string &platformConfigName, const std::string &spanSrcGrpName, const std::string &spanDstMemberName)
Remove the DstMember object with the specified path elements from the managed object store.
Definition DstMember.hpp:374
static void unregisterListener(opflex::ofcore::OFFramework &framework, opflex::modb::ObjectListener *listener)
Unregister a listener from updates to this class.
Definition DstMember.hpp:504
static void removeUnderPolicyUniversePlatformConfigSpanDstGrp(opflex::ofcore::OFFramework &framework, const std::string &platformConfigName, const std::string &spanDstGrpName, const std::string &spanDstMemberName)
Remove the DstMember object with the specified path elements from the managed object store.
Definition DstMember.hpp:427
static boost::optional< OF_SHARED_PTR< modelgbp::span::DstMember > > resolve(opflex::ofcore::OFFramework &framework, const opflex::modb::URI &uri)
Retrieve an instance of DstMember from the managed object store.
Definition DstMember.hpp:106
static boost::optional< OF_SHARED_PTR< modelgbp::span::DstMember > > resolveUnderPolicyUniversePlatformConfigSpanSrcGrp(opflex::ofcore::OFFramework &framework, const std::string &platformConfigName, const std::string &spanSrcGrpName, const std::string &spanDstMemberName)
Retrieve an instance of DstMember from the managed object store by constructing its URI from the path...
Definition DstMember.hpp:150
OF_SHARED_PTR< modelgbp::span::DstSummary > addSpanDstSummary()
Create a new child object with the specified naming properties and make it a child of this object in ...
Definition DstMember.hpp:302
boost::optional< const std::string & > getName()
Get the value of name if it has been set.
Definition DstMember.hpp:52
static const opflex::modb::class_id_t CLASS_ID
The unique class ID for DstMember.
Definition DstMember.hpp:37
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 DstMember.hpp:492
static void remove(opflex::ofcore::OFFramework &framework, const opflex::modb::URI &uri)
Remove the DstMember object with the specified URI using the currently-active mutator.
Definition DstMember.hpp:335
static void removeUnderPolicyUniversePlatformConfigSpanDstGrp(const std::string &platformConfigName, const std::string &spanDstGrpName, const std::string &spanDstMemberName)
Remove the DstMember object with the specified path elements from the managed object store using the ...
Definition DstMember.hpp:454
const std::string & getName(const std::string &defaultValue)
Get the value of name if set, otherwise the value of default passed in.
Definition DstMember.hpp:64
static boost::optional< OF_SHARED_PTR< modelgbp::span::DstMember > > resolveUnderPolicyUniversePlatformConfigSpanDstGrp(const std::string &platformConfigName, const std::string &spanDstGrpName, const std::string &spanDstMemberName)
Retrieve an instance of DstMember from the default managed object store by constructing its URI from ...
Definition DstMember.hpp:234
static boost::optional< OF_SHARED_PTR< modelgbp::span::DstMember > > resolveUnderPolicyUniversePlatformConfigSpanDstGrp(opflex::ofcore::OFFramework &framework, const std::string &platformConfigName, const std::string &spanDstGrpName, const std::string &spanDstMemberName)
Retrieve an instance of DstMember from the managed object store by constructing its URI from the path...
Definition DstMember.hpp:206
boost::optional< OF_SHARED_PTR< modelgbp::span::DstSummary > > resolveSpanDstSummary()
Retrieve the child object with the specified naming properties.
Definition DstMember.hpp:286
bool isNameSet()
Check whether name has been set.
Definition DstMember.hpp:43
static boost::optional< OF_SHARED_PTR< modelgbp::span::DstSummary > > resolve(opflex::ofcore::OFFramework &framework, const opflex::modb::URI &uri)
Retrieve an instance of DstSummary from the managed object store.
Definition DstSummary.hpp:546
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
SOME COPYRIGHT.
Definition OpcodeEnumT.hpp:12