11#ifndef GI_GBPE_SECGRPCLASSIFIERCOUNTER_HPP
12#define GI_GBPE_SECGRPCLASSIFIERCOUNTER_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 = 49;
37 return getObjectInstance().isSet(1605635ul, opflex::modb::PropertyInfo::STRING);
47 return getObjectInstance().getString(1605635ul);
71 getTLMutator().modify(getClassId(), getURI())->setString(1605635ul, newValue);
83 getTLMutator().modify(getClassId(), getURI())->unset(1605635ul, opflex::modb::PropertyInfo::STRING, opflex::modb::PropertyInfo::SCALAR);
93 return getObjectInstance().isSet(1605634ul, opflex::modb::PropertyInfo::U64);
103 return getObjectInstance().getUInt64(1605634ul);
114 return getGenId().get_value_or(defaultValue);
127 getTLMutator().modify(getClassId(), getURI())->setUInt64(1605634ul, newValue);
139 getTLMutator().modify(getClassId(), getURI())->unset(1605634ul, opflex::modb::PropertyInfo::U64, opflex::modb::PropertyInfo::SCALAR);
149 return getObjectInstance().isSet(1605637ul, opflex::modb::PropertyInfo::U64);
159 return getObjectInstance().getUInt64(1605637ul);
170 return getRxbytes().get_value_or(defaultValue);
183 getTLMutator().modify(getClassId(), getURI())->setUInt64(1605637ul, newValue);
195 getTLMutator().modify(getClassId(), getURI())->unset(1605637ul, opflex::modb::PropertyInfo::U64, opflex::modb::PropertyInfo::SCALAR);
205 return getObjectInstance().isSet(1605636ul, opflex::modb::PropertyInfo::U64);
215 return getObjectInstance().getUInt64(1605636ul);
239 getTLMutator().modify(getClassId(), getURI())->setUInt64(1605636ul, newValue);
251 getTLMutator().modify(getClassId(), getURI())->unset(1605636ul, opflex::modb::PropertyInfo::U64, opflex::modb::PropertyInfo::SCALAR);
261 return getObjectInstance().isSet(1605639ul, opflex::modb::PropertyInfo::U64);
271 return getObjectInstance().getUInt64(1605639ul);
282 return getTxbytes().get_value_or(defaultValue);
295 getTLMutator().modify(getClassId(), getURI())->setUInt64(1605639ul, newValue);
307 getTLMutator().modify(getClassId(), getURI())->unset(1605639ul, opflex::modb::PropertyInfo::U64, opflex::modb::PropertyInfo::SCALAR);
317 return getObjectInstance().isSet(1605638ul, opflex::modb::PropertyInfo::U64);
327 return getObjectInstance().getUInt64(1605638ul);
351 getTLMutator().modify(getClassId(), getURI())->setUInt64(1605638ul, newValue);
363 getTLMutator().modify(getClassId(), getURI())->unset(1605638ul, opflex::modb::PropertyInfo::U64, opflex::modb::PropertyInfo::SCALAR);
373 return getObjectInstance().isSet(1605633ul, opflex::modb::PropertyInfo::STRING);
383 return getObjectInstance().getString(1605633ul);
392 const std::string&
getUuid(
const std::string& defaultValue)
394 return getUuid().get_value_or(defaultValue);
407 getTLMutator().modify(getClassId(), getURI())->setString(1605633ul, newValue);
419 getTLMutator().modify(getClassId(), getURI())->unset(1605633ul, opflex::modb::PropertyInfo::STRING, opflex::modb::PropertyInfo::SCALAR);
434 static boost::optional<OF_SHARED_PTR<modelgbp::gbpe::SecGrpClassifierCounter> >
resolve(
435 opflex::ofcore::OFFramework& framework,
436 const opflex::modb::URI& uri)
438 return opflex::modb::mointernal::MO::resolve<modelgbp::gbpe::SecGrpClassifierCounter>(framework,
CLASS_ID, uri);
452 static boost::optional<OF_SHARED_PTR<modelgbp::gbpe::SecGrpClassifierCounter> >
resolve(
453 const opflex::modb::URI& uri)
455 return opflex::modb::mointernal::MO::resolve<modelgbp::gbpe::SecGrpClassifierCounter>(opflex::ofcore::OFFramework::defaultInstance(),
CLASS_ID, uri);
478 static boost::optional<OF_SHARED_PTR<modelgbp::gbpe::SecGrpClassifierCounter> >
resolve(
479 opflex::ofcore::OFFramework& framework,
480 const std::string& gbpeSecGrpClassifierCounterUuid,
481 uint64_t gbpeSecGrpClassifierCounterGenId,
482 const std::string& gbpeSecGrpClassifierCounterClassifier)
484 return resolve(framework,opflex::modb::URIBuilder().addElement(
"ObserverPolicyStatUniverse").addElement(
"GbpeSecGrpClassifierCounter").addElement(gbpeSecGrpClassifierCounterUuid).addElement(gbpeSecGrpClassifierCounterGenId).addElement(gbpeSecGrpClassifierCounterClassifier).build());
506 static boost::optional<OF_SHARED_PTR<modelgbp::gbpe::SecGrpClassifierCounter> >
resolve(
507 const std::string& gbpeSecGrpClassifierCounterUuid,
508 uint64_t gbpeSecGrpClassifierCounterGenId,
509 const std::string& gbpeSecGrpClassifierCounterClassifier)
511 return resolve(opflex::ofcore::OFFramework::defaultInstance(),gbpeSecGrpClassifierCounterUuid,gbpeSecGrpClassifierCounterGenId,gbpeSecGrpClassifierCounterClassifier);
524 getTLMutator().remove(
CLASS_ID, getURI());
537 static void remove(opflex::ofcore::OFFramework& framework,
538 const opflex::modb::URI& uri)
540 MO::remove(framework,
CLASS_ID, uri);
553 static void remove(
const opflex::modb::URI& uri)
555 remove(opflex::ofcore::OFFramework::defaultInstance(), uri);
577 opflex::ofcore::OFFramework& framework,
578 const std::string& gbpeSecGrpClassifierCounterUuid,
579 uint64_t gbpeSecGrpClassifierCounterGenId,
580 const std::string& gbpeSecGrpClassifierCounterClassifier)
582 MO::remove(framework,
CLASS_ID, opflex::modb::URIBuilder().addElement(
"ObserverPolicyStatUniverse").addElement(
"GbpeSecGrpClassifierCounter").addElement(gbpeSecGrpClassifierCounterUuid).addElement(gbpeSecGrpClassifierCounterGenId).addElement(gbpeSecGrpClassifierCounterClassifier).build());
604 const std::string& gbpeSecGrpClassifierCounterUuid,
605 uint64_t gbpeSecGrpClassifierCounterGenId,
606 const std::string& gbpeSecGrpClassifierCounterClassifier)
608 remove(opflex::ofcore::OFFramework::defaultInstance(),gbpeSecGrpClassifierCounterUuid,gbpeSecGrpClassifierCounterGenId,gbpeSecGrpClassifierCounterClassifier);
623 opflex::ofcore::OFFramework& framework,
624 opflex::modb::ObjectListener* listener)
626 opflex::modb::mointernal
627 ::MO::registerListener(framework, listener,
CLASS_ID);
642 opflex::modb::ObjectListener* listener)
654 opflex::ofcore::OFFramework& framework,
655 opflex::modb::ObjectListener* listener)
657 opflex::modb::mointernal
658 ::MO::unregisterListener(framework, listener,
CLASS_ID);
668 opflex::modb::ObjectListener* listener)
678 opflex::ofcore::OFFramework& framework,
679 const opflex::modb::URI& uri,
680 const OF_SHARED_PTR<const opflex::modb::mointernal::ObjectInstance>& oi)
681 : MO(framework,
CLASS_ID, uri, oi) { }
Definition SecGrpClassifierCounter.hpp:23
modelgbp::gbpe::SecGrpClassifierCounter & unsetGenId()
Unset genId in the currently-active mutator.
Definition SecGrpClassifierCounter.hpp:137
static boost::optional< OF_SHARED_PTR< modelgbp::gbpe::SecGrpClassifierCounter > > resolve(const opflex::modb::URI &uri)
Retrieve an instance of SecGrpClassifierCounter from the managed object store using the default frame...
Definition SecGrpClassifierCounter.hpp:452
static void unregisterListener(opflex::ofcore::OFFramework &framework, opflex::modb::ObjectListener *listener)
Unregister a listener from updates to this class.
Definition SecGrpClassifierCounter.hpp:653
bool isClassifierSet()
Check whether classifier has been set.
Definition SecGrpClassifierCounter.hpp:35
boost::optional< uint64_t > getGenId()
Get the value of genId if it has been set.
Definition SecGrpClassifierCounter.hpp:100
uint64_t getTxbytes(uint64_t defaultValue)
Get the value of txbytes if set, otherwise the value of default passed in.
Definition SecGrpClassifierCounter.hpp:280
static void remove(const opflex::modb::URI &uri)
Remove the SecGrpClassifierCounter object with the specified URI using the currently-active mutator a...
Definition SecGrpClassifierCounter.hpp:553
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 SecGrpClassifierCounter.hpp:622
modelgbp::gbpe::SecGrpClassifierCounter & unsetRxpackets()
Unset rxpackets in the currently-active mutator.
Definition SecGrpClassifierCounter.hpp:249
modelgbp::gbpe::SecGrpClassifierCounter & unsetTxpackets()
Unset txpackets in the currently-active mutator.
Definition SecGrpClassifierCounter.hpp:361
modelgbp::gbpe::SecGrpClassifierCounter & setGenId(uint64_t newValue)
Set genId to the specified value in the currently-active mutator.
Definition SecGrpClassifierCounter.hpp:125
static const opflex::modb::class_id_t CLASS_ID
The unique class ID for SecGrpClassifierCounter.
Definition SecGrpClassifierCounter.hpp:29
bool isRxpacketsSet()
Check whether rxpackets has been set.
Definition SecGrpClassifierCounter.hpp:203
boost::optional< const std::string & > getClassifier()
Get the value of classifier if it has been set.
Definition SecGrpClassifierCounter.hpp:44
uint64_t getGenId(uint64_t defaultValue)
Get the value of genId if set, otherwise the value of default passed in.
Definition SecGrpClassifierCounter.hpp:112
modelgbp::gbpe::SecGrpClassifierCounter & unsetClassifier()
Unset classifier in the currently-active mutator.
Definition SecGrpClassifierCounter.hpp:81
bool isUuidSet()
Check whether uuid has been set.
Definition SecGrpClassifierCounter.hpp:371
static void remove(const std::string &gbpeSecGrpClassifierCounterUuid, uint64_t gbpeSecGrpClassifierCounterGenId, const std::string &gbpeSecGrpClassifierCounterClassifier)
Remove the SecGrpClassifierCounter object with the specified path elements from the managed object st...
Definition SecGrpClassifierCounter.hpp:603
const std::string & getUuid(const std::string &defaultValue)
Get the value of uuid if set, otherwise the value of default passed in.
Definition SecGrpClassifierCounter.hpp:392
static void remove(opflex::ofcore::OFFramework &framework, const opflex::modb::URI &uri)
Remove the SecGrpClassifierCounter object with the specified URI using the currently-active mutator.
Definition SecGrpClassifierCounter.hpp:537
boost::optional< uint64_t > getRxpackets()
Get the value of rxpackets if it has been set.
Definition SecGrpClassifierCounter.hpp:212
void remove()
Remove this instance using the currently-active mutator.
Definition SecGrpClassifierCounter.hpp:522
static boost::optional< OF_SHARED_PTR< modelgbp::gbpe::SecGrpClassifierCounter > > resolve(const std::string &gbpeSecGrpClassifierCounterUuid, uint64_t gbpeSecGrpClassifierCounterGenId, const std::string &gbpeSecGrpClassifierCounterClassifier)
Retrieve an instance of SecGrpClassifierCounter from the default managed object store by constructing...
Definition SecGrpClassifierCounter.hpp:506
modelgbp::gbpe::SecGrpClassifierCounter & unsetRxbytes()
Unset rxbytes in the currently-active mutator.
Definition SecGrpClassifierCounter.hpp:193
static void remove(opflex::ofcore::OFFramework &framework, const std::string &gbpeSecGrpClassifierCounterUuid, uint64_t gbpeSecGrpClassifierCounterGenId, const std::string &gbpeSecGrpClassifierCounterClassifier)
Remove the SecGrpClassifierCounter object with the specified path elements from the managed object st...
Definition SecGrpClassifierCounter.hpp:576
bool isTxpacketsSet()
Check whether txpackets has been set.
Definition SecGrpClassifierCounter.hpp:315
bool isTxbytesSet()
Check whether txbytes has been set.
Definition SecGrpClassifierCounter.hpp:259
bool isRxbytesSet()
Check whether rxbytes has been set.
Definition SecGrpClassifierCounter.hpp:147
boost::optional< uint64_t > getTxpackets()
Get the value of txpackets if it has been set.
Definition SecGrpClassifierCounter.hpp:324
modelgbp::gbpe::SecGrpClassifierCounter & setTxbytes(uint64_t newValue)
Set txbytes to the specified value in the currently-active mutator.
Definition SecGrpClassifierCounter.hpp:293
boost::optional< uint64_t > getRxbytes()
Get the value of rxbytes if it has been set.
Definition SecGrpClassifierCounter.hpp:156
static boost::optional< OF_SHARED_PTR< modelgbp::gbpe::SecGrpClassifierCounter > > resolve(opflex::ofcore::OFFramework &framework, const std::string &gbpeSecGrpClassifierCounterUuid, uint64_t gbpeSecGrpClassifierCounterGenId, const std::string &gbpeSecGrpClassifierCounterClassifier)
Retrieve an instance of SecGrpClassifierCounter from the managed object store by constructing its URI...
Definition SecGrpClassifierCounter.hpp:478
modelgbp::gbpe::SecGrpClassifierCounter & setRxpackets(uint64_t newValue)
Set rxpackets to the specified value in the currently-active mutator.
Definition SecGrpClassifierCounter.hpp:237
boost::optional< uint64_t > getTxbytes()
Get the value of txbytes if it has been set.
Definition SecGrpClassifierCounter.hpp:268
modelgbp::gbpe::SecGrpClassifierCounter & setUuid(const std::string &newValue)
Set uuid to the specified value in the currently-active mutator.
Definition SecGrpClassifierCounter.hpp:405
modelgbp::gbpe::SecGrpClassifierCounter & setClassifier(const std::string &newValue)
Set classifier to the specified value in the currently-active mutator.
Definition SecGrpClassifierCounter.hpp:69
uint64_t getRxbytes(uint64_t defaultValue)
Get the value of rxbytes if set, otherwise the value of default passed in.
Definition SecGrpClassifierCounter.hpp:168
const std::string & getClassifier(const std::string &defaultValue)
Get the value of classifier if set, otherwise the value of default passed in.
Definition SecGrpClassifierCounter.hpp:56
modelgbp::gbpe::SecGrpClassifierCounter & unsetUuid()
Unset uuid in the currently-active mutator.
Definition SecGrpClassifierCounter.hpp:417
uint64_t getTxpackets(uint64_t defaultValue)
Get the value of txpackets if set, otherwise the value of default passed in.
Definition SecGrpClassifierCounter.hpp:336
SecGrpClassifierCounter(opflex::ofcore::OFFramework &framework, const opflex::modb::URI &uri, const OF_SHARED_PTR< const opflex::modb::mointernal::ObjectInstance > &oi)
Construct an instance of SecGrpClassifierCounter.
Definition SecGrpClassifierCounter.hpp:677
modelgbp::gbpe::SecGrpClassifierCounter & setTxpackets(uint64_t newValue)
Set txpackets to the specified value in the currently-active mutator.
Definition SecGrpClassifierCounter.hpp:349
modelgbp::gbpe::SecGrpClassifierCounter & unsetTxbytes()
Unset txbytes in the currently-active mutator.
Definition SecGrpClassifierCounter.hpp:305
boost::optional< const std::string & > getUuid()
Get the value of uuid if it has been set.
Definition SecGrpClassifierCounter.hpp:380
uint64_t getRxpackets(uint64_t defaultValue)
Get the value of rxpackets if set, otherwise the value of default passed in.
Definition SecGrpClassifierCounter.hpp:224
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 SecGrpClassifierCounter.hpp:641
modelgbp::gbpe::SecGrpClassifierCounter & setRxbytes(uint64_t newValue)
Set rxbytes to the specified value in the currently-active mutator.
Definition SecGrpClassifierCounter.hpp:181
static boost::optional< OF_SHARED_PTR< modelgbp::gbpe::SecGrpClassifierCounter > > resolve(opflex::ofcore::OFFramework &framework, const opflex::modb::URI &uri)
Retrieve an instance of SecGrpClassifierCounter from the managed object store.
Definition SecGrpClassifierCounter.hpp:434
static void unregisterListener(opflex::modb::ObjectListener *listener)
Unregister a listener from updates to this class from the default framework instance.
Definition SecGrpClassifierCounter.hpp:667
bool isGenIdSet()
Check whether genId has been set.
Definition SecGrpClassifierCounter.hpp:91
SOME COPYRIGHT.
Definition OpcodeEnumT.hpp:12