modelgbp Generated OpFlex Model 1.7.0
PolicyStatUniverse.hpp
1
10#pragma once
11#ifndef GI_OBSERVER_POLICYSTATUNIVERSE_HPP
12#define GI_OBSERVER_POLICYSTATUNIVERSE_HPP
13
14#include <boost/optional.hpp>
15#include "opflex/modb/URIBuilder.h"
16#include "opflex/modb/mo-internal/MO.h"
17/*
18 * contains: item:mclass(gbpe/L24ClassifierCounter)
19 */
20#include "modelgbp/gbpe/L24ClassifierCounter.hpp"
21/*
22 * contains: item:mclass(gbpe/SecGrpClassifierCounter)
23 */
24#include "modelgbp/gbpe/SecGrpClassifierCounter.hpp"
25/*
26 * contains: item:mclass(gbpe/RoutingDomainDropCounter)
27 */
28#include "modelgbp/gbpe/RoutingDomainDropCounter.hpp"
29
30namespace modelgbp {
31namespace observer {
32
34 : public opflex::modb::mointernal::MO
35{
36public:
37
41 static const opflex::modb::class_id_t CLASS_ID = 213;
42
54 static boost::optional<OF_SHARED_PTR<modelgbp::observer::PolicyStatUniverse> > resolve(
55 opflex::ofcore::OFFramework& framework,
56 const opflex::modb::URI& uri)
57 {
58 return opflex::modb::mointernal::MO::resolve<modelgbp::observer::PolicyStatUniverse>(framework, CLASS_ID, uri);
59 }
60
72 static boost::optional<OF_SHARED_PTR<modelgbp::observer::PolicyStatUniverse> > resolve(
73 const opflex::modb::URI& uri)
74 {
75 return opflex::modb::mointernal::MO::resolve<modelgbp::observer::PolicyStatUniverse>(opflex::ofcore::OFFramework::defaultInstance(), CLASS_ID, uri);
76 }
77
92 static boost::optional<OF_SHARED_PTR<modelgbp::observer::PolicyStatUniverse> > resolve(
93 opflex::ofcore::OFFramework& framework)
94 {
95 return resolve(framework,opflex::modb::URIBuilder().addElement("ObserverPolicyStatUniverse").build());
96 }
97
111 static boost::optional<OF_SHARED_PTR<modelgbp::observer::PolicyStatUniverse> > resolve(
112 )
113 {
114 return resolve(opflex::ofcore::OFFramework::defaultInstance());
115 }
116
145
184
200 {
201 opflex::modb::mointernal::MO::resolveChildren<modelgbp::gbpe::L24ClassifierCounter>(
202 getFramework(), CLASS_ID, getURI(), 2154463280ul, 48, out);
203 }
204
227
258
274 {
275 opflex::modb::mointernal::MO::resolveChildren<modelgbp::gbpe::SecGrpClassifierCounter>(
276 getFramework(), CLASS_ID, getURI(), 2154463281ul, 49, out);
277 }
278
301
332
348 {
349 opflex::modb::mointernal::MO::resolveChildren<modelgbp::gbpe::RoutingDomainDropCounter>(
350 getFramework(), CLASS_ID, getURI(), 2154463282ul, 50, out);
351 }
352
361 void remove()
362 {
363 getTLMutator().remove(CLASS_ID, getURI());
364 }
365
376 static void remove(opflex::ofcore::OFFramework& framework,
377 const opflex::modb::URI& uri)
378 {
379 MO::remove(framework, CLASS_ID, uri);
380 }
381
392 static void remove(const opflex::modb::URI& uri)
393 {
394 remove(opflex::ofcore::OFFramework::defaultInstance(), uri);
395 }
396
408 static void registerListener(
409 opflex::ofcore::OFFramework& framework,
410 opflex::modb::ObjectListener* listener)
411 {
412 opflex::modb::mointernal
413 ::MO::registerListener(framework, listener, CLASS_ID);
414 }
415
427 static void registerListener(
428 opflex::modb::ObjectListener* listener)
429 {
430 registerListener(opflex::ofcore::OFFramework::defaultInstance(), listener);
431 }
432
440 opflex::ofcore::OFFramework& framework,
441 opflex::modb::ObjectListener* listener)
442 {
443 opflex::modb::mointernal
444 ::MO::unregisterListener(framework, listener, CLASS_ID);
445 }
446
454 opflex::modb::ObjectListener* listener)
455 {
456 unregisterListener(opflex::ofcore::OFFramework::defaultInstance(), listener);
457 }
458
464 opflex::ofcore::OFFramework& framework,
465 const opflex::modb::URI& uri,
467 : MO(framework, CLASS_ID, uri, oi) { }
468}; // class PolicyStatUniverse
469
470} // namespace observer
471} // namespace modelgbp
472#endif // GI_OBSERVER_POLICYSTATUNIVERSE_HPP
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
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::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
Definition PolicyStatUniverse.hpp:35
static void unregisterListener(opflex::modb::ObjectListener *listener)
Unregister a listener from updates to this class from the default framework instance.
Definition PolicyStatUniverse.hpp:453
void remove()
Remove this instance using the currently-active mutator.
Definition PolicyStatUniverse.hpp:361
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
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
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
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
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
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
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
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
static void remove(opflex::ofcore::OFFramework &framework, const opflex::modb::URI &uri)
Remove the PolicyStatUniverse object with the specified URI using the currently-active mutator.
Definition PolicyStatUniverse.hpp:376
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 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
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(const opflex::modb::URI &uri)
Retrieve an instance of PolicyStatUniverse from the managed object store using the default framework ...
Definition PolicyStatUniverse.hpp:72
static void remove(const opflex::modb::URI &uri)
Remove the PolicyStatUniverse object with the specified URI using the currently-active mutator and th...
Definition PolicyStatUniverse.hpp:392
static const opflex::modb::class_id_t CLASS_ID
The unique class ID for PolicyStatUniverse.
Definition PolicyStatUniverse.hpp:41
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 void unregisterListener(opflex::ofcore::OFFramework &framework, opflex::modb::ObjectListener *listener)
Unregister a listener from updates to this class.
Definition PolicyStatUniverse.hpp:439
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
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 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
SOME COPYRIGHT.
Definition OpcodeEnumT.hpp:12