11#ifndef GI_SPAN_LOCALEPTOEPRSRC_HPP
12#define GI_SPAN_LOCALEPTOEPRSRC_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 = 70;
93 return getObjectInstance().isSet(2293763ul, opflex::modb::PropertyInfo::REFERENCE);
226 getTLMutator().modify(
getClassId(),
getURI())->unset(2293763ul, opflex::modb::PropertyInfo::REFERENCE, opflex::modb::PropertyInfo::SCALAR);
297 static boost::optional<OF_SHARED_PTR<modelgbp::span::LocalEpToEpRSrc> >
resolve(
299 const opflex::modb::URI&
uri)
301 return opflex::modb::mointernal::MO::resolve<modelgbp::span::LocalEpToEpRSrc>(
framework,
CLASS_ID,
uri);
315 static boost::optional<OF_SHARED_PTR<modelgbp::span::LocalEpToEpRSrc> >
resolve(
316 const opflex::modb::URI&
uri)
318 return opflex::modb::mointernal::MO::resolve<modelgbp::span::LocalEpToEpRSrc>(opflex::ofcore::OFFramework::defaultInstance(),
CLASS_ID,
uri);
339 static boost::optional<OF_SHARED_PTR<modelgbp::span::LocalEpToEpRSrc> >
resolve(
364 static boost::optional<OF_SHARED_PTR<modelgbp::span::LocalEpToEpRSrc> >
resolve(
395 const opflex::modb::URI&
uri)
412 remove(opflex::ofcore::OFFramework::defaultInstance(),
uri);
475 opflex::modb::ObjectListener*
listener)
477 opflex::modb::mointernal
493 opflex::modb::ObjectListener*
listener)
506 opflex::modb::ObjectListener*
listener)
508 opflex::modb::mointernal
519 opflex::modb::ObjectListener*
listener)
530 const opflex::modb::URI&
uri,
Definition LocalEpToEpRSrc.hpp:23
bool isTargetSet()
Check whether target has been set.
Definition LocalEpToEpRSrc.hpp:91
boost::optional< opflex::modb::class_id_t > getTargetClass()
Get the value of targetClass if it has been set.
Definition LocalEpToEpRSrc.hpp:100
static void remove(opflex::ofcore::OFFramework &framework, const std::string &platformConfigName, const std::string &spanLocalEpName)
Remove the LocalEpToEpRSrc object with the specified path elements from the managed object store.
Definition LocalEpToEpRSrc.hpp:431
void remove()
Remove this instance using the currently-active mutator.
Definition LocalEpToEpRSrc.hpp:379
boost::optional< const uint8_t > getRole()
Get the value of role if it has been set.
Definition LocalEpToEpRSrc.hpp:44
static const opflex::modb::class_id_t CLASS_ID
The unique class ID for LocalEpToEpRSrc.
Definition LocalEpToEpRSrc.hpp:29
static void unregisterListener(opflex::ofcore::OFFramework &framework, opflex::modb::ObjectListener *listener)
Unregister a listener from updates to this class.
Definition LocalEpToEpRSrc.hpp:504
modelgbp::span::LocalEpToEpRSrc & setTargetL2Ep(const std::string &eprL2EpContext, const opflex::modb::MAC &eprL2EpMac)
Set the reference to point to an instance of L2Ep in the currently-active mutator by constructing its...
Definition LocalEpToEpRSrc.hpp:170
static boost::optional< OF_SHARED_PTR< modelgbp::span::LocalEpToEpRSrc > > resolve(const opflex::modb::URI &uri)
Retrieve an instance of LocalEpToEpRSrc from the managed object store using the default framework ins...
Definition LocalEpToEpRSrc.hpp:315
modelgbp::span::LocalEpToEpRSrc & setType(const uint8_t newValue)
Set type to the specified value in the currently-active mutator.
Definition LocalEpToEpRSrc.hpp:268
modelgbp::span::LocalEpToEpRSrc & setTargetL2Ep(const opflex::modb::URI &uri)
Set the reference to point to an instance of L2Ep with the specified URI.
Definition LocalEpToEpRSrc.hpp:147
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 LocalEpToEpRSrc.hpp:473
static boost::optional< OF_SHARED_PTR< modelgbp::span::LocalEpToEpRSrc > > resolve(opflex::ofcore::OFFramework &framework, const opflex::modb::URI &uri)
Retrieve an instance of LocalEpToEpRSrc from the managed object store.
Definition LocalEpToEpRSrc.hpp:297
static boost::optional< OF_SHARED_PTR< modelgbp::span::LocalEpToEpRSrc > > resolve(opflex::ofcore::OFFramework &framework, const std::string &platformConfigName, const std::string &spanLocalEpName)
Retrieve an instance of LocalEpToEpRSrc from the managed object store by constructing its URI from th...
Definition LocalEpToEpRSrc.hpp:339
const uint8_t getRole(const uint8_t defaultValue)
Get the value of role if set, otherwise the value of default passed in.
Definition LocalEpToEpRSrc.hpp:56
modelgbp::span::LocalEpToEpRSrc & setTargetL3Ep(const opflex::modb::URI &uri)
Set the reference to point to an instance of L3Ep with the specified URI.
Definition LocalEpToEpRSrc.hpp:187
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 LocalEpToEpRSrc.hpp:123
boost::optional< opflex::modb::URI > getTargetURI()
Get the value of targetURI if it has been set.
Definition LocalEpToEpRSrc.hpp:111
static void unregisterListener(opflex::modb::ObjectListener *listener)
Unregister a listener from updates to this class from the default framework instance.
Definition LocalEpToEpRSrc.hpp:518
bool isTypeSet()
Check whether type has been set.
Definition LocalEpToEpRSrc.hpp:234
static void remove(const std::string &platformConfigName, const std::string &spanLocalEpName)
Remove the LocalEpToEpRSrc object with the specified path elements from the managed object store usin...
Definition LocalEpToEpRSrc.hpp:455
bool isRoleSet()
Check whether role has been set.
Definition LocalEpToEpRSrc.hpp:35
modelgbp::span::LocalEpToEpRSrc & setTargetL3Ep(const std::string &eprL3EpContext, const std::string &eprL3EpIp)
Set the reference to point to an instance of L3Ep in the currently-active mutator by constructing its...
Definition LocalEpToEpRSrc.hpp:210
static boost::optional< OF_SHARED_PTR< modelgbp::span::LocalEpToEpRSrc > > resolve(const std::string &platformConfigName, const std::string &spanLocalEpName)
Retrieve an instance of LocalEpToEpRSrc from the default managed object store by constructing its URI...
Definition LocalEpToEpRSrc.hpp:364
LocalEpToEpRSrc(opflex::ofcore::OFFramework &framework, const opflex::modb::URI &uri, const OF_SHARED_PTR< const opflex::modb::mointernal::ObjectInstance > &oi)
Construct an instance of LocalEpToEpRSrc.
Definition LocalEpToEpRSrc.hpp:528
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 LocalEpToEpRSrc.hpp:492
static void remove(const opflex::modb::URI &uri)
Remove the LocalEpToEpRSrc object with the specified URI using the currently-active mutator and the d...
Definition LocalEpToEpRSrc.hpp:410
static void remove(opflex::ofcore::OFFramework &framework, const opflex::modb::URI &uri)
Remove the LocalEpToEpRSrc object with the specified URI using the currently-active mutator.
Definition LocalEpToEpRSrc.hpp:394
modelgbp::span::LocalEpToEpRSrc & unsetTarget()
Unset target in the currently-active mutator.
Definition LocalEpToEpRSrc.hpp:224
const uint8_t getType(const uint8_t defaultValue)
Get the value of type if set, otherwise the value of default passed in.
Definition LocalEpToEpRSrc.hpp:255
boost::optional< const uint8_t > getType()
Get the value of type if it has been set.
Definition LocalEpToEpRSrc.hpp:243
modelgbp::span::LocalEpToEpRSrc & unsetType()
Unset type in the currently-active mutator.
Definition LocalEpToEpRSrc.hpp:280
modelgbp::span::LocalEpToEpRSrc & unsetRole()
Unset role in the currently-active mutator.
Definition LocalEpToEpRSrc.hpp:81
opflex::modb::URI getTargetURI(opflex::modb::URI defaultValue)
Get the value of targetURI if set, otherwise the value of default passed in.
Definition LocalEpToEpRSrc.hpp:133
modelgbp::span::LocalEpToEpRSrc & setRole(const uint8_t newValue)
Set role to the specified value in the currently-active mutator.
Definition LocalEpToEpRSrc.hpp:69
SOME COPYRIGHT.
Definition OpcodeEnumT.hpp:12