11 #ifndef GI_GBPE_EPCOUNTER_HPP 12 #define GI_GBPE_EPCOUNTER_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 = 43;
37 return getObjectInstance().isSet(1409032ul, opflex::modb::PropertyInfo::U64);
47 return getObjectInstance().getUInt64(1409032ul);
71 getTLMutator().modify(getClassId(), getURI())->setUInt64(1409032ul, newValue);
83 getTLMutator().modify(getClassId(), getURI())->unset(1409032ul, opflex::modb::PropertyInfo::U64, opflex::modb::PropertyInfo::SCALAR);
93 return getObjectInstance().isSet(1409036ul, opflex::modb::PropertyInfo::U64);
103 return getObjectInstance().getUInt64(1409036ul);
114 return getRxBytes().get_value_or(defaultValue);
127 getTLMutator().modify(getClassId(), getURI())->setUInt64(1409036ul, newValue);
139 getTLMutator().modify(getClassId(), getURI())->unset(1409036ul, opflex::modb::PropertyInfo::U64, opflex::modb::PropertyInfo::SCALAR);
149 return getObjectInstance().isSet(1409028ul, opflex::modb::PropertyInfo::U64);
159 return getObjectInstance().getUInt64(1409028ul);
170 return getRxDrop().get_value_or(defaultValue);
183 getTLMutator().modify(getClassId(), getURI())->setUInt64(1409028ul, newValue);
195 getTLMutator().modify(getClassId(), getURI())->unset(1409028ul, opflex::modb::PropertyInfo::U64, opflex::modb::PropertyInfo::SCALAR);
205 return getObjectInstance().isSet(1409030ul, opflex::modb::PropertyInfo::U64);
215 return getObjectInstance().getUInt64(1409030ul);
239 getTLMutator().modify(getClassId(), getURI())->setUInt64(1409030ul, newValue);
251 getTLMutator().modify(getClassId(), getURI())->unset(1409030ul, opflex::modb::PropertyInfo::U64, opflex::modb::PropertyInfo::SCALAR);
261 return getObjectInstance().isSet(1409026ul, opflex::modb::PropertyInfo::U64);
271 return getObjectInstance().getUInt64(1409026ul);
295 getTLMutator().modify(getClassId(), getURI())->setUInt64(1409026ul, newValue);
307 getTLMutator().modify(getClassId(), getURI())->unset(1409026ul, opflex::modb::PropertyInfo::U64, opflex::modb::PropertyInfo::SCALAR);
317 return getObjectInstance().isSet(1409034ul, opflex::modb::PropertyInfo::U64);
327 return getObjectInstance().getUInt64(1409034ul);
351 getTLMutator().modify(getClassId(), getURI())->setUInt64(1409034ul, newValue);
363 getTLMutator().modify(getClassId(), getURI())->unset(1409034ul, opflex::modb::PropertyInfo::U64, opflex::modb::PropertyInfo::SCALAR);
373 return getObjectInstance().isSet(1409033ul, opflex::modb::PropertyInfo::U64);
383 return getObjectInstance().getUInt64(1409033ul);
407 getTLMutator().modify(getClassId(), getURI())->setUInt64(1409033ul, newValue);
419 getTLMutator().modify(getClassId(), getURI())->unset(1409033ul, opflex::modb::PropertyInfo::U64, opflex::modb::PropertyInfo::SCALAR);
429 return getObjectInstance().isSet(1409037ul, opflex::modb::PropertyInfo::U64);
439 return getObjectInstance().getUInt64(1409037ul);
450 return getTxBytes().get_value_or(defaultValue);
463 getTLMutator().modify(getClassId(), getURI())->setUInt64(1409037ul, newValue);
475 getTLMutator().modify(getClassId(), getURI())->unset(1409037ul, opflex::modb::PropertyInfo::U64, opflex::modb::PropertyInfo::SCALAR);
485 return getObjectInstance().isSet(1409029ul, opflex::modb::PropertyInfo::U64);
495 return getObjectInstance().getUInt64(1409029ul);
506 return getTxDrop().get_value_or(defaultValue);
519 getTLMutator().modify(getClassId(), getURI())->setUInt64(1409029ul, newValue);
531 getTLMutator().modify(getClassId(), getURI())->unset(1409029ul, opflex::modb::PropertyInfo::U64, opflex::modb::PropertyInfo::SCALAR);
541 return getObjectInstance().isSet(1409031ul, opflex::modb::PropertyInfo::U64);
551 return getObjectInstance().getUInt64(1409031ul);
575 getTLMutator().modify(getClassId(), getURI())->setUInt64(1409031ul, newValue);
587 getTLMutator().modify(getClassId(), getURI())->unset(1409031ul, opflex::modb::PropertyInfo::U64, opflex::modb::PropertyInfo::SCALAR);
597 return getObjectInstance().isSet(1409027ul, opflex::modb::PropertyInfo::U64);
607 return getObjectInstance().getUInt64(1409027ul);
631 getTLMutator().modify(getClassId(), getURI())->setUInt64(1409027ul, newValue);
643 getTLMutator().modify(getClassId(), getURI())->unset(1409027ul, opflex::modb::PropertyInfo::U64, opflex::modb::PropertyInfo::SCALAR);
653 return getObjectInstance().isSet(1409035ul, opflex::modb::PropertyInfo::U64);
663 return getObjectInstance().getUInt64(1409035ul);
687 getTLMutator().modify(getClassId(), getURI())->setUInt64(1409035ul, newValue);
699 getTLMutator().modify(getClassId(), getURI())->unset(1409035ul, opflex::modb::PropertyInfo::U64, opflex::modb::PropertyInfo::SCALAR);
709 return getObjectInstance().isSet(1409025ul, opflex::modb::PropertyInfo::STRING);
719 return getObjectInstance().getString(1409025ul);
728 const std::string&
getUuid(
const std::string& defaultValue)
730 return getUuid().get_value_or(defaultValue);
743 getTLMutator().modify(getClassId(), getURI())->setString(1409025ul, newValue);
755 getTLMutator().modify(getClassId(), getURI())->unset(1409025ul, opflex::modb::PropertyInfo::STRING, opflex::modb::PropertyInfo::SCALAR);
770 static boost::optional<OF_SHARED_PTR<modelgbp::gbpe::EpCounter> >
resolve(
771 opflex::ofcore::OFFramework& framework,
772 const opflex::modb::URI& uri)
774 return opflex::modb::mointernal::MO::resolve<modelgbp::gbpe::EpCounter>(framework,
CLASS_ID, uri);
788 static boost::optional<OF_SHARED_PTR<modelgbp::gbpe::EpCounter> >
resolve(
789 const opflex::modb::URI& uri)
791 return opflex::modb::mointernal::MO::resolve<modelgbp::gbpe::EpCounter>(opflex::ofcore::OFFramework::defaultInstance(),
CLASS_ID, uri);
810 static boost::optional<OF_SHARED_PTR<modelgbp::gbpe::EpCounter> >
resolve(
811 opflex::ofcore::OFFramework& framework,
812 const std::string& gbpeEpCounterUuid)
814 return resolve(framework,opflex::modb::URIBuilder().addElement(
"ObserverEpStatUniverse").addElement(
"GbpeEpCounter").addElement(gbpeEpCounterUuid).build());
832 static boost::optional<OF_SHARED_PTR<modelgbp::gbpe::EpCounter> >
resolve(
833 const std::string& gbpeEpCounterUuid)
835 return resolve(opflex::ofcore::OFFramework::defaultInstance(),gbpeEpCounterUuid);
848 getTLMutator().remove(
CLASS_ID, getURI());
861 static void remove(opflex::ofcore::OFFramework& framework,
862 const opflex::modb::URI& uri)
864 MO::remove(framework,
CLASS_ID, uri);
877 static void remove(
const opflex::modb::URI& uri)
879 remove(opflex::ofcore::OFFramework::defaultInstance(), uri);
897 opflex::ofcore::OFFramework& framework,
898 const std::string& gbpeEpCounterUuid)
900 MO::remove(framework,
CLASS_ID, opflex::modb::URIBuilder().addElement(
"ObserverEpStatUniverse").addElement(
"GbpeEpCounter").addElement(gbpeEpCounterUuid).build());
918 const std::string& gbpeEpCounterUuid)
920 remove(opflex::ofcore::OFFramework::defaultInstance(),gbpeEpCounterUuid);
935 opflex::ofcore::OFFramework& framework,
936 opflex::modb::ObjectListener* listener)
938 opflex::modb::mointernal
939 ::MO::registerListener(framework, listener,
CLASS_ID);
954 opflex::modb::ObjectListener* listener)
966 opflex::ofcore::OFFramework& framework,
967 opflex::modb::ObjectListener* listener)
969 opflex::modb::mointernal
970 ::MO::unregisterListener(framework, listener,
CLASS_ID);
980 opflex::modb::ObjectListener* listener)
990 opflex::ofcore::OFFramework& framework,
991 const opflex::modb::URI& uri,
992 const OF_SHARED_PTR<const opflex::modb::mointernal::ObjectInstance>& oi)
993 : MO(framework,
CLASS_ID, uri, oi) { }
998 #endif // GI_GBPE_EPCOUNTER_HPP bool isTxUnicastSet()
Check whether txUnicast has been set.
Definition: gbpe/EpCounter.hpp:651
uint64_t getTxBytes(uint64_t defaultValue)
Get the value of txBytes if set, otherwise the value of default passed in.
Definition: gbpe/EpCounter.hpp:448
modelgbp::gbpe::EpCounter & setRxBytes(uint64_t newValue)
Set rxBytes to the specified value in the currently-active mutator.
Definition: gbpe/EpCounter.hpp:125
static boost::optional< OF_SHARED_PTR< modelgbp::gbpe::EpCounter > > resolve(opflex::ofcore::OFFramework &framework, const opflex::modb::URI &uri)
Retrieve an instance of EpCounter from the managed object store.
Definition: gbpe/EpCounter.hpp:770
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: gbpe/EpCounter.hpp:934
uint64_t getTxBroadcast(uint64_t defaultValue)
Get the value of txBroadcast if set, otherwise the value of default passed in.
Definition: gbpe/EpCounter.hpp:392
modelgbp::gbpe::EpCounter & unsetTxBytes()
Unset txBytes in the currently-active mutator.
Definition: gbpe/EpCounter.hpp:473
bool isRxDropSet()
Check whether rxDrop has been set.
Definition: gbpe/EpCounter.hpp:147
bool isTxMulticastSet()
Check whether txMulticast has been set.
Definition: gbpe/EpCounter.hpp:539
static void unregisterListener(opflex::modb::ObjectListener *listener)
Unregister a listener from updates to this class from the default framework instance.
Definition: gbpe/EpCounter.hpp:979
modelgbp::gbpe::EpCounter & setTxDrop(uint64_t newValue)
Set txDrop to the specified value in the currently-active mutator.
Definition: gbpe/EpCounter.hpp:517
static boost::optional< OF_SHARED_PTR< modelgbp::gbpe::EpCounter > > resolve(const opflex::modb::URI &uri)
Retrieve an instance of EpCounter from the managed object store using the default framework instance...
Definition: gbpe/EpCounter.hpp:788
modelgbp::gbpe::EpCounter & unsetRxMulticast()
Unset rxMulticast in the currently-active mutator.
Definition: gbpe/EpCounter.hpp:249
bool isTxBroadcastSet()
Check whether txBroadcast has been set.
Definition: gbpe/EpCounter.hpp:371
modelgbp::gbpe::EpCounter & setRxDrop(uint64_t newValue)
Set rxDrop to the specified value in the currently-active mutator.
Definition: gbpe/EpCounter.hpp:181
modelgbp::gbpe::EpCounter & unsetTxDrop()
Unset txDrop in the currently-active mutator.
Definition: gbpe/EpCounter.hpp:529
modelgbp::gbpe::EpCounter & unsetRxBytes()
Unset rxBytes in the currently-active mutator.
Definition: gbpe/EpCounter.hpp:137
modelgbp::gbpe::EpCounter & unsetRxPackets()
Unset rxPackets in the currently-active mutator.
Definition: gbpe/EpCounter.hpp:305
bool isRxBroadcastSet()
Check whether rxBroadcast has been set.
Definition: gbpe/EpCounter.hpp:35
EpCounter(opflex::ofcore::OFFramework &framework, const opflex::modb::URI &uri, const OF_SHARED_PTR< const opflex::modb::mointernal::ObjectInstance > &oi)
Construct an instance of EpCounter.
Definition: gbpe/EpCounter.hpp:989
modelgbp::gbpe::EpCounter & unsetTxUnicast()
Unset txUnicast in the currently-active mutator.
Definition: gbpe/EpCounter.hpp:697
uint64_t getRxBroadcast(uint64_t defaultValue)
Get the value of rxBroadcast if set, otherwise the value of default passed in.
Definition: gbpe/EpCounter.hpp:56
boost::optional< uint64_t > getTxPackets()
Get the value of txPackets if it has been set.
Definition: gbpe/EpCounter.hpp:604
static boost::optional< OF_SHARED_PTR< modelgbp::gbpe::EpCounter > > resolve(const std::string &gbpeEpCounterUuid)
Retrieve an instance of EpCounter from the default managed object store by constructing its URI from ...
Definition: gbpe/EpCounter.hpp:832
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: gbpe/EpCounter.hpp:953
modelgbp::gbpe::EpCounter & setRxMulticast(uint64_t newValue)
Set rxMulticast to the specified value in the currently-active mutator.
Definition: gbpe/EpCounter.hpp:237
boost::optional< uint64_t > getRxDrop()
Get the value of rxDrop if it has been set.
Definition: gbpe/EpCounter.hpp:156
boost::optional< uint64_t > getTxUnicast()
Get the value of txUnicast if it has been set.
Definition: gbpe/EpCounter.hpp:660
modelgbp::gbpe::EpCounter & setTxBroadcast(uint64_t newValue)
Set txBroadcast to the specified value in the currently-active mutator.
Definition: gbpe/EpCounter.hpp:405
modelgbp::gbpe::EpCounter & setRxBroadcast(uint64_t newValue)
Set rxBroadcast to the specified value in the currently-active mutator.
Definition: gbpe/EpCounter.hpp:69
uint64_t getTxMulticast(uint64_t defaultValue)
Get the value of txMulticast if set, otherwise the value of default passed in.
Definition: gbpe/EpCounter.hpp:560
modelgbp::gbpe::EpCounter & setTxPackets(uint64_t newValue)
Set txPackets to the specified value in the currently-active mutator.
Definition: gbpe/EpCounter.hpp:629
boost::optional< uint64_t > getRxMulticast()
Get the value of rxMulticast if it has been set.
Definition: gbpe/EpCounter.hpp:212
boost::optional< uint64_t > getRxPackets()
Get the value of rxPackets if it has been set.
Definition: gbpe/EpCounter.hpp:268
bool isUuidSet()
Check whether uuid has been set.
Definition: gbpe/EpCounter.hpp:707
modelgbp::gbpe::EpCounter & setTxBytes(uint64_t newValue)
Set txBytes to the specified value in the currently-active mutator.
Definition: gbpe/EpCounter.hpp:461
boost::optional< uint64_t > getTxMulticast()
Get the value of txMulticast if it has been set.
Definition: gbpe/EpCounter.hpp:548
uint64_t getRxMulticast(uint64_t defaultValue)
Get the value of rxMulticast if set, otherwise the value of default passed in.
Definition: gbpe/EpCounter.hpp:224
Definition: gbpe/EpCounter.hpp:21
modelgbp::gbpe::EpCounter & unsetTxBroadcast()
Unset txBroadcast in the currently-active mutator.
Definition: gbpe/EpCounter.hpp:417
uint64_t getRxPackets(uint64_t defaultValue)
Get the value of rxPackets if set, otherwise the value of default passed in.
Definition: gbpe/EpCounter.hpp:280
uint64_t getRxBytes(uint64_t defaultValue)
Get the value of rxBytes if set, otherwise the value of default passed in.
Definition: gbpe/EpCounter.hpp:112
boost::optional< uint64_t > getTxDrop()
Get the value of txDrop if it has been set.
Definition: gbpe/EpCounter.hpp:492
static boost::optional< OF_SHARED_PTR< modelgbp::gbpe::EpCounter > > resolve(opflex::ofcore::OFFramework &framework, const std::string &gbpeEpCounterUuid)
Retrieve an instance of EpCounter from the managed object store by constructing its URI from the path...
Definition: gbpe/EpCounter.hpp:810
boost::optional< uint64_t > getTxBytes()
Get the value of txBytes if it has been set.
Definition: gbpe/EpCounter.hpp:436
modelgbp::gbpe::EpCounter & setRxUnicast(uint64_t newValue)
Set rxUnicast to the specified value in the currently-active mutator.
Definition: gbpe/EpCounter.hpp:349
static void unregisterListener(opflex::ofcore::OFFramework &framework, opflex::modb::ObjectListener *listener)
Unregister a listener from updates to this class.
Definition: gbpe/EpCounter.hpp:965
static const opflex::modb::class_id_t CLASS_ID
The unique class ID for EpCounter.
Definition: gbpe/EpCounter.hpp:29
bool isTxPacketsSet()
Check whether txPackets has been set.
Definition: gbpe/EpCounter.hpp:595
modelgbp::gbpe::EpCounter & unsetRxDrop()
Unset rxDrop in the currently-active mutator.
Definition: gbpe/EpCounter.hpp:193
uint64_t getRxDrop(uint64_t defaultValue)
Get the value of rxDrop if set, otherwise the value of default passed in.
Definition: gbpe/EpCounter.hpp:168
bool isRxBytesSet()
Check whether rxBytes has been set.
Definition: gbpe/EpCounter.hpp:91
boost::optional< uint64_t > getTxBroadcast()
Get the value of txBroadcast if it has been set.
Definition: gbpe/EpCounter.hpp:380
boost::optional< const std::string & > getUuid()
Get the value of uuid if it has been set.
Definition: gbpe/EpCounter.hpp:716
modelgbp::gbpe::EpCounter & setUuid(const std::string &newValue)
Set uuid to the specified value in the currently-active mutator.
Definition: gbpe/EpCounter.hpp:741
uint64_t getTxPackets(uint64_t defaultValue)
Get the value of txPackets if set, otherwise the value of default passed in.
Definition: gbpe/EpCounter.hpp:616
modelgbp::gbpe::EpCounter & unsetUuid()
Unset uuid in the currently-active mutator.
Definition: gbpe/EpCounter.hpp:753
bool isTxBytesSet()
Check whether txBytes has been set.
Definition: gbpe/EpCounter.hpp:427
bool isRxUnicastSet()
Check whether rxUnicast has been set.
Definition: gbpe/EpCounter.hpp:315
uint64_t getRxUnicast(uint64_t defaultValue)
Get the value of rxUnicast if set, otherwise the value of default passed in.
Definition: gbpe/EpCounter.hpp:336
modelgbp::gbpe::EpCounter & setTxMulticast(uint64_t newValue)
Set txMulticast to the specified value in the currently-active mutator.
Definition: gbpe/EpCounter.hpp:573
modelgbp::gbpe::EpCounter & setRxPackets(uint64_t newValue)
Set rxPackets to the specified value in the currently-active mutator.
Definition: gbpe/EpCounter.hpp:293
modelgbp::gbpe::EpCounter & unsetTxMulticast()
Unset txMulticast in the currently-active mutator.
Definition: gbpe/EpCounter.hpp:585
modelgbp::gbpe::EpCounter & setTxUnicast(uint64_t newValue)
Set txUnicast to the specified value in the currently-active mutator.
Definition: gbpe/EpCounter.hpp:685
boost::optional< uint64_t > getRxBroadcast()
Get the value of rxBroadcast if it has been set.
Definition: gbpe/EpCounter.hpp:44
bool isRxPacketsSet()
Check whether rxPackets has been set.
Definition: gbpe/EpCounter.hpp:259
boost::optional< uint64_t > getRxUnicast()
Get the value of rxUnicast if it has been set.
Definition: gbpe/EpCounter.hpp:324
bool isRxMulticastSet()
Check whether rxMulticast has been set.
Definition: gbpe/EpCounter.hpp:203
uint64_t getTxDrop(uint64_t defaultValue)
Get the value of txDrop if set, otherwise the value of default passed in.
Definition: gbpe/EpCounter.hpp:504
const std::string & getUuid(const std::string &defaultValue)
Get the value of uuid if set, otherwise the value of default passed in.
Definition: gbpe/EpCounter.hpp:728
modelgbp::gbpe::EpCounter & unsetTxPackets()
Unset txPackets in the currently-active mutator.
Definition: gbpe/EpCounter.hpp:641
modelgbp::gbpe::EpCounter & unsetRxUnicast()
Unset rxUnicast in the currently-active mutator.
Definition: gbpe/EpCounter.hpp:361
uint64_t getTxUnicast(uint64_t defaultValue)
Get the value of txUnicast if set, otherwise the value of default passed in.
Definition: gbpe/EpCounter.hpp:672
bool isTxDropSet()
Check whether txDrop has been set.
Definition: gbpe/EpCounter.hpp:483
modelgbp::gbpe::EpCounter & unsetRxBroadcast()
Unset rxBroadcast in the currently-active mutator.
Definition: gbpe/EpCounter.hpp:81
SOME COPYRIGHT.
Definition: OpcodeEnumT.hpp:12
boost::optional< uint64_t > getRxBytes()
Get the value of rxBytes if it has been set.
Definition: gbpe/EpCounter.hpp:100