11 #ifndef GI_OBSERVER_POLICYSTATUNIVERSE_HPP 12 #define GI_OBSERVER_POLICYSTATUNIVERSE_HPP 14 #include <boost/optional.hpp> 15 #include "opflex/modb/URIBuilder.h" 16 #include "opflex/modb/mo-internal/MO.h" 20 #include "modelgbp/gbpe/L24ClassifierCounter.hpp" 24 #include "modelgbp/gbpe/SecGrpClassifierCounter.hpp" 28 #include "modelgbp/gbpe/RoutingDomainDropCounter.hpp" 34 :
public opflex::modb::mointernal::MO
41 static const opflex::modb::class_id_t
CLASS_ID = 213;
54 static boost::optional<OF_SHARED_PTR<modelgbp::observer::PolicyStatUniverse> >
resolve(
55 opflex::ofcore::OFFramework& framework,
56 const opflex::modb::URI& uri)
58 return opflex::modb::mointernal::MO::resolve<modelgbp::observer::PolicyStatUniverse>(framework,
CLASS_ID, uri);
72 static boost::optional<OF_SHARED_PTR<modelgbp::observer::PolicyStatUniverse> >
resolve(
73 const opflex::modb::URI& uri)
75 return opflex::modb::mointernal::MO::resolve<modelgbp::observer::PolicyStatUniverse>(opflex::ofcore::OFFramework::defaultInstance(),
CLASS_ID, uri);
92 static boost::optional<OF_SHARED_PTR<modelgbp::observer::PolicyStatUniverse> >
resolve(
93 opflex::ofcore::OFFramework& framework)
95 return resolve(framework,opflex::modb::URIBuilder().addElement(
"ObserverPolicyStatUniverse").build());
111 static boost::optional<OF_SHARED_PTR<modelgbp::observer::PolicyStatUniverse> >
resolve(
114 return resolve(opflex::ofcore::OFFramework::defaultInstance());
137 const std::string& gbpeL24ClassifierCounterUuid,
138 uint64_t gbpeL24ClassifierCounterGenId,
139 const std::string& gbpeL24ClassifierCounterSrcEpg,
140 const std::string& gbpeL24ClassifierCounterDstEpg,
141 const std::string& gbpeL24ClassifierCounterClassifier)
143 return modelgbp::gbpe::L24ClassifierCounter::resolve(getFramework(), opflex::modb::URIBuilder(getURI()).addElement(
"GbpeL24ClassifierCounter").addElement(gbpeL24ClassifierCounterUuid).addElement(gbpeL24ClassifierCounterGenId).addElement(gbpeL24ClassifierCounterSrcEpg).addElement(gbpeL24ClassifierCounterDstEpg).addElement(gbpeL24ClassifierCounterClassifier).build());
167 const std::string& gbpeL24ClassifierCounterUuid,
168 uint64_t gbpeL24ClassifierCounterGenId,
169 const std::string& gbpeL24ClassifierCounterSrcEpg,
170 const std::string& gbpeL24ClassifierCounterDstEpg,
171 const std::string& gbpeL24ClassifierCounterClassifier)
173 OF_SHARED_PTR<modelgbp::gbpe::L24ClassifierCounter> result = addChild<modelgbp::gbpe::L24ClassifierCounter>(
174 CLASS_ID, getURI(), 2154463280ul, 48,
175 opflex::modb::URIBuilder(getURI()).addElement(
"GbpeL24ClassifierCounter").addElement(gbpeL24ClassifierCounterUuid).addElement(gbpeL24ClassifierCounterGenId).addElement(gbpeL24ClassifierCounterSrcEpg).addElement(gbpeL24ClassifierCounterDstEpg).addElement(gbpeL24ClassifierCounterClassifier).build()
177 result->setUuid(gbpeL24ClassifierCounterUuid);
178 result->setGenId(gbpeL24ClassifierCounterGenId);
179 result->setSrcEpg(gbpeL24ClassifierCounterSrcEpg);
180 result->setDstEpg(gbpeL24ClassifierCounterDstEpg);
181 result->setClassifier(gbpeL24ClassifierCounterClassifier);
201 opflex::modb::mointernal::MO::resolveChildren<modelgbp::gbpe::L24ClassifierCounter>(
202 getFramework(),
CLASS_ID, getURI(), 2154463280ul, 48, out);
221 const std::string& gbpeSecGrpClassifierCounterUuid,
222 uint64_t gbpeSecGrpClassifierCounterGenId,
223 const std::string& gbpeSecGrpClassifierCounterClassifier)
225 return modelgbp::gbpe::SecGrpClassifierCounter::resolve(getFramework(), opflex::modb::URIBuilder(getURI()).addElement(
"GbpeSecGrpClassifierCounter").addElement(gbpeSecGrpClassifierCounterUuid).addElement(gbpeSecGrpClassifierCounterGenId).addElement(gbpeSecGrpClassifierCounterClassifier).build());
245 const std::string& gbpeSecGrpClassifierCounterUuid,
246 uint64_t gbpeSecGrpClassifierCounterGenId,
247 const std::string& gbpeSecGrpClassifierCounterClassifier)
249 OF_SHARED_PTR<modelgbp::gbpe::SecGrpClassifierCounter> result = addChild<modelgbp::gbpe::SecGrpClassifierCounter>(
250 CLASS_ID, getURI(), 2154463281ul, 49,
251 opflex::modb::URIBuilder(getURI()).addElement(
"GbpeSecGrpClassifierCounter").addElement(gbpeSecGrpClassifierCounterUuid).addElement(gbpeSecGrpClassifierCounterGenId).addElement(gbpeSecGrpClassifierCounterClassifier).build()
253 result->setUuid(gbpeSecGrpClassifierCounterUuid);
254 result->setGenId(gbpeSecGrpClassifierCounterGenId);
255 result->setClassifier(gbpeSecGrpClassifierCounterClassifier);
275 opflex::modb::mointernal::MO::resolveChildren<modelgbp::gbpe::SecGrpClassifierCounter>(
276 getFramework(),
CLASS_ID, getURI(), 2154463281ul, 49, out);
295 const std::string& gbpeRoutingDomainDropCounterUuid,
296 uint64_t gbpeRoutingDomainDropCounterGenId,
297 const std::string& gbpeRoutingDomainDropCounterRoutingDomain)
299 return modelgbp::gbpe::RoutingDomainDropCounter::resolve(getFramework(), opflex::modb::URIBuilder(getURI()).addElement(
"GbpeRoutingDomainDropCounter").addElement(gbpeRoutingDomainDropCounterUuid).addElement(gbpeRoutingDomainDropCounterGenId).addElement(gbpeRoutingDomainDropCounterRoutingDomain).build());
319 const std::string& gbpeRoutingDomainDropCounterUuid,
320 uint64_t gbpeRoutingDomainDropCounterGenId,
321 const std::string& gbpeRoutingDomainDropCounterRoutingDomain)
323 OF_SHARED_PTR<modelgbp::gbpe::RoutingDomainDropCounter> result = addChild<modelgbp::gbpe::RoutingDomainDropCounter>(
324 CLASS_ID, getURI(), 2154463282ul, 50,
325 opflex::modb::URIBuilder(getURI()).addElement(
"GbpeRoutingDomainDropCounter").addElement(gbpeRoutingDomainDropCounterUuid).addElement(gbpeRoutingDomainDropCounterGenId).addElement(gbpeRoutingDomainDropCounterRoutingDomain).build()
327 result->setUuid(gbpeRoutingDomainDropCounterUuid);
328 result->setGenId(gbpeRoutingDomainDropCounterGenId);
329 result->setRoutingDomain(gbpeRoutingDomainDropCounterRoutingDomain);
349 opflex::modb::mointernal::MO::resolveChildren<modelgbp::gbpe::RoutingDomainDropCounter>(
350 getFramework(),
CLASS_ID, getURI(), 2154463282ul, 50, out);
363 getTLMutator().remove(
CLASS_ID, getURI());
376 static void remove(opflex::ofcore::OFFramework& framework,
377 const opflex::modb::URI& uri)
379 MO::remove(framework,
CLASS_ID, uri);
392 static void remove(
const opflex::modb::URI& uri)
394 remove(opflex::ofcore::OFFramework::defaultInstance(), uri);
409 opflex::ofcore::OFFramework& framework,
410 opflex::modb::ObjectListener* listener)
412 opflex::modb::mointernal
413 ::MO::registerListener(framework, listener,
CLASS_ID);
428 opflex::modb::ObjectListener* listener)
440 opflex::ofcore::OFFramework& framework,
441 opflex::modb::ObjectListener* listener)
443 opflex::modb::mointernal
444 ::MO::unregisterListener(framework, listener,
CLASS_ID);
454 opflex::modb::ObjectListener* listener)
464 opflex::ofcore::OFFramework& framework,
465 const opflex::modb::URI& uri,
466 const OF_SHARED_PTR<const opflex::modb::mointernal::ObjectInstance>& oi)
467 : MO(framework,
CLASS_ID, uri, oi) { }
472 #endif // GI_OBSERVER_POLICYSTATUNIVERSE_HPP static void unregisterListener(opflex::ofcore::OFFramework &framework, opflex::modb::ObjectListener *listener)
Unregister a listener from updates to this class.
Definition: PolicyStatUniverse.hpp:439
OF_SHARED_PTR< modelgbp::gbpe::SecGrpClassifierCounter > addGbpeSecGrpClassifierCounter(const std::string &gbpeSecGrpClassifierCounterUuid, uint64_t gbpeSecGrpClassifierCounterGenId, const std::string &gbpeSecGrpClassifierCounterClassifier)
Create a new child object with the specified naming properties and make it a child of this object in ...
Definition: PolicyStatUniverse.hpp:244
static boost::optional< OF_SHARED_PTR< modelgbp::observer::PolicyStatUniverse > > resolve(opflex::ofcore::OFFramework &framework, const opflex::modb::URI &uri)
Retrieve an instance of PolicyStatUniverse from the managed object store.
Definition: PolicyStatUniverse.hpp:54
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
boost::optional< OF_SHARED_PTR< modelgbp::gbpe::SecGrpClassifierCounter > > resolveGbpeSecGrpClassifierCounter(const std::string &gbpeSecGrpClassifierCounterUuid, uint64_t gbpeSecGrpClassifierCounterGenId, const std::string &gbpeSecGrpClassifierCounterClassifier)
Retrieve the child object with the specified naming properties.
Definition: PolicyStatUniverse.hpp:220
OF_SHARED_PTR< modelgbp::gbpe::RoutingDomainDropCounter > addGbpeRoutingDomainDropCounter(const std::string &gbpeRoutingDomainDropCounterUuid, uint64_t gbpeRoutingDomainDropCounterGenId, const std::string &gbpeRoutingDomainDropCounterRoutingDomain)
Create a new child object with the specified naming properties and make it a child of this object in ...
Definition: PolicyStatUniverse.hpp:318
static boost::optional< OF_SHARED_PTR< modelgbp::observer::PolicyStatUniverse > > resolve(const opflex::modb::URI &uri)
Retrieve an instance of PolicyStatUniverse from the managed object store using the default framework ...
Definition: PolicyStatUniverse.hpp:72
OF_SHARED_PTR< modelgbp::gbpe::L24ClassifierCounter > addGbpeL24ClassifierCounter(const std::string &gbpeL24ClassifierCounterUuid, uint64_t gbpeL24ClassifierCounterGenId, const std::string &gbpeL24ClassifierCounterSrcEpg, const std::string &gbpeL24ClassifierCounterDstEpg, const std::string &gbpeL24ClassifierCounterClassifier)
Create a new child object with the specified naming properties and make it a child of this object in ...
Definition: PolicyStatUniverse.hpp:166
static const opflex::modb::class_id_t CLASS_ID
The unique class ID for PolicyStatUniverse.
Definition: PolicyStatUniverse.hpp:41
void resolveGbpeSecGrpClassifierCounter(std::vector< OF_SHARED_PTR< modelgbp::gbpe::SecGrpClassifierCounter > > &out)
Resolve and retrieve all of the immediate children of type modelgbp::gbpe::SecGrpClassifierCounter.
Definition: PolicyStatUniverse.hpp:273
static boost::optional< OF_SHARED_PTR< modelgbp::observer::PolicyStatUniverse > > resolve(opflex::ofcore::OFFramework &framework)
Retrieve an instance of PolicyStatUniverse from the managed object store by constructing its URI from...
Definition: PolicyStatUniverse.hpp:92
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: PolicyStatUniverse.hpp:408
PolicyStatUniverse(opflex::ofcore::OFFramework &framework, const opflex::modb::URI &uri, const OF_SHARED_PTR< const opflex::modb::mointernal::ObjectInstance > &oi)
Construct an instance of PolicyStatUniverse.
Definition: PolicyStatUniverse.hpp:463
static void unregisterListener(opflex::modb::ObjectListener *listener)
Unregister a listener from updates to this class from the default framework instance.
Definition: PolicyStatUniverse.hpp:453
static boost::optional< OF_SHARED_PTR< modelgbp::observer::PolicyStatUniverse > > resolve()
Retrieve an instance of PolicyStatUniverse from the default managed object store by constructing its ...
Definition: PolicyStatUniverse.hpp:111
boost::optional< OF_SHARED_PTR< modelgbp::gbpe::RoutingDomainDropCounter > > resolveGbpeRoutingDomainDropCounter(const std::string &gbpeRoutingDomainDropCounterUuid, uint64_t gbpeRoutingDomainDropCounterGenId, const std::string &gbpeRoutingDomainDropCounterRoutingDomain)
Retrieve the child object with the specified naming properties.
Definition: PolicyStatUniverse.hpp:294
void resolveGbpeRoutingDomainDropCounter(std::vector< OF_SHARED_PTR< modelgbp::gbpe::RoutingDomainDropCounter > > &out)
Resolve and retrieve all of the immediate children of type modelgbp::gbpe::RoutingDomainDropCounter.
Definition: PolicyStatUniverse.hpp:347
boost::optional< OF_SHARED_PTR< modelgbp::gbpe::L24ClassifierCounter > > resolveGbpeL24ClassifierCounter(const std::string &gbpeL24ClassifierCounterUuid, uint64_t gbpeL24ClassifierCounterGenId, const std::string &gbpeL24ClassifierCounterSrcEpg, const std::string &gbpeL24ClassifierCounterDstEpg, const std::string &gbpeL24ClassifierCounterClassifier)
Retrieve the child object with the specified naming properties.
Definition: PolicyStatUniverse.hpp:136
Definition: PolicyStatUniverse.hpp:33
void resolveGbpeL24ClassifierCounter(std::vector< OF_SHARED_PTR< modelgbp::gbpe::L24ClassifierCounter > > &out)
Resolve and retrieve all of the immediate children of type modelgbp::gbpe::L24ClassifierCounter.
Definition: PolicyStatUniverse.hpp:199
static boost::optional< OF_SHARED_PTR< modelgbp::gbpe::RoutingDomainDropCounter > > resolve(opflex::ofcore::OFFramework &framework, const opflex::modb::URI &uri)
Retrieve an instance of RoutingDomainDropCounter from the managed object store.
Definition: RoutingDomainDropCounter.hpp:322
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
SOME COPYRIGHT.
Definition: OpcodeEnumT.hpp:12
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: PolicyStatUniverse.hpp:427