11 #ifndef GI_GBPE_L24CLASSIFIERCOUNTER_HPP 12 #define GI_GBPE_L24CLASSIFIERCOUNTER_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 = 48;
37 return getObjectInstance().isSet(1572871ul, opflex::modb::PropertyInfo::U64);
47 return getObjectInstance().getUInt64(1572871ul);
58 return getBytes().get_value_or(defaultValue);
71 getTLMutator().modify(getClassId(), getURI())->setUInt64(1572871ul, newValue);
83 getTLMutator().modify(getClassId(), getURI())->unset(1572871ul, opflex::modb::PropertyInfo::U64, opflex::modb::PropertyInfo::SCALAR);
93 return getObjectInstance().isSet(1572869ul, opflex::modb::PropertyInfo::STRING);
103 return getObjectInstance().getString(1572869ul);
127 getTLMutator().modify(getClassId(), getURI())->setString(1572869ul, newValue);
139 getTLMutator().modify(getClassId(), getURI())->unset(1572869ul, opflex::modb::PropertyInfo::STRING, opflex::modb::PropertyInfo::SCALAR);
149 return getObjectInstance().isSet(1572868ul, opflex::modb::PropertyInfo::STRING);
159 return getObjectInstance().getString(1572868ul);
168 const std::string&
getDstEpg(
const std::string& defaultValue)
170 return getDstEpg().get_value_or(defaultValue);
183 getTLMutator().modify(getClassId(), getURI())->setString(1572868ul, newValue);
195 getTLMutator().modify(getClassId(), getURI())->unset(1572868ul, opflex::modb::PropertyInfo::STRING, opflex::modb::PropertyInfo::SCALAR);
205 return getObjectInstance().isSet(1572866ul, opflex::modb::PropertyInfo::U64);
215 return getObjectInstance().getUInt64(1572866ul);
226 return getGenId().get_value_or(defaultValue);
239 getTLMutator().modify(getClassId(), getURI())->setUInt64(1572866ul, newValue);
251 getTLMutator().modify(getClassId(), getURI())->unset(1572866ul, opflex::modb::PropertyInfo::U64, opflex::modb::PropertyInfo::SCALAR);
261 return getObjectInstance().isSet(1572870ul, opflex::modb::PropertyInfo::U64);
271 return getObjectInstance().getUInt64(1572870ul);
282 return getPackets().get_value_or(defaultValue);
295 getTLMutator().modify(getClassId(), getURI())->setUInt64(1572870ul, newValue);
307 getTLMutator().modify(getClassId(), getURI())->unset(1572870ul, opflex::modb::PropertyInfo::U64, opflex::modb::PropertyInfo::SCALAR);
317 return getObjectInstance().isSet(1572867ul, opflex::modb::PropertyInfo::STRING);
327 return getObjectInstance().getString(1572867ul);
336 const std::string&
getSrcEpg(
const std::string& defaultValue)
338 return getSrcEpg().get_value_or(defaultValue);
351 getTLMutator().modify(getClassId(), getURI())->setString(1572867ul, newValue);
363 getTLMutator().modify(getClassId(), getURI())->unset(1572867ul, opflex::modb::PropertyInfo::STRING, opflex::modb::PropertyInfo::SCALAR);
373 return getObjectInstance().isSet(1572865ul, opflex::modb::PropertyInfo::STRING);
383 return getObjectInstance().getString(1572865ul);
392 const std::string&
getUuid(
const std::string& defaultValue)
394 return getUuid().get_value_or(defaultValue);
407 getTLMutator().modify(getClassId(), getURI())->setString(1572865ul, newValue);
419 getTLMutator().modify(getClassId(), getURI())->unset(1572865ul, opflex::modb::PropertyInfo::STRING, opflex::modb::PropertyInfo::SCALAR);
434 static boost::optional<OF_SHARED_PTR<modelgbp::gbpe::L24ClassifierCounter> >
resolve(
435 opflex::ofcore::OFFramework& framework,
436 const opflex::modb::URI& uri)
438 return opflex::modb::mointernal::MO::resolve<modelgbp::gbpe::L24ClassifierCounter>(framework,
CLASS_ID, uri);
452 static boost::optional<OF_SHARED_PTR<modelgbp::gbpe::L24ClassifierCounter> >
resolve(
453 const opflex::modb::URI& uri)
455 return opflex::modb::mointernal::MO::resolve<modelgbp::gbpe::L24ClassifierCounter>(opflex::ofcore::OFFramework::defaultInstance(),
CLASS_ID, uri);
482 static boost::optional<OF_SHARED_PTR<modelgbp::gbpe::L24ClassifierCounter> >
resolve(
483 opflex::ofcore::OFFramework& framework,
484 const std::string& gbpeL24ClassifierCounterUuid,
485 uint64_t gbpeL24ClassifierCounterGenId,
486 const std::string& gbpeL24ClassifierCounterSrcEpg,
487 const std::string& gbpeL24ClassifierCounterDstEpg,
488 const std::string& gbpeL24ClassifierCounterClassifier)
490 return resolve(framework,opflex::modb::URIBuilder().addElement(
"ObserverPolicyStatUniverse").addElement(
"GbpeL24ClassifierCounter").addElement(gbpeL24ClassifierCounterUuid).addElement(gbpeL24ClassifierCounterGenId).addElement(gbpeL24ClassifierCounterSrcEpg).addElement(gbpeL24ClassifierCounterDstEpg).addElement(gbpeL24ClassifierCounterClassifier).build());
516 static boost::optional<OF_SHARED_PTR<modelgbp::gbpe::L24ClassifierCounter> >
resolve(
517 const std::string& gbpeL24ClassifierCounterUuid,
518 uint64_t gbpeL24ClassifierCounterGenId,
519 const std::string& gbpeL24ClassifierCounterSrcEpg,
520 const std::string& gbpeL24ClassifierCounterDstEpg,
521 const std::string& gbpeL24ClassifierCounterClassifier)
523 return resolve(opflex::ofcore::OFFramework::defaultInstance(),gbpeL24ClassifierCounterUuid,gbpeL24ClassifierCounterGenId,gbpeL24ClassifierCounterSrcEpg,gbpeL24ClassifierCounterDstEpg,gbpeL24ClassifierCounterClassifier);
536 getTLMutator().remove(
CLASS_ID, getURI());
549 static void remove(opflex::ofcore::OFFramework& framework,
550 const opflex::modb::URI& uri)
552 MO::remove(framework,
CLASS_ID, uri);
565 static void remove(
const opflex::modb::URI& uri)
567 remove(opflex::ofcore::OFFramework::defaultInstance(), uri);
593 opflex::ofcore::OFFramework& framework,
594 const std::string& gbpeL24ClassifierCounterUuid,
595 uint64_t gbpeL24ClassifierCounterGenId,
596 const std::string& gbpeL24ClassifierCounterSrcEpg,
597 const std::string& gbpeL24ClassifierCounterDstEpg,
598 const std::string& gbpeL24ClassifierCounterClassifier)
600 MO::remove(framework,
CLASS_ID, opflex::modb::URIBuilder().addElement(
"ObserverPolicyStatUniverse").addElement(
"GbpeL24ClassifierCounter").addElement(gbpeL24ClassifierCounterUuid).addElement(gbpeL24ClassifierCounterGenId).addElement(gbpeL24ClassifierCounterSrcEpg).addElement(gbpeL24ClassifierCounterDstEpg).addElement(gbpeL24ClassifierCounterClassifier).build());
626 const std::string& gbpeL24ClassifierCounterUuid,
627 uint64_t gbpeL24ClassifierCounterGenId,
628 const std::string& gbpeL24ClassifierCounterSrcEpg,
629 const std::string& gbpeL24ClassifierCounterDstEpg,
630 const std::string& gbpeL24ClassifierCounterClassifier)
632 remove(opflex::ofcore::OFFramework::defaultInstance(),gbpeL24ClassifierCounterUuid,gbpeL24ClassifierCounterGenId,gbpeL24ClassifierCounterSrcEpg,gbpeL24ClassifierCounterDstEpg,gbpeL24ClassifierCounterClassifier);
647 opflex::ofcore::OFFramework& framework,
648 opflex::modb::ObjectListener* listener)
650 opflex::modb::mointernal
651 ::MO::registerListener(framework, listener,
CLASS_ID);
666 opflex::modb::ObjectListener* listener)
678 opflex::ofcore::OFFramework& framework,
679 opflex::modb::ObjectListener* listener)
681 opflex::modb::mointernal
682 ::MO::unregisterListener(framework, listener,
CLASS_ID);
692 opflex::modb::ObjectListener* listener)
702 opflex::ofcore::OFFramework& framework,
703 const opflex::modb::URI& uri,
704 const OF_SHARED_PTR<const opflex::modb::mointernal::ObjectInstance>& oi)
705 : MO(framework,
CLASS_ID, uri, oi) { }
710 #endif // GI_GBPE_L24CLASSIFIERCOUNTER_HPP static boost::optional< OF_SHARED_PTR< modelgbp::gbpe::L24ClassifierCounter > > resolve(const std::string &gbpeL24ClassifierCounterUuid, uint64_t gbpeL24ClassifierCounterGenId, const std::string &gbpeL24ClassifierCounterSrcEpg, const std::string &gbpeL24ClassifierCounterDstEpg, const std::string &gbpeL24ClassifierCounterClassifier)
Retrieve an instance of L24ClassifierCounter from the default managed object store by constructing it...
Definition: L24ClassifierCounter.hpp:516
static const opflex::modb::class_id_t CLASS_ID
The unique class ID for L24ClassifierCounter.
Definition: L24ClassifierCounter.hpp:29
modelgbp::gbpe::L24ClassifierCounter & setPackets(uint64_t newValue)
Set packets to the specified value in the currently-active mutator.
Definition: L24ClassifierCounter.hpp:293
boost::optional< uint64_t > getGenId()
Get the value of genId if it has been set.
Definition: L24ClassifierCounter.hpp:212
bool isSrcEpgSet()
Check whether srcEpg has been set.
Definition: L24ClassifierCounter.hpp:315
modelgbp::gbpe::L24ClassifierCounter & unsetBytes()
Unset bytes in the currently-active mutator.
Definition: L24ClassifierCounter.hpp:81
modelgbp::gbpe::L24ClassifierCounter & setSrcEpg(const std::string &newValue)
Set srcEpg to the specified value in the currently-active mutator.
Definition: L24ClassifierCounter.hpp:349
static boost::optional< OF_SHARED_PTR< modelgbp::gbpe::L24ClassifierCounter > > resolve(const opflex::modb::URI &uri)
Retrieve an instance of L24ClassifierCounter from the managed object store using the default framewor...
Definition: L24ClassifierCounter.hpp:452
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: L24ClassifierCounter.hpp:646
uint64_t getPackets(uint64_t defaultValue)
Get the value of packets if set, otherwise the value of default passed in.
Definition: L24ClassifierCounter.hpp:280
bool isPacketsSet()
Check whether packets has been set.
Definition: L24ClassifierCounter.hpp:259
static void unregisterListener(opflex::modb::ObjectListener *listener)
Unregister a listener from updates to this class from the default framework instance.
Definition: L24ClassifierCounter.hpp:691
modelgbp::gbpe::L24ClassifierCounter & unsetSrcEpg()
Unset srcEpg in the currently-active mutator.
Definition: L24ClassifierCounter.hpp:361
modelgbp::gbpe::L24ClassifierCounter & unsetGenId()
Unset genId in the currently-active mutator.
Definition: L24ClassifierCounter.hpp:249
modelgbp::gbpe::L24ClassifierCounter & setDstEpg(const std::string &newValue)
Set dstEpg to the specified value in the currently-active mutator.
Definition: L24ClassifierCounter.hpp:181
boost::optional< const std::string & > getSrcEpg()
Get the value of srcEpg if it has been set.
Definition: L24ClassifierCounter.hpp:324
boost::optional< const std::string & > getDstEpg()
Get the value of dstEpg if it has been set.
Definition: L24ClassifierCounter.hpp:156
modelgbp::gbpe::L24ClassifierCounter & unsetClassifier()
Unset classifier in the currently-active mutator.
Definition: L24ClassifierCounter.hpp:137
modelgbp::gbpe::L24ClassifierCounter & setBytes(uint64_t newValue)
Set bytes to the specified value in the currently-active mutator.
Definition: L24ClassifierCounter.hpp:69
boost::optional< uint64_t > getPackets()
Get the value of packets if it has been set.
Definition: L24ClassifierCounter.hpp:268
modelgbp::gbpe::L24ClassifierCounter & setGenId(uint64_t newValue)
Set genId to the specified value in the currently-active mutator.
Definition: L24ClassifierCounter.hpp:237
bool isBytesSet()
Check whether bytes has been set.
Definition: L24ClassifierCounter.hpp:35
L24ClassifierCounter(opflex::ofcore::OFFramework &framework, const opflex::modb::URI &uri, const OF_SHARED_PTR< const opflex::modb::mointernal::ObjectInstance > &oi)
Construct an instance of L24ClassifierCounter.
Definition: L24ClassifierCounter.hpp:701
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: L24ClassifierCounter.hpp:665
uint64_t getBytes(uint64_t defaultValue)
Get the value of bytes if set, otherwise the value of default passed in.
Definition: L24ClassifierCounter.hpp:56
boost::optional< const std::string & > getClassifier()
Get the value of classifier if it has been set.
Definition: L24ClassifierCounter.hpp:100
boost::optional< const std::string & > getUuid()
Get the value of uuid if it has been set.
Definition: L24ClassifierCounter.hpp:380
bool isGenIdSet()
Check whether genId has been set.
Definition: L24ClassifierCounter.hpp:203
uint64_t getGenId(uint64_t defaultValue)
Get the value of genId if set, otherwise the value of default passed in.
Definition: L24ClassifierCounter.hpp:224
modelgbp::gbpe::L24ClassifierCounter & unsetPackets()
Unset packets in the currently-active mutator.
Definition: L24ClassifierCounter.hpp:305
const std::string & getSrcEpg(const std::string &defaultValue)
Get the value of srcEpg if set, otherwise the value of default passed in.
Definition: L24ClassifierCounter.hpp:336
modelgbp::gbpe::L24ClassifierCounter & setClassifier(const std::string &newValue)
Set classifier to the specified value in the currently-active mutator.
Definition: L24ClassifierCounter.hpp:125
boost::optional< uint64_t > getBytes()
Get the value of bytes if it has been set.
Definition: L24ClassifierCounter.hpp:44
bool isDstEpgSet()
Check whether dstEpg has been set.
Definition: L24ClassifierCounter.hpp:147
bool isClassifierSet()
Check whether classifier has been set.
Definition: L24ClassifierCounter.hpp:91
modelgbp::gbpe::L24ClassifierCounter & setUuid(const std::string &newValue)
Set uuid to the specified value in the currently-active mutator.
Definition: L24ClassifierCounter.hpp:405
static void unregisterListener(opflex::ofcore::OFFramework &framework, opflex::modb::ObjectListener *listener)
Unregister a listener from updates to this class.
Definition: L24ClassifierCounter.hpp:677
modelgbp::gbpe::L24ClassifierCounter & unsetDstEpg()
Unset dstEpg in the currently-active mutator.
Definition: L24ClassifierCounter.hpp:193
static boost::optional< OF_SHARED_PTR< modelgbp::gbpe::L24ClassifierCounter > > resolve(opflex::ofcore::OFFramework &framework, const opflex::modb::URI &uri)
Retrieve an instance of L24ClassifierCounter from the managed object store.
Definition: L24ClassifierCounter.hpp:434
const std::string & getClassifier(const std::string &defaultValue)
Get the value of classifier if set, otherwise the value of default passed in.
Definition: L24ClassifierCounter.hpp:112
modelgbp::gbpe::L24ClassifierCounter & unsetUuid()
Unset uuid in the currently-active mutator.
Definition: L24ClassifierCounter.hpp:417
const std::string & getUuid(const std::string &defaultValue)
Get the value of uuid if set, otherwise the value of default passed in.
Definition: L24ClassifierCounter.hpp:392
const std::string & getDstEpg(const std::string &defaultValue)
Get the value of dstEpg if set, otherwise the value of default passed in.
Definition: L24ClassifierCounter.hpp:168
static boost::optional< OF_SHARED_PTR< modelgbp::gbpe::L24ClassifierCounter > > resolve(opflex::ofcore::OFFramework &framework, const std::string &gbpeL24ClassifierCounterUuid, uint64_t gbpeL24ClassifierCounterGenId, const std::string &gbpeL24ClassifierCounterSrcEpg, const std::string &gbpeL24ClassifierCounterDstEpg, const std::string &gbpeL24ClassifierCounterClassifier)
Retrieve an instance of L24ClassifierCounter from the managed object store by constructing its URI fr...
Definition: L24ClassifierCounter.hpp:482
bool isUuidSet()
Check whether uuid has been set.
Definition: L24ClassifierCounter.hpp:371
SOME COPYRIGHT.
Definition: OpcodeEnumT.hpp:12
Definition: L24ClassifierCounter.hpp:21