11#ifndef GI_SPAN_SRCGRP_HPP
12#define GI_SPAN_SRCGRP_HPP
14#include <boost/optional.hpp>
15#include "opflex/modb/URIBuilder.h"
16#include "opflex/modb/mo-internal/MO.h"
20#include "modelgbp/span/SrcMember.hpp"
24#include "modelgbp/span/DstMember.hpp"
30 :
public opflex::modb::mointernal::MO
37 static const opflex::modb::class_id_t
CLASS_ID = 67;
147 getTLMutator().modify(
getClassId(),
getURI())->unset(2195457ul, opflex::modb::PropertyInfo::STRING, opflex::modb::PropertyInfo::SCALAR);
218 static boost::optional<OF_SHARED_PTR<modelgbp::span::SrcGrp> >
resolve(
220 const opflex::modb::URI&
uri)
236 static boost::optional<OF_SHARED_PTR<modelgbp::span::SrcGrp> >
resolve(
237 const opflex::modb::URI&
uri)
239 return opflex::modb::mointernal::MO::resolve<modelgbp::span::SrcGrp>(opflex::ofcore::OFFramework::defaultInstance(),
CLASS_ID,
uri);
260 static boost::optional<OF_SHARED_PTR<modelgbp::span::SrcGrp> >
resolve(
285 static boost::optional<OF_SHARED_PTR<modelgbp::span::SrcGrp> >
resolve(
348 opflex::modb::mointernal::MO::resolveChildren<modelgbp::span::SrcMember>(
408 opflex::modb::mointernal::MO::resolveChildren<modelgbp::span::DstMember>(
436 const opflex::modb::URI&
uri)
453 remove(opflex::ofcore::OFFramework::defaultInstance(),
uri);
516 opflex::modb::ObjectListener*
listener)
518 opflex::modb::mointernal
534 opflex::modb::ObjectListener*
listener)
547 opflex::modb::ObjectListener*
listener)
549 opflex::modb::mointernal
560 opflex::modb::ObjectListener*
listener)
571 const opflex::modb::URI&
uri,
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
modelgbp::span::SrcGrp & unsetState()
Unset state in the currently-active mutator.
Definition SrcGrp.hpp:201
uint32_t getLabel(uint32_t defaultValue)
Get the value of label if set, otherwise the value of default passed in.
Definition SrcGrp.hpp:64
OF_SHARED_PTR< modelgbp::span::DstMember > addSpanDstMember(const std::string &spanDstMemberName)
Create a new child object with the specified naming properties and make it a child of this object in ...
Definition SrcGrp.hpp:381
static boost::optional< OF_SHARED_PTR< modelgbp::span::SrcGrp > > resolve(const opflex::modb::URI &uri)
Retrieve an instance of SrcGrp from the managed object store using the default framework instance.
Definition SrcGrp.hpp:236
static void unregisterListener(opflex::modb::ObjectListener *listener)
Unregister a listener from updates to this class from the default framework instance.
Definition SrcGrp.hpp:559
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 SrcGrp.hpp:514
boost::optional< const uint8_t > getState()
Get the value of state if it has been set.
Definition SrcGrp.hpp:164
void remove()
Remove this instance using the currently-active mutator.
Definition SrcGrp.hpp:420
boost::optional< OF_SHARED_PTR< modelgbp::span::DstMember > > resolveSpanDstMember(const std::string &spanDstMemberName)
Retrieve the child object with the specified naming properties.
Definition SrcGrp.hpp:363
bool isStateSet()
Check whether state has been set.
Definition SrcGrp.hpp:155
static void remove(const std::string &platformConfigName, const std::string &spanSrcGrpName)
Remove the SrcGrp object with the specified path elements from the managed object store using the def...
Definition SrcGrp.hpp:496
OF_SHARED_PTR< modelgbp::span::SrcMember > addSpanSrcMember(const std::string &spanSrcMemberName)
Create a new child object with the specified naming properties and make it a child of this object in ...
Definition SrcGrp.hpp:321
void resolveSpanDstMember(std::vector< OF_SHARED_PTR< modelgbp::span::DstMember > > &out)
Resolve and retrieve all of the immediate children of type modelgbp::span::DstMember.
Definition SrcGrp.hpp:406
modelgbp::span::SrcGrp & setState(const uint8_t newValue)
Set state to the specified value in the currently-active mutator.
Definition SrcGrp.hpp:189
boost::optional< OF_SHARED_PTR< modelgbp::span::SrcMember > > resolveSpanSrcMember(const std::string &spanSrcMemberName)
Retrieve the child object with the specified naming properties.
Definition SrcGrp.hpp:303
modelgbp::span::SrcGrp & setLabel(uint32_t newValue)
Set label to the specified value in the currently-active mutator.
Definition SrcGrp.hpp:77
modelgbp::span::SrcGrp & unsetName()
Unset name in the currently-active mutator.
Definition SrcGrp.hpp:145
void resolveSpanSrcMember(std::vector< OF_SHARED_PTR< modelgbp::span::SrcMember > > &out)
Resolve and retrieve all of the immediate children of type modelgbp::span::SrcMember.
Definition SrcGrp.hpp:346
static void remove(opflex::ofcore::OFFramework &framework, const std::string &platformConfigName, const std::string &spanSrcGrpName)
Remove the SrcGrp object with the specified path elements from the managed object store.
Definition SrcGrp.hpp:472
static void unregisterListener(opflex::ofcore::OFFramework &framework, opflex::modb::ObjectListener *listener)
Unregister a listener from updates to this class.
Definition SrcGrp.hpp:545
bool isLabelSet()
Check whether label has been set.
Definition SrcGrp.hpp:43
boost::optional< uint32_t > getLabel()
Get the value of label if it has been set.
Definition SrcGrp.hpp:52
static boost::optional< OF_SHARED_PTR< modelgbp::span::SrcGrp > > resolve(const std::string &platformConfigName, const std::string &spanSrcGrpName)
Retrieve an instance of SrcGrp from the default managed object store by constructing its URI from the...
Definition SrcGrp.hpp:285
static void remove(opflex::ofcore::OFFramework &framework, const opflex::modb::URI &uri)
Remove the SrcGrp object with the specified URI using the currently-active mutator.
Definition SrcGrp.hpp:435
bool isNameSet()
Check whether name has been set.
Definition SrcGrp.hpp:99
static void remove(const opflex::modb::URI &uri)
Remove the SrcGrp object with the specified URI using the currently-active mutator and the default fr...
Definition SrcGrp.hpp:451
modelgbp::span::SrcGrp & unsetLabel()
Unset label in the currently-active mutator.
Definition SrcGrp.hpp:89
boost::optional< const std::string & > getName()
Get the value of name if it has been set.
Definition SrcGrp.hpp:108
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 SrcGrp.hpp:533
const std::string & getName(const std::string &defaultValue)
Get the value of name if set, otherwise the value of default passed in.
Definition SrcGrp.hpp:120
SrcGrp(opflex::ofcore::OFFramework &framework, const opflex::modb::URI &uri, const OF_SHARED_PTR< const opflex::modb::mointernal::ObjectInstance > &oi)
Construct an instance of SrcGrp.
Definition SrcGrp.hpp:569
const uint8_t getState(const uint8_t defaultValue)
Get the value of state if set, otherwise the value of default passed in.
Definition SrcGrp.hpp:176
modelgbp::span::SrcGrp & setName(const std::string &newValue)
Set name to the specified value in the currently-active mutator.
Definition SrcGrp.hpp:133
static const opflex::modb::class_id_t CLASS_ID
The unique class ID for SrcGrp.
Definition SrcGrp.hpp:37
static boost::optional< OF_SHARED_PTR< modelgbp::span::SrcGrp > > resolve(opflex::ofcore::OFFramework &framework, const std::string &platformConfigName, const std::string &spanSrcGrpName)
Retrieve an instance of SrcGrp from the managed object store by constructing its URI from the path el...
Definition SrcGrp.hpp:260
static boost::optional< OF_SHARED_PTR< modelgbp::span::SrcGrp > > resolve(opflex::ofcore::OFFramework &framework, const opflex::modb::URI &uri)
Retrieve an instance of SrcGrp from the managed object store.
Definition SrcGrp.hpp:218
static boost::optional< OF_SHARED_PTR< modelgbp::span::SrcMember > > resolve(opflex::ofcore::OFFramework &framework, const opflex::modb::URI &uri)
Retrieve an instance of SrcMember from the managed object store.
Definition SrcMember.hpp:158
SOME COPYRIGHT.
Definition OpcodeEnumT.hpp:12