11#ifndef GI_SPAN_LOCALEPFROMEPRTGT_HPP
12#define GI_SPAN_LOCALEPFROMEPRTGT_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 = 71;
37 return getObjectInstance().isSet(2326530ul, opflex::modb::PropertyInfo::ENUM8);
47 return (
const uint8_t)getObjectInstance().getUInt64(2326530ul);
56 const uint8_t
getRole(
const uint8_t defaultValue)
58 return getRole().get_value_or(defaultValue);
71 getTLMutator().modify(getClassId(), getURI())->setUInt64(2326530ul, newValue);
83 getTLMutator().modify(getClassId(), getURI())->unset(2326530ul, opflex::modb::PropertyInfo::ENUM8, opflex::modb::PropertyInfo::SCALAR);
93 return getObjectInstance().isSet(2326531ul, opflex::modb::PropertyInfo::STRING);
103 return getObjectInstance().getString(2326531ul);
112 const std::string&
getSource(
const std::string& defaultValue)
114 return getSource().get_value_or(defaultValue);
127 getTLMutator().modify(getClassId(), getURI())->setString(2326531ul, newValue);
139 getTLMutator().modify(getClassId(), getURI())->unset(2326531ul, opflex::modb::PropertyInfo::STRING, opflex::modb::PropertyInfo::SCALAR);
149 return getObjectInstance().isSet(2326529ul, opflex::modb::PropertyInfo::ENUM8);
159 return (
const uint8_t)getObjectInstance().getUInt64(2326529ul);
168 const uint8_t
getType(
const uint8_t defaultValue)
170 return getType().get_value_or(defaultValue);
183 getTLMutator().modify(getClassId(), getURI())->setUInt64(2326529ul, newValue);
195 getTLMutator().modify(getClassId(), getURI())->unset(2326529ul, opflex::modb::PropertyInfo::ENUM8, opflex::modb::PropertyInfo::SCALAR);
210 static boost::optional<OF_SHARED_PTR<modelgbp::span::LocalEpFromEpRTgt> >
resolve(
211 opflex::ofcore::OFFramework& framework,
212 const opflex::modb::URI& uri)
214 return opflex::modb::mointernal::MO::resolve<modelgbp::span::LocalEpFromEpRTgt>(framework,
CLASS_ID, uri);
228 static boost::optional<OF_SHARED_PTR<modelgbp::span::LocalEpFromEpRTgt> >
resolve(
229 const opflex::modb::URI& uri)
231 return opflex::modb::mointernal::MO::resolve<modelgbp::span::LocalEpFromEpRTgt>(opflex::ofcore::OFFramework::defaultInstance(),
CLASS_ID, uri);
254 static boost::optional<OF_SHARED_PTR<modelgbp::span::LocalEpFromEpRTgt> >
resolve(
255 opflex::ofcore::OFFramework& framework,
256 const std::string& eprL2EpContext,
257 const opflex::modb::MAC& eprL2EpMac,
258 const std::string& spanLocalEpFromEpRTgtSource)
260 return resolve(framework,opflex::modb::URIBuilder().addElement(
"EprL2Universe").addElement(
"EprL2Ep").addElement(eprL2EpContext).addElement(eprL2EpMac).addElement(
"SpanLocalEpFromEpRTgt").addElement(spanLocalEpFromEpRTgtSource).build());
282 static boost::optional<OF_SHARED_PTR<modelgbp::span::LocalEpFromEpRTgt> >
resolve(
283 const std::string& eprL2EpContext,
284 const opflex::modb::MAC& eprL2EpMac,
285 const std::string& spanLocalEpFromEpRTgtSource)
287 return resolve(opflex::ofcore::OFFramework::defaultInstance(),eprL2EpContext,eprL2EpMac,spanLocalEpFromEpRTgtSource);
310 static boost::optional<OF_SHARED_PTR<modelgbp::span::LocalEpFromEpRTgt> >
resolve(
311 opflex::ofcore::OFFramework& framework,
312 const std::string& eprL3EpContext,
313 const std::string& eprL3EpIp,
314 const std::string& spanLocalEpFromEpRTgtSource)
316 return resolve(framework,opflex::modb::URIBuilder().addElement(
"EprL3Universe").addElement(
"EprL3Ep").addElement(eprL3EpContext).addElement(eprL3EpIp).addElement(
"SpanLocalEpFromEpRTgt").addElement(spanLocalEpFromEpRTgtSource).build());
338 static boost::optional<OF_SHARED_PTR<modelgbp::span::LocalEpFromEpRTgt> >
resolve(
339 const std::string& eprL3EpContext,
340 const std::string& eprL3EpIp,
341 const std::string& spanLocalEpFromEpRTgtSource)
343 return resolve(opflex::ofcore::OFFramework::defaultInstance(),eprL3EpContext,eprL3EpIp,spanLocalEpFromEpRTgtSource);
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& eprL2EpContext,
411 const opflex::modb::MAC& eprL2EpMac,
412 const std::string& spanLocalEpFromEpRTgtSource)
414 MO::remove(framework,
CLASS_ID, opflex::modb::URIBuilder().addElement(
"EprL2Universe").addElement(
"EprL2Ep").addElement(eprL2EpContext).addElement(eprL2EpMac).addElement(
"SpanLocalEpFromEpRTgt").addElement(spanLocalEpFromEpRTgtSource).build());
436 const std::string& eprL2EpContext,
437 const opflex::modb::MAC& eprL2EpMac,
438 const std::string& spanLocalEpFromEpRTgtSource)
440 remove(opflex::ofcore::OFFramework::defaultInstance(),eprL2EpContext,eprL2EpMac,spanLocalEpFromEpRTgtSource);
462 opflex::ofcore::OFFramework& framework,
463 const std::string& eprL3EpContext,
464 const std::string& eprL3EpIp,
465 const std::string& spanLocalEpFromEpRTgtSource)
467 MO::remove(framework,
CLASS_ID, opflex::modb::URIBuilder().addElement(
"EprL3Universe").addElement(
"EprL3Ep").addElement(eprL3EpContext).addElement(eprL3EpIp).addElement(
"SpanLocalEpFromEpRTgt").addElement(spanLocalEpFromEpRTgtSource).build());
489 const std::string& eprL3EpContext,
490 const std::string& eprL3EpIp,
491 const std::string& spanLocalEpFromEpRTgtSource)
493 remove(opflex::ofcore::OFFramework::defaultInstance(),eprL3EpContext,eprL3EpIp,spanLocalEpFromEpRTgtSource);
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) { }
Definition LocalEpFromEpRTgt.hpp:23
modelgbp::span::LocalEpFromEpRTgt & unsetType()
Unset type in the currently-active mutator.
Definition LocalEpFromEpRTgt.hpp:193
const uint8_t getRole(const uint8_t defaultValue)
Get the value of role if set, otherwise the value of default passed in.
Definition LocalEpFromEpRTgt.hpp:56
static void unregisterListener(opflex::modb::ObjectListener *listener)
Unregister a listener from updates to this class from the default framework instance.
Definition LocalEpFromEpRTgt.hpp:552
const std::string & getSource(const std::string &defaultValue)
Get the value of source if set, otherwise the value of default passed in.
Definition LocalEpFromEpRTgt.hpp:112
static void remove(const std::string &eprL2EpContext, const opflex::modb::MAC &eprL2EpMac, const std::string &spanLocalEpFromEpRTgtSource)
Remove the LocalEpFromEpRTgt object with the specified path elements from the managed object store us...
Definition LocalEpFromEpRTgt.hpp:435
static void remove(const opflex::modb::URI &uri)
Remove the LocalEpFromEpRTgt object with the specified URI using the currently-active mutator and the...
Definition LocalEpFromEpRTgt.hpp:385
static boost::optional< OF_SHARED_PTR< modelgbp::span::LocalEpFromEpRTgt > > resolve(opflex::ofcore::OFFramework &framework, const std::string &eprL3EpContext, const std::string &eprL3EpIp, const std::string &spanLocalEpFromEpRTgtSource)
Retrieve an instance of LocalEpFromEpRTgt from the managed object store by constructing its URI from ...
Definition LocalEpFromEpRTgt.hpp:310
static boost::optional< OF_SHARED_PTR< modelgbp::span::LocalEpFromEpRTgt > > resolve(const opflex::modb::URI &uri)
Retrieve an instance of LocalEpFromEpRTgt from the managed object store using the default framework i...
Definition LocalEpFromEpRTgt.hpp:228
bool isTypeSet()
Check whether type has been set.
Definition LocalEpFromEpRTgt.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 LocalEpFromEpRTgt.hpp:507
LocalEpFromEpRTgt(opflex::ofcore::OFFramework &framework, const opflex::modb::URI &uri, const OF_SHARED_PTR< const opflex::modb::mointernal::ObjectInstance > &oi)
Construct an instance of LocalEpFromEpRTgt.
Definition LocalEpFromEpRTgt.hpp:562
static void remove(const std::string &eprL3EpContext, const std::string &eprL3EpIp, const std::string &spanLocalEpFromEpRTgtSource)
Remove the LocalEpFromEpRTgt object with the specified path elements from the managed object store us...
Definition LocalEpFromEpRTgt.hpp:488
boost::optional< const uint8_t > getRole()
Get the value of role if it has been set.
Definition LocalEpFromEpRTgt.hpp:44
static void unregisterListener(opflex::ofcore::OFFramework &framework, opflex::modb::ObjectListener *listener)
Unregister a listener from updates to this class.
Definition LocalEpFromEpRTgt.hpp:538
modelgbp::span::LocalEpFromEpRTgt & setSource(const std::string &newValue)
Set source to the specified value in the currently-active mutator.
Definition LocalEpFromEpRTgt.hpp:125
static void remove(opflex::ofcore::OFFramework &framework, const opflex::modb::URI &uri)
Remove the LocalEpFromEpRTgt object with the specified URI using the currently-active mutator.
Definition LocalEpFromEpRTgt.hpp:369
bool isRoleSet()
Check whether role has been set.
Definition LocalEpFromEpRTgt.hpp:35
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 LocalEpFromEpRTgt.hpp:526
static const opflex::modb::class_id_t CLASS_ID
The unique class ID for LocalEpFromEpRTgt.
Definition LocalEpFromEpRTgt.hpp:29
const uint8_t getType(const uint8_t defaultValue)
Get the value of type if set, otherwise the value of default passed in.
Definition LocalEpFromEpRTgt.hpp:168
static boost::optional< OF_SHARED_PTR< modelgbp::span::LocalEpFromEpRTgt > > resolve(const std::string &eprL2EpContext, const opflex::modb::MAC &eprL2EpMac, const std::string &spanLocalEpFromEpRTgtSource)
Retrieve an instance of LocalEpFromEpRTgt from the default managed object store by constructing its U...
Definition LocalEpFromEpRTgt.hpp:282
boost::optional< const uint8_t > getType()
Get the value of type if it has been set.
Definition LocalEpFromEpRTgt.hpp:156
modelgbp::span::LocalEpFromEpRTgt & unsetSource()
Unset source in the currently-active mutator.
Definition LocalEpFromEpRTgt.hpp:137
modelgbp::span::LocalEpFromEpRTgt & setType(const uint8_t newValue)
Set type to the specified value in the currently-active mutator.
Definition LocalEpFromEpRTgt.hpp:181
static void remove(opflex::ofcore::OFFramework &framework, const std::string &eprL2EpContext, const opflex::modb::MAC &eprL2EpMac, const std::string &spanLocalEpFromEpRTgtSource)
Remove the LocalEpFromEpRTgt object with the specified path elements from the managed object store.
Definition LocalEpFromEpRTgt.hpp:408
static boost::optional< OF_SHARED_PTR< modelgbp::span::LocalEpFromEpRTgt > > resolve(opflex::ofcore::OFFramework &framework, const std::string &eprL2EpContext, const opflex::modb::MAC &eprL2EpMac, const std::string &spanLocalEpFromEpRTgtSource)
Retrieve an instance of LocalEpFromEpRTgt from the managed object store by constructing its URI from ...
Definition LocalEpFromEpRTgt.hpp:254
static boost::optional< OF_SHARED_PTR< modelgbp::span::LocalEpFromEpRTgt > > resolve(const std::string &eprL3EpContext, const std::string &eprL3EpIp, const std::string &spanLocalEpFromEpRTgtSource)
Retrieve an instance of LocalEpFromEpRTgt from the default managed object store by constructing its U...
Definition LocalEpFromEpRTgt.hpp:338
static boost::optional< OF_SHARED_PTR< modelgbp::span::LocalEpFromEpRTgt > > resolve(opflex::ofcore::OFFramework &framework, const opflex::modb::URI &uri)
Retrieve an instance of LocalEpFromEpRTgt from the managed object store.
Definition LocalEpFromEpRTgt.hpp:210
bool isSourceSet()
Check whether source has been set.
Definition LocalEpFromEpRTgt.hpp:91
boost::optional< const std::string & > getSource()
Get the value of source if it has been set.
Definition LocalEpFromEpRTgt.hpp:100
static void remove(opflex::ofcore::OFFramework &framework, const std::string &eprL3EpContext, const std::string &eprL3EpIp, const std::string &spanLocalEpFromEpRTgtSource)
Remove the LocalEpFromEpRTgt object with the specified path elements from the managed object store.
Definition LocalEpFromEpRTgt.hpp:461
modelgbp::span::LocalEpFromEpRTgt & setRole(const uint8_t newValue)
Set role to the specified value in the currently-active mutator.
Definition LocalEpFromEpRTgt.hpp:69
modelgbp::span::LocalEpFromEpRTgt & unsetRole()
Unset role in the currently-active mutator.
Definition LocalEpFromEpRTgt.hpp:81
void remove()
Remove this instance using the currently-active mutator.
Definition LocalEpFromEpRTgt.hpp:354
SOME COPYRIGHT.
Definition OpcodeEnumT.hpp:12