11 #ifndef GI_GBPE_ROUTINGDOMAINDROPCOUNTER_HPP 12 #define GI_GBPE_ROUTINGDOMAINDROPCOUNTER_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 = 50;
37 return getObjectInstance().isSet(1638405ul, opflex::modb::PropertyInfo::U64);
47 return getObjectInstance().getUInt64(1638405ul);
58 return getBytes().get_value_or(defaultValue);
71 getTLMutator().modify(getClassId(), getURI())->setUInt64(1638405ul, newValue);
83 getTLMutator().modify(getClassId(), getURI())->unset(1638405ul, opflex::modb::PropertyInfo::U64, opflex::modb::PropertyInfo::SCALAR);
93 return getObjectInstance().isSet(1638402ul, opflex::modb::PropertyInfo::U64);
103 return getObjectInstance().getUInt64(1638402ul);
114 return getGenId().get_value_or(defaultValue);
127 getTLMutator().modify(getClassId(), getURI())->setUInt64(1638402ul, newValue);
139 getTLMutator().modify(getClassId(), getURI())->unset(1638402ul, opflex::modb::PropertyInfo::U64, opflex::modb::PropertyInfo::SCALAR);
149 return getObjectInstance().isSet(1638404ul, opflex::modb::PropertyInfo::U64);
159 return getObjectInstance().getUInt64(1638404ul);
170 return getPackets().get_value_or(defaultValue);
183 getTLMutator().modify(getClassId(), getURI())->setUInt64(1638404ul, newValue);
195 getTLMutator().modify(getClassId(), getURI())->unset(1638404ul, opflex::modb::PropertyInfo::U64, opflex::modb::PropertyInfo::SCALAR);
205 return getObjectInstance().isSet(1638403ul, opflex::modb::PropertyInfo::STRING);
215 return getObjectInstance().getString(1638403ul);
239 getTLMutator().modify(getClassId(), getURI())->setString(1638403ul, newValue);
251 getTLMutator().modify(getClassId(), getURI())->unset(1638403ul, opflex::modb::PropertyInfo::STRING, opflex::modb::PropertyInfo::SCALAR);
261 return getObjectInstance().isSet(1638401ul, opflex::modb::PropertyInfo::STRING);
271 return getObjectInstance().getString(1638401ul);
280 const std::string&
getUuid(
const std::string& defaultValue)
282 return getUuid().get_value_or(defaultValue);
295 getTLMutator().modify(getClassId(), getURI())->setString(1638401ul, newValue);
307 getTLMutator().modify(getClassId(), getURI())->unset(1638401ul, opflex::modb::PropertyInfo::STRING, opflex::modb::PropertyInfo::SCALAR);
322 static boost::optional<OF_SHARED_PTR<modelgbp::gbpe::RoutingDomainDropCounter> >
resolve(
323 opflex::ofcore::OFFramework& framework,
324 const opflex::modb::URI& uri)
326 return opflex::modb::mointernal::MO::resolve<modelgbp::gbpe::RoutingDomainDropCounter>(framework,
CLASS_ID, uri);
340 static boost::optional<OF_SHARED_PTR<modelgbp::gbpe::RoutingDomainDropCounter> >
resolve(
341 const opflex::modb::URI& uri)
343 return opflex::modb::mointernal::MO::resolve<modelgbp::gbpe::RoutingDomainDropCounter>(opflex::ofcore::OFFramework::defaultInstance(),
CLASS_ID, uri);
366 static boost::optional<OF_SHARED_PTR<modelgbp::gbpe::RoutingDomainDropCounter> >
resolve(
367 opflex::ofcore::OFFramework& framework,
368 const std::string& gbpeRoutingDomainDropCounterUuid,
369 uint64_t gbpeRoutingDomainDropCounterGenId,
370 const std::string& gbpeRoutingDomainDropCounterRoutingDomain)
372 return resolve(framework,opflex::modb::URIBuilder().addElement(
"ObserverPolicyStatUniverse").addElement(
"GbpeRoutingDomainDropCounter").addElement(gbpeRoutingDomainDropCounterUuid).addElement(gbpeRoutingDomainDropCounterGenId).addElement(gbpeRoutingDomainDropCounterRoutingDomain).build());
394 static boost::optional<OF_SHARED_PTR<modelgbp::gbpe::RoutingDomainDropCounter> >
resolve(
395 const std::string& gbpeRoutingDomainDropCounterUuid,
396 uint64_t gbpeRoutingDomainDropCounterGenId,
397 const std::string& gbpeRoutingDomainDropCounterRoutingDomain)
399 return resolve(opflex::ofcore::OFFramework::defaultInstance(),gbpeRoutingDomainDropCounterUuid,gbpeRoutingDomainDropCounterGenId,gbpeRoutingDomainDropCounterRoutingDomain);
412 getTLMutator().remove(
CLASS_ID, getURI());
425 static void remove(opflex::ofcore::OFFramework& framework,
426 const opflex::modb::URI& uri)
428 MO::remove(framework,
CLASS_ID, uri);
441 static void remove(
const opflex::modb::URI& uri)
443 remove(opflex::ofcore::OFFramework::defaultInstance(), uri);
465 opflex::ofcore::OFFramework& framework,
466 const std::string& gbpeRoutingDomainDropCounterUuid,
467 uint64_t gbpeRoutingDomainDropCounterGenId,
468 const std::string& gbpeRoutingDomainDropCounterRoutingDomain)
470 MO::remove(framework,
CLASS_ID, opflex::modb::URIBuilder().addElement(
"ObserverPolicyStatUniverse").addElement(
"GbpeRoutingDomainDropCounter").addElement(gbpeRoutingDomainDropCounterUuid).addElement(gbpeRoutingDomainDropCounterGenId).addElement(gbpeRoutingDomainDropCounterRoutingDomain).build());
492 const std::string& gbpeRoutingDomainDropCounterUuid,
493 uint64_t gbpeRoutingDomainDropCounterGenId,
494 const std::string& gbpeRoutingDomainDropCounterRoutingDomain)
496 remove(opflex::ofcore::OFFramework::defaultInstance(),gbpeRoutingDomainDropCounterUuid,gbpeRoutingDomainDropCounterGenId,gbpeRoutingDomainDropCounterRoutingDomain);
511 opflex::ofcore::OFFramework& framework,
512 opflex::modb::ObjectListener* listener)
514 opflex::modb::mointernal
515 ::MO::registerListener(framework, listener,
CLASS_ID);
530 opflex::modb::ObjectListener* listener)
542 opflex::ofcore::OFFramework& framework,
543 opflex::modb::ObjectListener* listener)
545 opflex::modb::mointernal
546 ::MO::unregisterListener(framework, listener,
CLASS_ID);
556 opflex::modb::ObjectListener* listener)
566 opflex::ofcore::OFFramework& framework,
567 const opflex::modb::URI& uri,
568 const OF_SHARED_PTR<const opflex::modb::mointernal::ObjectInstance>& oi)
569 : MO(framework,
CLASS_ID, uri, oi) { }
574 #endif // GI_GBPE_ROUTINGDOMAINDROPCOUNTER_HPP boost::optional< uint64_t > getBytes()
Get the value of bytes if it has been set.
Definition: RoutingDomainDropCounter.hpp:44
modelgbp::gbpe::RoutingDomainDropCounter & unsetUuid()
Unset uuid in the currently-active mutator.
Definition: RoutingDomainDropCounter.hpp:305
bool isRoutingDomainSet()
Check whether routingDomain has been set.
Definition: RoutingDomainDropCounter.hpp:203
boost::optional< const std::string & > getRoutingDomain()
Get the value of routingDomain if it has been set.
Definition: RoutingDomainDropCounter.hpp:212
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: RoutingDomainDropCounter.hpp:510
modelgbp::gbpe::RoutingDomainDropCounter & setBytes(uint64_t newValue)
Set bytes to the specified value in the currently-active mutator.
Definition: RoutingDomainDropCounter.hpp:69
modelgbp::gbpe::RoutingDomainDropCounter & unsetBytes()
Unset bytes in the currently-active mutator.
Definition: RoutingDomainDropCounter.hpp:81
boost::optional< uint64_t > getGenId()
Get the value of genId if it has been set.
Definition: RoutingDomainDropCounter.hpp:100
Definition: RoutingDomainDropCounter.hpp:21
static void unregisterListener(opflex::ofcore::OFFramework &framework, opflex::modb::ObjectListener *listener)
Unregister a listener from updates to this class.
Definition: RoutingDomainDropCounter.hpp:541
modelgbp::gbpe::RoutingDomainDropCounter & setUuid(const std::string &newValue)
Set uuid to the specified value in the currently-active mutator.
Definition: RoutingDomainDropCounter.hpp:293
const std::string & getUuid(const std::string &defaultValue)
Get the value of uuid if set, otherwise the value of default passed in.
Definition: RoutingDomainDropCounter.hpp:280
modelgbp::gbpe::RoutingDomainDropCounter & setRoutingDomain(const std::string &newValue)
Set routingDomain to the specified value in the currently-active mutator.
Definition: RoutingDomainDropCounter.hpp:237
static boost::optional< OF_SHARED_PTR< modelgbp::gbpe::RoutingDomainDropCounter > > resolve(const std::string &gbpeRoutingDomainDropCounterUuid, uint64_t gbpeRoutingDomainDropCounterGenId, const std::string &gbpeRoutingDomainDropCounterRoutingDomain)
Retrieve an instance of RoutingDomainDropCounter from the default managed object store by constructin...
Definition: RoutingDomainDropCounter.hpp:394
RoutingDomainDropCounter(opflex::ofcore::OFFramework &framework, const opflex::modb::URI &uri, const OF_SHARED_PTR< const opflex::modb::mointernal::ObjectInstance > &oi)
Construct an instance of RoutingDomainDropCounter.
Definition: RoutingDomainDropCounter.hpp:565
boost::optional< const std::string & > getUuid()
Get the value of uuid if it has been set.
Definition: RoutingDomainDropCounter.hpp:268
bool isGenIdSet()
Check whether genId has been set.
Definition: RoutingDomainDropCounter.hpp:91
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: RoutingDomainDropCounter.hpp:529
static boost::optional< OF_SHARED_PTR< modelgbp::gbpe::RoutingDomainDropCounter > > resolve(const opflex::modb::URI &uri)
Retrieve an instance of RoutingDomainDropCounter from the managed object store using the default fram...
Definition: RoutingDomainDropCounter.hpp:340
modelgbp::gbpe::RoutingDomainDropCounter & unsetRoutingDomain()
Unset routingDomain in the currently-active mutator.
Definition: RoutingDomainDropCounter.hpp:249
boost::optional< uint64_t > getPackets()
Get the value of packets if it has been set.
Definition: RoutingDomainDropCounter.hpp:156
bool isBytesSet()
Check whether bytes has been set.
Definition: RoutingDomainDropCounter.hpp:35
const std::string & getRoutingDomain(const std::string &defaultValue)
Get the value of routingDomain if set, otherwise the value of default passed in.
Definition: RoutingDomainDropCounter.hpp:224
static const opflex::modb::class_id_t CLASS_ID
The unique class ID for RoutingDomainDropCounter.
Definition: RoutingDomainDropCounter.hpp:29
uint64_t getGenId(uint64_t defaultValue)
Get the value of genId if set, otherwise the value of default passed in.
Definition: RoutingDomainDropCounter.hpp:112
bool isUuidSet()
Check whether uuid has been set.
Definition: RoutingDomainDropCounter.hpp:259
bool isPacketsSet()
Check whether packets has been set.
Definition: RoutingDomainDropCounter.hpp:147
modelgbp::gbpe::RoutingDomainDropCounter & setGenId(uint64_t newValue)
Set genId to the specified value in the currently-active mutator.
Definition: RoutingDomainDropCounter.hpp:125
uint64_t getPackets(uint64_t defaultValue)
Get the value of packets if set, otherwise the value of default passed in.
Definition: RoutingDomainDropCounter.hpp:168
uint64_t getBytes(uint64_t defaultValue)
Get the value of bytes if set, otherwise the value of default passed in.
Definition: RoutingDomainDropCounter.hpp:56
static void unregisterListener(opflex::modb::ObjectListener *listener)
Unregister a listener from updates to this class from the default framework instance.
Definition: RoutingDomainDropCounter.hpp:555
modelgbp::gbpe::RoutingDomainDropCounter & setPackets(uint64_t newValue)
Set packets to the specified value in the currently-active mutator.
Definition: RoutingDomainDropCounter.hpp:181
static boost::optional< OF_SHARED_PTR< modelgbp::gbpe::RoutingDomainDropCounter > > resolve(opflex::ofcore::OFFramework &framework, const std::string &gbpeRoutingDomainDropCounterUuid, uint64_t gbpeRoutingDomainDropCounterGenId, const std::string &gbpeRoutingDomainDropCounterRoutingDomain)
Retrieve an instance of RoutingDomainDropCounter from the managed object store by constructing its UR...
Definition: RoutingDomainDropCounter.hpp:366
static boost::optional< OF_SHARED_PTR< modelgbp::gbpe::RoutingDomainDropCounter > > resolve(opflex::ofcore::OFFramework &framework, const opflex::modb::URI &uri)
Retrieve an instance of RoutingDomainDropCounter from the managed object store.
Definition: RoutingDomainDropCounter.hpp:322
modelgbp::gbpe::RoutingDomainDropCounter & unsetPackets()
Unset packets in the currently-active mutator.
Definition: RoutingDomainDropCounter.hpp:193
modelgbp::gbpe::RoutingDomainDropCounter & unsetGenId()
Unset genId in the currently-active mutator.
Definition: RoutingDomainDropCounter.hpp:137
SOME COPYRIGHT.
Definition: OpcodeEnumT.hpp:12