11 #ifndef GI_OBSERVER_EPSTATUNIVERSE_HPP
12 #define GI_OBSERVER_EPSTATUNIVERSE_HPP
14 #include <boost/optional.hpp>
15 #include "opflex/modb/URIBuilder.h"
16 #include "opflex/modb/mo-internal/MO.h"
20 #include "modelgbp/gbpe/EpCounter.hpp"
24 #include "modelgbp/dfw/EpCounter.hpp"
30 :
public opflex::modb::mointernal::MO
37 static const opflex::modb::class_id_t
CLASS_ID = 168;
50 static boost::optional<boost::shared_ptr<modelgbp::observer::EpStatUniverse> >
resolve(
51 opflex::ofcore::OFFramework& framework,
52 const opflex::modb::URI& uri)
54 return opflex::modb::mointernal::MO::resolve<modelgbp::observer::EpStatUniverse>(framework,
CLASS_ID, uri);
68 static boost::optional<boost::shared_ptr<modelgbp::observer::EpStatUniverse> >
resolve(
69 const opflex::modb::URI& uri)
71 return opflex::modb::mointernal::MO::resolve<modelgbp::observer::EpStatUniverse>(opflex::ofcore::OFFramework::defaultInstance(),
CLASS_ID, uri);
88 static boost::optional<boost::shared_ptr<modelgbp::observer::EpStatUniverse> >
resolve(
89 opflex::ofcore::OFFramework& framework)
91 return resolve(framework,opflex::modb::URIBuilder().addElement(
"ObserverEpStatUniverse").build());
107 static boost::optional<boost::shared_ptr<modelgbp::observer::EpStatUniverse> >
resolve(
110 return resolve(opflex::ofcore::OFFramework::defaultInstance());
125 const std::string& gbpeEpCounterUuid)
143 const std::string& gbpeEpCounterUuid)
145 boost::shared_ptr<modelgbp::gbpe::EpCounter> result = addChild<modelgbp::gbpe::EpCounter>(
146 CLASS_ID, getURI(), 2152988704ul, 32,
147 opflex::modb::URIBuilder(getURI()).addElement(
"GbpeEpCounter").addElement(gbpeEpCounterUuid).build()
149 result->setUuid(gbpeEpCounterUuid);
169 opflex::modb::mointernal::MO::resolveChildren<modelgbp::gbpe::EpCounter>(
170 getFramework(),
CLASS_ID, getURI(), 2152988704ul, 32, out);
185 const std::string& dfwEpCounterUuid)
203 const std::string& dfwEpCounterUuid)
205 boost::shared_ptr<modelgbp::dfw::EpCounter> result = addChild<modelgbp::dfw::EpCounter>(
206 CLASS_ID, getURI(), 2152988713ul, 41,
207 opflex::modb::URIBuilder(getURI()).addElement(
"DfwEpCounter").addElement(dfwEpCounterUuid).build()
209 result->setUuid(dfwEpCounterUuid);
229 opflex::modb::mointernal::MO::resolveChildren<modelgbp::dfw::EpCounter>(
230 getFramework(),
CLASS_ID, getURI(), 2152988713ul, 41, out);
243 getTLMutator().remove(
CLASS_ID, getURI());
256 static void remove(opflex::ofcore::OFFramework& framework,
257 const opflex::modb::URI& uri)
259 MO::remove(framework,
CLASS_ID, uri);
272 static void remove(
const opflex::modb::URI& uri)
274 remove(opflex::ofcore::OFFramework::defaultInstance(), uri);
289 opflex::ofcore::OFFramework& framework,
290 opflex::modb::ObjectListener* listener)
292 opflex::modb::mointernal
293 ::MO::registerListener(framework, listener,
CLASS_ID);
308 opflex::modb::ObjectListener* listener)
320 opflex::ofcore::OFFramework& framework,
321 opflex::modb::ObjectListener* listener)
323 opflex::modb::mointernal
324 ::MO::unregisterListener(framework, listener,
CLASS_ID);
334 opflex::modb::ObjectListener* listener)
344 opflex::ofcore::OFFramework& framework,
345 const opflex::modb::URI& uri,
346 const boost::shared_ptr<const opflex::modb::mointernal::ObjectInstance>& oi)
347 : MO(framework,
CLASS_ID, uri, oi) { }
352 #endif // GI_OBSERVER_EPSTATUNIVERSE_HPP
EpStatUniverse(opflex::ofcore::OFFramework &framework, const opflex::modb::URI &uri, const boost::shared_ptr< const opflex::modb::mointernal::ObjectInstance > &oi)
Construct an instance of EpStatUniverse.
Definition: EpStatUniverse.hpp:343
static boost::optional< boost::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
void resolveGbpeEpCounter(std::vector< boost::shared_ptr< modelgbp::gbpe::EpCounter > > &out)
Resolve and retrieve all of the immediate children of type modelgbp::gbpe::EpCounter.
Definition: EpStatUniverse.hpp:167
void resolveDfwEpCounter(std::vector< boost::shared_ptr< modelgbp::dfw::EpCounter > > &out)
Resolve and retrieve all of the immediate children of type modelgbp::dfw::EpCounter.
Definition: EpStatUniverse.hpp:227
static boost::optional< boost::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
boost::shared_ptr< modelgbp::gbpe::EpCounter > addGbpeEpCounter(const std::string &gbpeEpCounterUuid)
Create a new child object with the specified naming properties and make it a child of this object in ...
Definition: EpStatUniverse.hpp:142
static boost::optional< boost::shared_ptr< modelgbp::observer::EpStatUniverse > > resolve(opflex::ofcore::OFFramework &framework)
Retrieve an instance of EpStatUniverse from the managed object store by constructing its URI from the...
Definition: EpStatUniverse.hpp:88
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: EpStatUniverse.hpp:288
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: EpStatUniverse.hpp:307
static boost::optional< boost::shared_ptr< modelgbp::observer::EpStatUniverse > > resolve()
Retrieve an instance of EpStatUniverse from the default managed object store by constructing its URI ...
Definition: EpStatUniverse.hpp:107
static void unregisterListener(opflex::modb::ObjectListener *listener)
Unregister a listener from updates to this class from the default framework instance.
Definition: EpStatUniverse.hpp:333
Definition: EpStatUniverse.hpp:29
static const opflex::modb::class_id_t CLASS_ID
The unique class ID for EpStatUniverse.
Definition: EpStatUniverse.hpp:37
boost::shared_ptr< modelgbp::dfw::EpCounter > addDfwEpCounter(const std::string &dfwEpCounterUuid)
Create a new child object with the specified naming properties and make it a child of this object in ...
Definition: EpStatUniverse.hpp:202
static void unregisterListener(opflex::ofcore::OFFramework &framework, opflex::modb::ObjectListener *listener)
Unregister a listener from updates to this class.
Definition: EpStatUniverse.hpp:319
boost::optional< boost::shared_ptr< modelgbp::gbpe::EpCounter > > resolveGbpeEpCounter(const std::string &gbpeEpCounterUuid)
Retrieve the child object with the specified naming properties.
Definition: EpStatUniverse.hpp:124
boost::optional< boost::shared_ptr< modelgbp::dfw::EpCounter > > resolveDfwEpCounter(const std::string &dfwEpCounterUuid)
Retrieve the child object with the specified naming properties.
Definition: EpStatUniverse.hpp:184
static boost::optional< boost::shared_ptr< modelgbp::observer::EpStatUniverse > > resolve(const opflex::modb::URI &uri)
Retrieve an instance of EpStatUniverse from the managed object store using the default framework inst...
Definition: EpStatUniverse.hpp:68
static boost::optional< boost::shared_ptr< modelgbp::observer::EpStatUniverse > > resolve(opflex::ofcore::OFFramework &framework, const opflex::modb::URI &uri)
Retrieve an instance of EpStatUniverse from the managed object store.
Definition: EpStatUniverse.hpp:50