11 #ifndef GI_DMTREE_ROOT_HPP
12 #define GI_DMTREE_ROOT_HPP
14 #include <boost/optional.hpp>
15 #include "opflex/modb/URIBuilder.h"
16 #include "opflex/modb/mo-internal/MO.h"
20 #include "modelgbp/relator/Universe.hpp"
24 #include "modelgbp/gbpe/VMUniverse.hpp"
28 #include "modelgbp/gbpe/TunnelEpUniverse.hpp"
32 #include "modelgbp/domain/Config.hpp"
36 #include "modelgbp/dci/Universe.hpp"
40 #include "modelgbp/dci/Discoverer.hpp"
44 #include "modelgbp/epdr/L2Discovered.hpp"
48 #include "modelgbp/epdr/L3Discovered.hpp"
52 #include "modelgbp/inv/Universe.hpp"
56 #include "modelgbp/epr/L2Universe.hpp"
60 #include "modelgbp/epr/L3Universe.hpp"
64 #include "modelgbp/observer/EpStatUniverse.hpp"
68 #include "modelgbp/observer/PolicyStatUniverse.hpp"
72 #include "modelgbp/policy/Universe.hpp"
78 :
public opflex::modb::mointernal::MO
85 static const opflex::modb::class_id_t
CLASS_ID = 1;
96 static OF_SHARED_PTR<modelgbp::dmtree::Root>
createRootElement(opflex::ofcore::OFFramework& framework)
98 return opflex::modb::mointernal::MO::createRootElement<modelgbp::dmtree::Root>(framework,
CLASS_ID);
125 static boost::optional<OF_SHARED_PTR<modelgbp::dmtree::Root> >
resolve(
126 opflex::ofcore::OFFramework& framework,
127 const opflex::modb::URI& uri)
129 return opflex::modb::mointernal::MO::resolve<modelgbp::dmtree::Root>(framework,
CLASS_ID, uri);
143 static boost::optional<OF_SHARED_PTR<modelgbp::dmtree::Root> >
resolve(
144 const opflex::modb::URI& uri)
146 return opflex::modb::mointernal::MO::resolve<modelgbp::dmtree::Root>(opflex::ofcore::OFFramework::defaultInstance(),
CLASS_ID, uri);
177 OF_SHARED_PTR<modelgbp::relator::Universe> result = addChild<modelgbp::relator::Universe>(
178 CLASS_ID, getURI(), 2147516423ul, 7,
179 opflex::modb::URIBuilder(getURI()).addElement(
"RelatorUniverse").build()
212 OF_SHARED_PTR<modelgbp::gbpe::VMUniverse> result = addChild<modelgbp::gbpe::VMUniverse>(
213 CLASS_ID, getURI(), 2147516450ul, 34,
214 opflex::modb::URIBuilder(getURI()).addElement(
"GbpeVMUniverse").build()
247 OF_SHARED_PTR<modelgbp::gbpe::TunnelEpUniverse> result = addChild<modelgbp::gbpe::TunnelEpUniverse>(
248 CLASS_ID, getURI(), 2147516460ul, 44,
249 opflex::modb::URIBuilder(getURI()).addElement(
"GbpeTunnelEpUniverse").build()
282 OF_SHARED_PTR<modelgbp::domain::Config> result = addChild<modelgbp::domain::Config>(
283 CLASS_ID, getURI(), 2147516472ul, 56,
284 opflex::modb::URIBuilder(getURI()).addElement(
"DomainConfig").build()
317 OF_SHARED_PTR<modelgbp::dci::Universe> result = addChild<modelgbp::dci::Universe>(
318 CLASS_ID, getURI(), 2147516497ul, 81,
319 opflex::modb::URIBuilder(getURI()).addElement(
"DciUniverse").build()
352 OF_SHARED_PTR<modelgbp::dci::Discoverer> result = addChild<modelgbp::dci::Discoverer>(
353 CLASS_ID, getURI(), 2147516498ul, 82,
354 opflex::modb::URIBuilder(getURI()).addElement(
"DciDiscoverer").build()
387 OF_SHARED_PTR<modelgbp::epdr::L2Discovered> result = addChild<modelgbp::epdr::L2Discovered>(
388 CLASS_ID, getURI(), 2147516527ul, 111,
389 opflex::modb::URIBuilder(getURI()).addElement(
"EpdrL2Discovered").build()
422 OF_SHARED_PTR<modelgbp::epdr::L3Discovered> result = addChild<modelgbp::epdr::L3Discovered>(
423 CLASS_ID, getURI(), 2147516528ul, 112,
424 opflex::modb::URIBuilder(getURI()).addElement(
"EpdrL3Discovered").build()
457 OF_SHARED_PTR<modelgbp::inv::Universe> result = addChild<modelgbp::inv::Universe>(
458 CLASS_ID, getURI(), 2147516529ul, 113,
459 opflex::modb::URIBuilder(getURI()).addElement(
"InvUniverse").build()
492 OF_SHARED_PTR<modelgbp::epr::L2Universe> result = addChild<modelgbp::epr::L2Universe>(
493 CLASS_ID, getURI(), 2147516554ul, 138,
494 opflex::modb::URIBuilder(getURI()).addElement(
"EprL2Universe").build()
527 OF_SHARED_PTR<modelgbp::epr::L3Universe> result = addChild<modelgbp::epr::L3Universe>(
528 CLASS_ID, getURI(), 2147516555ul, 139,
529 opflex::modb::URIBuilder(getURI()).addElement(
"EprL3Universe").build()
562 OF_SHARED_PTR<modelgbp::observer::EpStatUniverse> result = addChild<modelgbp::observer::EpStatUniverse>(
563 CLASS_ID, getURI(), 2147516628ul, 212,
564 opflex::modb::URIBuilder(getURI()).addElement(
"ObserverEpStatUniverse").build()
597 OF_SHARED_PTR<modelgbp::observer::PolicyStatUniverse> result = addChild<modelgbp::observer::PolicyStatUniverse>(
598 CLASS_ID, getURI(), 2147516629ul, 213,
599 opflex::modb::URIBuilder(getURI()).addElement(
"ObserverPolicyStatUniverse").build()
632 OF_SHARED_PTR<modelgbp::policy::Universe> result = addChild<modelgbp::policy::Universe>(
633 CLASS_ID, getURI(), 2147516639ul, 223,
634 opflex::modb::URIBuilder(getURI()).addElement(
"PolicyUniverse").build()
649 getTLMutator().remove(
CLASS_ID, getURI());
662 static void remove(opflex::ofcore::OFFramework& framework,
663 const opflex::modb::URI& uri)
665 MO::remove(framework,
CLASS_ID, uri);
678 static void remove(
const opflex::modb::URI& uri)
680 remove(opflex::ofcore::OFFramework::defaultInstance(), uri);
695 opflex::ofcore::OFFramework& framework,
696 opflex::modb::ObjectListener* listener)
698 opflex::modb::mointernal
699 ::MO::registerListener(framework, listener,
CLASS_ID);
714 opflex::modb::ObjectListener* listener)
726 opflex::ofcore::OFFramework& framework,
727 opflex::modb::ObjectListener* listener)
729 opflex::modb::mointernal
730 ::MO::unregisterListener(framework, listener,
CLASS_ID);
740 opflex::modb::ObjectListener* listener)
750 opflex::ofcore::OFFramework& framework,
751 const opflex::modb::URI& uri,
752 const OF_SHARED_PTR<const opflex::modb::mointernal::ObjectInstance>& oi)
753 : MO(framework,
CLASS_ID, uri, oi) { }
758 #endif // GI_DMTREE_ROOT_HPP
static boost::optional< OF_SHARED_PTR< modelgbp::policy::Universe > > resolve()
Retrieve an instance of Universe from the default managed object store by constructing its URI from t...
Definition: policy/Universe.hpp:119
OF_SHARED_PTR< modelgbp::relator::Universe > addRelatorUniverse()
Create a new child object with the specified naming properties and make it a child of this object in ...
Definition: Root.hpp:174
boost::optional< OF_SHARED_PTR< modelgbp::gbpe::TunnelEpUniverse > > resolveGbpeTunnelEpUniverse()
Retrieve the child object with the specified naming properties.
Definition: Root.hpp:228
static boost::optional< OF_SHARED_PTR< modelgbp::domain::Config > > resolve()
Retrieve an instance of Config from the default managed object store by constructing its URI from the...
Definition: domain/Config.hpp:107
boost::optional< OF_SHARED_PTR< modelgbp::domain::Config > > resolveDomainConfig()
Retrieve the child object with the specified naming properties.
Definition: Root.hpp:263
static void unregisterListener(opflex::ofcore::OFFramework &framework, opflex::modb::ObjectListener *listener)
Unregister a listener from updates to this class.
Definition: Root.hpp:725
boost::optional< OF_SHARED_PTR< modelgbp::epdr::L3Discovered > > resolveEpdrL3Discovered()
Retrieve the child object with the specified naming properties.
Definition: Root.hpp:403
static boost::optional< OF_SHARED_PTR< modelgbp::dci::Universe > > resolve()
Retrieve an instance of Universe from the default managed object store by constructing its URI from t...
Definition: dci/Universe.hpp:163
OF_SHARED_PTR< modelgbp::gbpe::TunnelEpUniverse > addGbpeTunnelEpUniverse()
Create a new child object with the specified naming properties and make it a child of this object in ...
Definition: Root.hpp:244
boost::optional< OF_SHARED_PTR< modelgbp::dci::Universe > > resolveDciUniverse()
Retrieve the child object with the specified naming properties.
Definition: Root.hpp:298
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: Root.hpp:713
boost::optional< OF_SHARED_PTR< modelgbp::epdr::L2Discovered > > resolveEpdrL2Discovered()
Retrieve the child object with the specified naming properties.
Definition: Root.hpp:368
OF_SHARED_PTR< modelgbp::observer::PolicyStatUniverse > addObserverPolicyStatUniverse()
Create a new child object with the specified naming properties and make it a child of this object in ...
Definition: Root.hpp:594
Root(opflex::ofcore::OFFramework &framework, const opflex::modb::URI &uri, const OF_SHARED_PTR< const opflex::modb::mointernal::ObjectInstance > &oi)
Construct an instance of Root.
Definition: Root.hpp:749
OF_SHARED_PTR< modelgbp::observer::EpStatUniverse > addObserverEpStatUniverse()
Create a new child object with the specified naming properties and make it a child of this object in ...
Definition: Root.hpp:559
static boost::optional< OF_SHARED_PTR< modelgbp::dci::Discoverer > > resolve()
Retrieve an instance of Discoverer from the default managed object store by constructing its URI from...
Definition: Discoverer.hpp:167
OF_SHARED_PTR< modelgbp::dci::Discoverer > addDciDiscoverer()
Create a new child object with the specified naming properties and make it a child of this object in ...
Definition: Root.hpp:349
static boost::optional< OF_SHARED_PTR< modelgbp::dmtree::Root > > resolve(opflex::ofcore::OFFramework &framework, const opflex::modb::URI &uri)
Retrieve an instance of Root from the managed object store.
Definition: Root.hpp:125
OF_SHARED_PTR< modelgbp::epr::L2Universe > addEprL2Universe()
Create a new child object with the specified naming properties and make it a child of this object in ...
Definition: Root.hpp:489
OF_SHARED_PTR< modelgbp::epdr::L2Discovered > addEpdrL2Discovered()
Create a new child object with the specified naming properties and make it a child of this object in ...
Definition: Root.hpp:384
boost::optional< OF_SHARED_PTR< modelgbp::epr::L3Universe > > resolveEprL3Universe()
Retrieve the child object with the specified naming properties.
Definition: Root.hpp:508
static boost::optional< OF_SHARED_PTR< modelgbp::inv::Universe > > resolve()
Retrieve an instance of Universe from the default managed object store by constructing its URI from t...
Definition: inv/Universe.hpp:103
boost::optional< OF_SHARED_PTR< modelgbp::dci::Discoverer > > resolveDciDiscoverer()
Retrieve the child object with the specified naming properties.
Definition: Root.hpp:333
static void unregisterListener(opflex::modb::ObjectListener *listener)
Unregister a listener from updates to this class from the default framework instance.
Definition: Root.hpp:739
static boost::optional< OF_SHARED_PTR< modelgbp::epdr::L2Discovered > > resolve()
Retrieve an instance of L2Discovered from the default managed object store by constructing its URI fr...
Definition: L2Discovered.hpp:103
static boost::optional< OF_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
boost::optional< OF_SHARED_PTR< modelgbp::gbpe::VMUniverse > > resolveGbpeVMUniverse()
Retrieve the child object with the specified naming properties.
Definition: Root.hpp:193
boost::optional< OF_SHARED_PTR< modelgbp::observer::PolicyStatUniverse > > resolveObserverPolicyStatUniverse()
Retrieve the child object with the specified naming properties.
Definition: Root.hpp:578
static boost::optional< OF_SHARED_PTR< modelgbp::relator::Universe > > resolve()
Retrieve an instance of Universe from the default managed object store by constructing its URI from t...
Definition: relator/Universe.hpp:227
OF_SHARED_PTR< modelgbp::domain::Config > addDomainConfig()
Create a new child object with the specified naming properties and make it a child of this object in ...
Definition: Root.hpp:279
boost::optional< OF_SHARED_PTR< modelgbp::policy::Universe > > resolvePolicyUniverse()
Retrieve the child object with the specified naming properties.
Definition: Root.hpp:613
OF_SHARED_PTR< modelgbp::inv::Universe > addInvUniverse()
Create a new child object with the specified naming properties and make it a child of this object in ...
Definition: Root.hpp:454
OF_SHARED_PTR< modelgbp::gbpe::VMUniverse > addGbpeVMUniverse()
Create a new child object with the specified naming properties and make it a child of this object in ...
Definition: Root.hpp:209
static const opflex::modb::class_id_t CLASS_ID
The unique class ID for Root.
Definition: Root.hpp:85
static boost::optional< OF_SHARED_PTR< modelgbp::epr::L3Universe > > resolve()
Retrieve an instance of L3Universe from the default managed object store by constructing its URI from...
Definition: L3Universe.hpp:103
boost::optional< OF_SHARED_PTR< modelgbp::relator::Universe > > resolveRelatorUniverse()
Retrieve the child object with the specified naming properties.
Definition: Root.hpp:158
boost::optional< OF_SHARED_PTR< modelgbp::observer::EpStatUniverse > > resolveObserverEpStatUniverse()
Retrieve the child object with the specified naming properties.
Definition: Root.hpp:543
static boost::optional< OF_SHARED_PTR< modelgbp::dmtree::Root > > resolve(const opflex::modb::URI &uri)
Retrieve an instance of Root from the managed object store using the default framework instance...
Definition: Root.hpp:143
static boost::optional< OF_SHARED_PTR< modelgbp::gbpe::TunnelEpUniverse > > resolve()
Retrieve an instance of TunnelEpUniverse from the default managed object store by constructing its UR...
Definition: TunnelEpUniverse.hpp:103
OF_SHARED_PTR< modelgbp::dci::Universe > addDciUniverse()
Create a new child object with the specified naming properties and make it a child of this object in ...
Definition: Root.hpp:314
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 registerListener(opflex::ofcore::OFFramework &framework, opflex::modb::ObjectListener *listener)
Register a listener that will get called for changes related to this class.
Definition: Root.hpp:694
boost::optional< OF_SHARED_PTR< modelgbp::inv::Universe > > resolveInvUniverse()
Retrieve the child object with the specified naming properties.
Definition: Root.hpp:438
OF_SHARED_PTR< modelgbp::policy::Universe > addPolicyUniverse()
Create a new child object with the specified naming properties and make it a child of this object in ...
Definition: Root.hpp:629
boost::optional< OF_SHARED_PTR< modelgbp::epr::L2Universe > > resolveEprL2Universe()
Retrieve the child object with the specified naming properties.
Definition: Root.hpp:473
OF_SHARED_PTR< modelgbp::epr::L3Universe > addEprL3Universe()
Create a new child object with the specified naming properties and make it a child of this object in ...
Definition: Root.hpp:524
OF_SHARED_PTR< modelgbp::epdr::L3Discovered > addEpdrL3Discovered()
Create a new child object with the specified naming properties and make it a child of this object in ...
Definition: Root.hpp:419
static boost::optional< OF_SHARED_PTR< modelgbp::epr::L2Universe > > resolve()
Retrieve an instance of L2Universe from the default managed object store by constructing its URI from...
Definition: L2Universe.hpp:103
static OF_SHARED_PTR< modelgbp::dmtree::Root > createRootElement(opflex::ofcore::OFFramework &framework)
Create an instance of Root, the root element in the management information tree, for the given framew...
Definition: Root.hpp:96
static boost::optional< OF_SHARED_PTR< modelgbp::epdr::L3Discovered > > resolve()
Retrieve an instance of L3Discovered from the default managed object store by constructing its URI fr...
Definition: L3Discovered.hpp:103
static OF_SHARED_PTR< modelgbp::dmtree::Root > createRootElement()
Create an instance of Root, the root element in the management information tree, for the default fram...
Definition: Root.hpp:109
static boost::optional< OF_SHARED_PTR< modelgbp::gbpe::VMUniverse > > resolve()
Retrieve an instance of VMUniverse from the default managed object store by constructing its URI from...
Definition: VMUniverse.hpp:107