11 #ifndef GI_EPDR_L3DISCOVERED_HPP
12 #define GI_EPDR_L3DISCOVERED_HPP
14 #include <boost/optional.hpp>
15 #include "opflex/modb/URIBuilder.h"
16 #include "opflex/modb/mo-internal/MO.h"
20 #include "modelgbp/epdr/LocalL3Ep.hpp"
26 :
public opflex::modb::mointernal::MO
33 static const opflex::modb::class_id_t
CLASS_ID = 112;
46 static boost::optional<OF_SHARED_PTR<modelgbp::epdr::L3Discovered> >
resolve(
47 opflex::ofcore::OFFramework& framework,
48 const opflex::modb::URI& uri)
50 return opflex::modb::mointernal::MO::resolve<modelgbp::epdr::L3Discovered>(framework,
CLASS_ID, uri);
64 static boost::optional<OF_SHARED_PTR<modelgbp::epdr::L3Discovered> >
resolve(
65 const opflex::modb::URI& uri)
67 return opflex::modb::mointernal::MO::resolve<modelgbp::epdr::L3Discovered>(opflex::ofcore::OFFramework::defaultInstance(),
CLASS_ID, uri);
84 static boost::optional<OF_SHARED_PTR<modelgbp::epdr::L3Discovered> >
resolve(
85 opflex::ofcore::OFFramework& framework)
87 return resolve(framework,opflex::modb::URIBuilder().addElement(
"EpdrL3Discovered").build());
103 static boost::optional<OF_SHARED_PTR<modelgbp::epdr::L3Discovered> >
resolve(
106 return resolve(opflex::ofcore::OFFramework::defaultInstance());
121 const std::string& epdrLocalL3EpUuid)
139 const std::string& epdrLocalL3EpUuid)
141 OF_SHARED_PTR<modelgbp::epdr::LocalL3Ep> result = addChild<modelgbp::epdr::LocalL3Ep>(
142 CLASS_ID, getURI(), 2151153774ul, 110,
143 opflex::modb::URIBuilder(getURI()).addElement(
"EpdrLocalL3Ep").addElement(epdrLocalL3EpUuid).build()
145 result->setUuid(epdrLocalL3EpUuid);
165 opflex::modb::mointernal::MO::resolveChildren<modelgbp::epdr::LocalL3Ep>(
166 getFramework(),
CLASS_ID, getURI(), 2151153774ul, 110, out);
179 getTLMutator().remove(
CLASS_ID, getURI());
192 static void remove(opflex::ofcore::OFFramework& framework,
193 const opflex::modb::URI& uri)
195 MO::remove(framework,
CLASS_ID, uri);
208 static void remove(
const opflex::modb::URI& uri)
210 remove(opflex::ofcore::OFFramework::defaultInstance(), uri);
225 opflex::ofcore::OFFramework& framework,
226 opflex::modb::ObjectListener* listener)
228 opflex::modb::mointernal
229 ::MO::registerListener(framework, listener,
CLASS_ID);
244 opflex::modb::ObjectListener* listener)
256 opflex::ofcore::OFFramework& framework,
257 opflex::modb::ObjectListener* listener)
259 opflex::modb::mointernal
260 ::MO::unregisterListener(framework, listener,
CLASS_ID);
270 opflex::modb::ObjectListener* listener)
280 opflex::ofcore::OFFramework& framework,
281 const opflex::modb::URI& uri,
282 const OF_SHARED_PTR<const opflex::modb::mointernal::ObjectInstance>& oi)
283 : MO(framework,
CLASS_ID, uri, oi) { }
288 #endif // GI_EPDR_L3DISCOVERED_HPP
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: L3Discovered.hpp:243
static void unregisterListener(opflex::modb::ObjectListener *listener)
Unregister a listener from updates to this class from the default framework instance.
Definition: L3Discovered.hpp:269
static boost::optional< OF_SHARED_PTR< modelgbp::epdr::LocalL3Ep > > resolve(opflex::ofcore::OFFramework &framework, const opflex::modb::URI &uri)
Retrieve an instance of LocalL3Ep from the managed object store.
Definition: LocalL3Ep.hpp:222
static boost::optional< OF_SHARED_PTR< modelgbp::epdr::L3Discovered > > resolve(opflex::ofcore::OFFramework &framework, const opflex::modb::URI &uri)
Retrieve an instance of L3Discovered from the managed object store.
Definition: L3Discovered.hpp:46
L3Discovered(opflex::ofcore::OFFramework &framework, const opflex::modb::URI &uri, const OF_SHARED_PTR< const opflex::modb::mointernal::ObjectInstance > &oi)
Construct an instance of L3Discovered.
Definition: L3Discovered.hpp:279
boost::optional< OF_SHARED_PTR< modelgbp::epdr::LocalL3Ep > > resolveEpdrLocalL3Ep(const std::string &epdrLocalL3EpUuid)
Retrieve the child object with the specified naming properties.
Definition: L3Discovered.hpp:120
void resolveEpdrLocalL3Ep(std::vector< OF_SHARED_PTR< modelgbp::epdr::LocalL3Ep > > &out)
Resolve and retrieve all of the immediate children of type modelgbp::epdr::LocalL3Ep.
Definition: L3Discovered.hpp:163
static boost::optional< OF_SHARED_PTR< modelgbp::epdr::L3Discovered > > resolve(const opflex::modb::URI &uri)
Retrieve an instance of L3Discovered from the managed object store using the default framework instan...
Definition: L3Discovered.hpp:64
static const opflex::modb::class_id_t CLASS_ID
The unique class ID for L3Discovered.
Definition: L3Discovered.hpp:33
OF_SHARED_PTR< modelgbp::epdr::LocalL3Ep > addEpdrLocalL3Ep(const std::string &epdrLocalL3EpUuid)
Create a new child object with the specified naming properties and make it a child of this object in ...
Definition: L3Discovered.hpp:138
static void unregisterListener(opflex::ofcore::OFFramework &framework, opflex::modb::ObjectListener *listener)
Unregister a listener from updates to this class.
Definition: L3Discovered.hpp:255
Definition: L3Discovered.hpp:25
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: L3Discovered.hpp:224
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 boost::optional< OF_SHARED_PTR< modelgbp::epdr::L3Discovered > > resolve(opflex::ofcore::OFFramework &framework)
Retrieve an instance of L3Discovered from the managed object store by constructing its URI from the p...
Definition: L3Discovered.hpp:84