11#ifndef GI_EPR_L3UNIVERSE_HPP
12#define GI_EPR_L3UNIVERSE_HPP
14#include <boost/optional.hpp>
15#include "opflex/modb/URIBuilder.h"
16#include "opflex/modb/mo-internal/MO.h"
20#include "modelgbp/epr/L3Ep.hpp"
26 :
public opflex::modb::mointernal::MO
33 static const opflex::modb::class_id_t
CLASS_ID = 139;
46 static boost::optional<OF_SHARED_PTR<modelgbp::epr::L3Universe> >
resolve(
47 opflex::ofcore::OFFramework& framework,
48 const opflex::modb::URI& uri)
50 return opflex::modb::mointernal::MO::resolve<modelgbp::epr::L3Universe>(framework,
CLASS_ID, uri);
64 static boost::optional<OF_SHARED_PTR<modelgbp::epr::L3Universe> >
resolve(
65 const opflex::modb::URI& uri)
67 return opflex::modb::mointernal::MO::resolve<modelgbp::epr::L3Universe>(opflex::ofcore::OFFramework::defaultInstance(),
CLASS_ID, uri);
84 static boost::optional<OF_SHARED_PTR<modelgbp::epr::L3Universe> >
resolve(
85 opflex::ofcore::OFFramework& framework)
87 return resolve(framework,opflex::modb::URIBuilder().addElement(
"EprL3Universe").build());
103 static boost::optional<OF_SHARED_PTR<modelgbp::epr::L3Universe> >
resolve(
106 return resolve(opflex::ofcore::OFFramework::defaultInstance());
123 const std::string& eprL3EpContext,
124 const std::string& eprL3EpIp)
126 return modelgbp::epr::L3Ep::resolve(getFramework(), opflex::modb::URIBuilder(getURI()).addElement(
"EprL3Ep").addElement(eprL3EpContext).addElement(eprL3EpIp).build());
144 const std::string& eprL3EpContext,
145 const std::string& eprL3EpIp)
147 OF_SHARED_PTR<modelgbp::epr::L3Ep> result = addChild<modelgbp::epr::L3Ep>(
148 CLASS_ID, getURI(), 2152038501ul, 101,
149 opflex::modb::URIBuilder(getURI()).addElement(
"EprL3Ep").addElement(eprL3EpContext).addElement(eprL3EpIp).build()
151 result->setContext(eprL3EpContext);
152 result->setIp(eprL3EpIp);
172 opflex::modb::mointernal::MO::resolveChildren<modelgbp::epr::L3Ep>(
173 getFramework(),
CLASS_ID, getURI(), 2152038501ul, 101, out);
186 getTLMutator().remove(
CLASS_ID, getURI());
199 static void remove(opflex::ofcore::OFFramework& framework,
200 const opflex::modb::URI& uri)
202 MO::remove(framework,
CLASS_ID, uri);
215 static void remove(
const opflex::modb::URI& uri)
217 remove(opflex::ofcore::OFFramework::defaultInstance(), uri);
232 opflex::ofcore::OFFramework& framework,
233 opflex::modb::ObjectListener* listener)
235 opflex::modb::mointernal
236 ::MO::registerListener(framework, listener,
CLASS_ID);
251 opflex::modb::ObjectListener* listener)
263 opflex::ofcore::OFFramework& framework,
264 opflex::modb::ObjectListener* listener)
266 opflex::modb::mointernal
267 ::MO::unregisterListener(framework, listener,
CLASS_ID);
277 opflex::modb::ObjectListener* listener)
287 opflex::ofcore::OFFramework& framework,
288 const opflex::modb::URI& uri,
289 const OF_SHARED_PTR<const opflex::modb::mointernal::ObjectInstance>& oi)
290 : MO(framework,
CLASS_ID, uri, oi) { }
static boost::optional< OF_SHARED_PTR< modelgbp::epr::L3Ep > > resolve(opflex::ofcore::OFFramework &framework, const opflex::modb::URI &uri)
Retrieve an instance of L3Ep from the managed object store.
Definition L3Ep.hpp:338
void remove()
Remove this instance using the currently-active mutator.
Definition L3Universe.hpp:184
static void unregisterListener(opflex::modb::ObjectListener *listener)
Unregister a listener from updates to this class from the default framework instance.
Definition L3Universe.hpp:276
static boost::optional< OF_SHARED_PTR< modelgbp::epr::L3Universe > > resolve(opflex::ofcore::OFFramework &framework)
Retrieve an instance of L3Universe from the managed object store by constructing its URI from the pat...
Definition L3Universe.hpp:84
static void unregisterListener(opflex::ofcore::OFFramework &framework, opflex::modb::ObjectListener *listener)
Unregister a listener from updates to this class.
Definition L3Universe.hpp:262
void resolveEprL3Ep(std::vector< OF_SHARED_PTR< modelgbp::epr::L3Ep > > &out)
Resolve and retrieve all of the immediate children of type modelgbp::epr::L3Ep.
Definition L3Universe.hpp:170
OF_SHARED_PTR< modelgbp::epr::L3Ep > addEprL3Ep(const std::string &eprL3EpContext, const std::string &eprL3EpIp)
Create a new child object with the specified naming properties and make it a child of this object in ...
Definition L3Universe.hpp:143
static void remove(opflex::ofcore::OFFramework &framework, const opflex::modb::URI &uri)
Remove the L3Universe object with the specified URI using the currently-active mutator.
Definition L3Universe.hpp:199
static void remove(const opflex::modb::URI &uri)
Remove the L3Universe object with the specified URI using the currently-active mutator and the defaul...
Definition L3Universe.hpp:215
L3Universe(opflex::ofcore::OFFramework &framework, const opflex::modb::URI &uri, const OF_SHARED_PTR< const opflex::modb::mointernal::ObjectInstance > &oi)
Construct an instance of L3Universe.
Definition L3Universe.hpp:286
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
static boost::optional< OF_SHARED_PTR< modelgbp::epr::L3Universe > > resolve(const opflex::modb::URI &uri)
Retrieve an instance of L3Universe from the managed object store using the default framework instance...
Definition L3Universe.hpp:64
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 L3Universe.hpp:250
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 L3Universe.hpp:231
boost::optional< OF_SHARED_PTR< modelgbp::epr::L3Ep > > resolveEprL3Ep(const std::string &eprL3EpContext, const std::string &eprL3EpIp)
Retrieve the child object with the specified naming properties.
Definition L3Universe.hpp:122
static const opflex::modb::class_id_t CLASS_ID
The unique class ID for L3Universe.
Definition L3Universe.hpp:33
static boost::optional< OF_SHARED_PTR< modelgbp::epr::L3Universe > > resolve(opflex::ofcore::OFFramework &framework, const opflex::modb::URI &uri)
Retrieve an instance of L3Universe from the managed object store.
Definition L3Universe.hpp:46
SOME COPYRIGHT.
Definition OpcodeEnumT.hpp:12