11#ifndef GI_GBPE_REPORTEDEPATTRIBUTE_HPP
12#define GI_GBPE_REPORTEDEPATTRIBUTE_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 = 39;
37 return getObjectInstance().isSet(1277953ul, opflex::modb::PropertyInfo::STRING);
44 boost::optional<const std::string&>
getName()
47 return getObjectInstance().getString(1277953ul);
56 const std::string&
getName(
const std::string& defaultValue)
58 return getName().get_value_or(defaultValue);
71 getTLMutator().modify(getClassId(), getURI())->setString(1277953ul, newValue);
83 getTLMutator().modify(getClassId(), getURI())->unset(1277953ul, opflex::modb::PropertyInfo::STRING, opflex::modb::PropertyInfo::SCALAR);
93 return getObjectInstance().isSet(1277954ul, opflex::modb::PropertyInfo::STRING);
103 return getObjectInstance().getString(1277954ul);
112 const std::string&
getValue(
const std::string& defaultValue)
114 return getValue().get_value_or(defaultValue);
127 getTLMutator().modify(getClassId(), getURI())->setString(1277954ul, newValue);
139 getTLMutator().modify(getClassId(), getURI())->unset(1277954ul, opflex::modb::PropertyInfo::STRING, opflex::modb::PropertyInfo::SCALAR);
154 static boost::optional<OF_SHARED_PTR<modelgbp::gbpe::ReportedEpAttribute> >
resolve(
155 opflex::ofcore::OFFramework& framework,
156 const opflex::modb::URI& uri)
158 return opflex::modb::mointernal::MO::resolve<modelgbp::gbpe::ReportedEpAttribute>(framework,
CLASS_ID, uri);
172 static boost::optional<OF_SHARED_PTR<modelgbp::gbpe::ReportedEpAttribute> >
resolve(
173 const opflex::modb::URI& uri)
175 return opflex::modb::mointernal::MO::resolve<modelgbp::gbpe::ReportedEpAttribute>(opflex::ofcore::OFFramework::defaultInstance(),
CLASS_ID, uri);
198 static boost::optional<OF_SHARED_PTR<modelgbp::gbpe::ReportedEpAttribute> >
resolve(
199 opflex::ofcore::OFFramework& framework,
200 const std::string& eprL2EpContext,
201 const opflex::modb::MAC& eprL2EpMac,
202 const std::string& gbpeReportedEpAttributeName)
204 return resolve(framework,opflex::modb::URIBuilder().addElement(
"EprL2Universe").addElement(
"EprL2Ep").addElement(eprL2EpContext).addElement(eprL2EpMac).addElement(
"GbpeReportedEpAttributeSet").addElement(
"GbpeReportedEpAttribute").addElement(gbpeReportedEpAttributeName).build());
226 static boost::optional<OF_SHARED_PTR<modelgbp::gbpe::ReportedEpAttribute> >
resolve(
227 const std::string& eprL2EpContext,
228 const opflex::modb::MAC& eprL2EpMac,
229 const std::string& gbpeReportedEpAttributeName)
231 return resolve(opflex::ofcore::OFFramework::defaultInstance(),eprL2EpContext,eprL2EpMac,gbpeReportedEpAttributeName);
254 static boost::optional<OF_SHARED_PTR<modelgbp::gbpe::ReportedEpAttribute> >
resolve(
255 opflex::ofcore::OFFramework& framework,
256 const std::string& eprL3EpContext,
257 const std::string& eprL3EpIp,
258 const std::string& gbpeReportedEpAttributeName)
260 return resolve(framework,opflex::modb::URIBuilder().addElement(
"EprL3Universe").addElement(
"EprL3Ep").addElement(eprL3EpContext).addElement(eprL3EpIp).addElement(
"GbpeReportedEpAttributeSet").addElement(
"GbpeReportedEpAttribute").addElement(gbpeReportedEpAttributeName).build());
282 static boost::optional<OF_SHARED_PTR<modelgbp::gbpe::ReportedEpAttribute> >
resolve(
283 const std::string& eprL3EpContext,
284 const std::string& eprL3EpIp,
285 const std::string& gbpeReportedEpAttributeName)
287 return resolve(opflex::ofcore::OFFramework::defaultInstance(),eprL3EpContext,eprL3EpIp,gbpeReportedEpAttributeName);
300 getTLMutator().remove(
CLASS_ID, getURI());
313 static void remove(opflex::ofcore::OFFramework& framework,
314 const opflex::modb::URI& uri)
316 MO::remove(framework,
CLASS_ID, uri);
329 static void remove(
const opflex::modb::URI& uri)
331 remove(opflex::ofcore::OFFramework::defaultInstance(), uri);
353 opflex::ofcore::OFFramework& framework,
354 const std::string& eprL2EpContext,
355 const opflex::modb::MAC& eprL2EpMac,
356 const std::string& gbpeReportedEpAttributeName)
358 MO::remove(framework,
CLASS_ID, opflex::modb::URIBuilder().addElement(
"EprL2Universe").addElement(
"EprL2Ep").addElement(eprL2EpContext).addElement(eprL2EpMac).addElement(
"GbpeReportedEpAttributeSet").addElement(
"GbpeReportedEpAttribute").addElement(gbpeReportedEpAttributeName).build());
380 const std::string& eprL2EpContext,
381 const opflex::modb::MAC& eprL2EpMac,
382 const std::string& gbpeReportedEpAttributeName)
384 remove(opflex::ofcore::OFFramework::defaultInstance(),eprL2EpContext,eprL2EpMac,gbpeReportedEpAttributeName);
406 opflex::ofcore::OFFramework& framework,
407 const std::string& eprL3EpContext,
408 const std::string& eprL3EpIp,
409 const std::string& gbpeReportedEpAttributeName)
411 MO::remove(framework,
CLASS_ID, opflex::modb::URIBuilder().addElement(
"EprL3Universe").addElement(
"EprL3Ep").addElement(eprL3EpContext).addElement(eprL3EpIp).addElement(
"GbpeReportedEpAttributeSet").addElement(
"GbpeReportedEpAttribute").addElement(gbpeReportedEpAttributeName).build());
433 const std::string& eprL3EpContext,
434 const std::string& eprL3EpIp,
435 const std::string& gbpeReportedEpAttributeName)
437 remove(opflex::ofcore::OFFramework::defaultInstance(),eprL3EpContext,eprL3EpIp,gbpeReportedEpAttributeName);
452 opflex::ofcore::OFFramework& framework,
453 opflex::modb::ObjectListener* listener)
455 opflex::modb::mointernal
456 ::MO::registerListener(framework, listener,
CLASS_ID);
471 opflex::modb::ObjectListener* listener)
483 opflex::ofcore::OFFramework& framework,
484 opflex::modb::ObjectListener* listener)
486 opflex::modb::mointernal
487 ::MO::unregisterListener(framework, listener,
CLASS_ID);
497 opflex::modb::ObjectListener* listener)
507 opflex::ofcore::OFFramework& framework,
508 const opflex::modb::URI& uri,
509 const OF_SHARED_PTR<const opflex::modb::mointernal::ObjectInstance>& oi)
510 : MO(framework,
CLASS_ID, uri, oi) { }
Definition ReportedEpAttribute.hpp:23
bool isValueSet()
Check whether value has been set.
Definition ReportedEpAttribute.hpp:91
boost::optional< const std::string & > getName()
Get the value of name if it has been set.
Definition ReportedEpAttribute.hpp:44
static boost::optional< OF_SHARED_PTR< modelgbp::gbpe::ReportedEpAttribute > > resolve(const std::string &eprL3EpContext, const std::string &eprL3EpIp, const std::string &gbpeReportedEpAttributeName)
Retrieve an instance of ReportedEpAttribute from the default managed object store by constructing its...
Definition ReportedEpAttribute.hpp:282
static void remove(const std::string &eprL3EpContext, const std::string &eprL3EpIp, const std::string &gbpeReportedEpAttributeName)
Remove the ReportedEpAttribute object with the specified path elements from the managed object store ...
Definition ReportedEpAttribute.hpp:432
static void remove(opflex::ofcore::OFFramework &framework, const opflex::modb::URI &uri)
Remove the ReportedEpAttribute object with the specified URI using the currently-active mutator.
Definition ReportedEpAttribute.hpp:313
static boost::optional< OF_SHARED_PTR< modelgbp::gbpe::ReportedEpAttribute > > resolve(opflex::ofcore::OFFramework &framework, const opflex::modb::URI &uri)
Retrieve an instance of ReportedEpAttribute from the managed object store.
Definition ReportedEpAttribute.hpp:154
modelgbp::gbpe::ReportedEpAttribute & unsetName()
Unset name in the currently-active mutator.
Definition ReportedEpAttribute.hpp:81
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 ReportedEpAttribute.hpp:451
void remove()
Remove this instance using the currently-active mutator.
Definition ReportedEpAttribute.hpp:298
modelgbp::gbpe::ReportedEpAttribute & setName(const std::string &newValue)
Set name to the specified value in the currently-active mutator.
Definition ReportedEpAttribute.hpp:69
modelgbp::gbpe::ReportedEpAttribute & setValue(const std::string &newValue)
Set value to the specified value in the currently-active mutator.
Definition ReportedEpAttribute.hpp:125
static boost::optional< OF_SHARED_PTR< modelgbp::gbpe::ReportedEpAttribute > > resolve(opflex::ofcore::OFFramework &framework, const std::string &eprL3EpContext, const std::string &eprL3EpIp, const std::string &gbpeReportedEpAttributeName)
Retrieve an instance of ReportedEpAttribute from the managed object store by constructing its URI fro...
Definition ReportedEpAttribute.hpp:254
static void unregisterListener(opflex::modb::ObjectListener *listener)
Unregister a listener from updates to this class from the default framework instance.
Definition ReportedEpAttribute.hpp:496
static void remove(const opflex::modb::URI &uri)
Remove the ReportedEpAttribute object with the specified URI using the currently-active mutator and t...
Definition ReportedEpAttribute.hpp:329
static void remove(opflex::ofcore::OFFramework &framework, const std::string &eprL2EpContext, const opflex::modb::MAC &eprL2EpMac, const std::string &gbpeReportedEpAttributeName)
Remove the ReportedEpAttribute object with the specified path elements from the managed object store.
Definition ReportedEpAttribute.hpp:352
static void remove(opflex::ofcore::OFFramework &framework, const std::string &eprL3EpContext, const std::string &eprL3EpIp, const std::string &gbpeReportedEpAttributeName)
Remove the ReportedEpAttribute object with the specified path elements from the managed object store.
Definition ReportedEpAttribute.hpp:405
static boost::optional< OF_SHARED_PTR< modelgbp::gbpe::ReportedEpAttribute > > resolve(const std::string &eprL2EpContext, const opflex::modb::MAC &eprL2EpMac, const std::string &gbpeReportedEpAttributeName)
Retrieve an instance of ReportedEpAttribute from the default managed object store by constructing its...
Definition ReportedEpAttribute.hpp:226
ReportedEpAttribute(opflex::ofcore::OFFramework &framework, const opflex::modb::URI &uri, const OF_SHARED_PTR< const opflex::modb::mointernal::ObjectInstance > &oi)
Construct an instance of ReportedEpAttribute.
Definition ReportedEpAttribute.hpp:506
const std::string & getName(const std::string &defaultValue)
Get the value of name if set, otherwise the value of default passed in.
Definition ReportedEpAttribute.hpp:56
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 ReportedEpAttribute.hpp:470
static const opflex::modb::class_id_t CLASS_ID
The unique class ID for ReportedEpAttribute.
Definition ReportedEpAttribute.hpp:29
boost::optional< const std::string & > getValue()
Get the value of value if it has been set.
Definition ReportedEpAttribute.hpp:100
modelgbp::gbpe::ReportedEpAttribute & unsetValue()
Unset value in the currently-active mutator.
Definition ReportedEpAttribute.hpp:137
static void remove(const std::string &eprL2EpContext, const opflex::modb::MAC &eprL2EpMac, const std::string &gbpeReportedEpAttributeName)
Remove the ReportedEpAttribute object with the specified path elements from the managed object store ...
Definition ReportedEpAttribute.hpp:379
const std::string & getValue(const std::string &defaultValue)
Get the value of value if set, otherwise the value of default passed in.
Definition ReportedEpAttribute.hpp:112
bool isNameSet()
Check whether name has been set.
Definition ReportedEpAttribute.hpp:35
static boost::optional< OF_SHARED_PTR< modelgbp::gbpe::ReportedEpAttribute > > resolve(const opflex::modb::URI &uri)
Retrieve an instance of ReportedEpAttribute from the managed object store using the default framework...
Definition ReportedEpAttribute.hpp:172
static void unregisterListener(opflex::ofcore::OFFramework &framework, opflex::modb::ObjectListener *listener)
Unregister a listener from updates to this class.
Definition ReportedEpAttribute.hpp:482
static boost::optional< OF_SHARED_PTR< modelgbp::gbpe::ReportedEpAttribute > > resolve(opflex::ofcore::OFFramework &framework, const std::string &eprL2EpContext, const opflex::modb::MAC &eprL2EpMac, const std::string &gbpeReportedEpAttributeName)
Retrieve an instance of ReportedEpAttribute from the managed object store by constructing its URI fro...
Definition ReportedEpAttribute.hpp:198
SOME COPYRIGHT.
Definition OpcodeEnumT.hpp:12