11#ifndef GI_DFW_EPCOUNTER_HPP
12#define GI_DFW_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 = 55;
195 getTLMutator().modify(
getClassId(),
getURI())->unset(1802241ul, opflex::modb::PropertyInfo::STRING, opflex::modb::PropertyInfo::SCALAR);
210 static boost::optional<OF_SHARED_PTR<modelgbp::dfw::EpCounter> >
resolve(
212 const opflex::modb::URI&
uri)
214 return opflex::modb::mointernal::MO::resolve<modelgbp::dfw::EpCounter>(
framework,
CLASS_ID,
uri);
228 static boost::optional<OF_SHARED_PTR<modelgbp::dfw::EpCounter> >
resolve(
229 const opflex::modb::URI&
uri)
231 return opflex::modb::mointernal::MO::resolve<modelgbp::dfw::EpCounter>(opflex::ofcore::OFFramework::defaultInstance(),
CLASS_ID,
uri);
250 static boost::optional<OF_SHARED_PTR<modelgbp::dfw::EpCounter> >
resolve(
272 static boost::optional<OF_SHARED_PTR<modelgbp::dfw::EpCounter> >
resolve(
302 const opflex::modb::URI&
uri)
319 remove(opflex::ofcore::OFFramework::defaultInstance(),
uri);
376 opflex::modb::ObjectListener*
listener)
378 opflex::modb::mointernal
394 opflex::modb::ObjectListener*
listener)
407 opflex::modb::ObjectListener*
listener)
409 opflex::modb::mointernal
420 opflex::modb::ObjectListener*
listener)
431 const opflex::modb::URI&
uri,
Definition dfw/EpCounter.hpp:23
static void remove(const opflex::modb::URI &uri)
Remove the EpCounter object with the specified URI using the currently-active mutator and the default...
Definition dfw/EpCounter.hpp:317
bool isUuidSet()
Check whether uuid has been set.
Definition dfw/EpCounter.hpp:147
static boost::optional< OF_SHARED_PTR< modelgbp::dfw::EpCounter > > resolve(opflex::ofcore::OFFramework &framework, const std::string &dfwEpCounterUuid)
Retrieve an instance of EpCounter from the managed object store by constructing its URI from the path...
Definition dfw/EpCounter.hpp:250
static void unregisterListener(opflex::modb::ObjectListener *listener)
Unregister a listener from updates to this class from the default framework instance.
Definition dfw/EpCounter.hpp:419
modelgbp::dfw::EpCounter & setRxDrop(uint64_t newValue)
Set rxDrop to the specified value in the currently-active mutator.
Definition dfw/EpCounter.hpp:69
static void remove(opflex::ofcore::OFFramework &framework, const opflex::modb::URI &uri)
Remove the EpCounter object with the specified URI using the currently-active mutator.
Definition dfw/EpCounter.hpp:301
static boost::optional< OF_SHARED_PTR< modelgbp::dfw::EpCounter > > resolve(const opflex::modb::URI &uri)
Retrieve an instance of EpCounter from the managed object store using the default framework instance.
Definition dfw/EpCounter.hpp:228
modelgbp::dfw::EpCounter & setUuid(const std::string &newValue)
Set uuid to the specified value in the currently-active mutator.
Definition dfw/EpCounter.hpp:181
static const opflex::modb::class_id_t CLASS_ID
The unique class ID for EpCounter.
Definition dfw/EpCounter.hpp:29
static void unregisterListener(opflex::ofcore::OFFramework &framework, opflex::modb::ObjectListener *listener)
Unregister a listener from updates to this class.
Definition dfw/EpCounter.hpp:405
boost::optional< uint64_t > getRxDrop()
Get the value of rxDrop if it has been set.
Definition dfw/EpCounter.hpp:44
bool isRxDropSet()
Check whether rxDrop has been set.
Definition dfw/EpCounter.hpp:35
boost::optional< uint64_t > getTxDrop()
Get the value of txDrop if it has been set.
Definition dfw/EpCounter.hpp:100
static boost::optional< OF_SHARED_PTR< modelgbp::dfw::EpCounter > > resolve(const std::string &dfwEpCounterUuid)
Retrieve an instance of EpCounter from the default managed object store by constructing its URI from ...
Definition dfw/EpCounter.hpp:272
modelgbp::dfw::EpCounter & unsetUuid()
Unset uuid in the currently-active mutator.
Definition dfw/EpCounter.hpp:193
static boost::optional< OF_SHARED_PTR< modelgbp::dfw::EpCounter > > resolve(opflex::ofcore::OFFramework &framework, const opflex::modb::URI &uri)
Retrieve an instance of EpCounter from the managed object store.
Definition dfw/EpCounter.hpp:210
const std::string & getUuid(const std::string &defaultValue)
Get the value of uuid if set, otherwise the value of default passed in.
Definition dfw/EpCounter.hpp:168
uint64_t getRxDrop(uint64_t defaultValue)
Get the value of rxDrop if set, otherwise the value of default passed in.
Definition dfw/EpCounter.hpp:56
boost::optional< const std::string & > getUuid()
Get the value of uuid if it has been set.
Definition dfw/EpCounter.hpp:156
static void remove(const std::string &dfwEpCounterUuid)
Remove the EpCounter object with the specified path elements from the managed object store using the ...
Definition dfw/EpCounter.hpp:357
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 dfw/EpCounter.hpp:429
bool isTxDropSet()
Check whether txDrop has been set.
Definition dfw/EpCounter.hpp:91
static void remove(opflex::ofcore::OFFramework &framework, const std::string &dfwEpCounterUuid)
Remove the EpCounter object with the specified path elements from the managed object store.
Definition dfw/EpCounter.hpp:336
uint64_t getTxDrop(uint64_t defaultValue)
Get the value of txDrop if set, otherwise the value of default passed in.
Definition dfw/EpCounter.hpp:112
void remove()
Remove this instance using the currently-active mutator.
Definition dfw/EpCounter.hpp:286
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 dfw/EpCounter.hpp:374
modelgbp::dfw::EpCounter & setTxDrop(uint64_t newValue)
Set txDrop to the specified value in the currently-active mutator.
Definition dfw/EpCounter.hpp:125
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 dfw/EpCounter.hpp:393
modelgbp::dfw::EpCounter & unsetTxDrop()
Unset txDrop in the currently-active mutator.
Definition dfw/EpCounter.hpp:137
modelgbp::dfw::EpCounter & unsetRxDrop()
Unset rxDrop in the currently-active mutator.
Definition dfw/EpCounter.hpp:81
SOME COPYRIGHT.
Definition OpcodeEnumT.hpp:12