11 #ifndef GI_EPR_L2UNIVERSE_HPP
12 #define GI_EPR_L2UNIVERSE_HPP
14 #include <boost/optional.hpp>
15 #include "opflex/modb/URIBuilder.h"
16 #include "opflex/modb/mo-internal/MO.h"
20 #include "modelgbp/epr/L2Ep.hpp"
26 :
public opflex::modb::mointernal::MO
33 static const opflex::modb::class_id_t
CLASS_ID = 97;
46 static boost::optional<boost::shared_ptr<modelgbp::epr::L2Universe> >
resolve(
47 opflex::ofcore::OFFramework& framework,
48 const opflex::modb::URI& uri)
50 return opflex::modb::mointernal::MO::resolve<modelgbp::epr::L2Universe>(framework,
CLASS_ID, uri);
64 static boost::optional<boost::shared_ptr<modelgbp::epr::L2Universe> >
resolve(
65 const opflex::modb::URI& uri)
67 return opflex::modb::mointernal::MO::resolve<modelgbp::epr::L2Universe>(opflex::ofcore::OFFramework::defaultInstance(),
CLASS_ID, uri);
84 static boost::optional<boost::shared_ptr<modelgbp::epr::L2Universe> >
resolve(
85 opflex::ofcore::OFFramework& framework)
87 return resolve(framework,opflex::modb::URIBuilder().addElement(
"EprL2Universe").build());
103 static boost::optional<boost::shared_ptr<modelgbp::epr::L2Universe> >
resolve(
106 return resolve(opflex::ofcore::OFFramework::defaultInstance());
123 const std::string& eprL2EpContext,
124 const opflex::modb::MAC& eprL2EpMac)
126 return modelgbp::epr::L2Ep::resolve(getFramework(), opflex::modb::URIBuilder(getURI()).addElement(
"EprL2Ep").addElement(eprL2EpContext).addElement(eprL2EpMac).build());
144 const std::string& eprL2EpContext,
145 const opflex::modb::MAC& eprL2EpMac)
147 boost::shared_ptr<modelgbp::epr::L2Ep> result = addChild<modelgbp::epr::L2Ep>(
148 CLASS_ID, getURI(), 2150662226ul, 82,
149 opflex::modb::URIBuilder(getURI()).addElement(
"EprL2Ep").addElement(eprL2EpContext).addElement(eprL2EpMac).build()
151 result->setContext(eprL2EpContext);
152 result->setMac(eprL2EpMac);
172 opflex::modb::mointernal::MO::resolveChildren<modelgbp::epr::L2Ep>(
173 getFramework(),
CLASS_ID, getURI(), 2150662226ul, 82, 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 boost::shared_ptr<const opflex::modb::mointernal::ObjectInstance>& oi)
290 : MO(framework,
CLASS_ID, uri, oi) { }
295 #endif // GI_EPR_L2UNIVERSE_HPP
static const opflex::modb::class_id_t CLASS_ID
The unique class ID for L2Universe.
Definition: L2Universe.hpp:33
L2Universe(opflex::ofcore::OFFramework &framework, const opflex::modb::URI &uri, const boost::shared_ptr< const opflex::modb::mointernal::ObjectInstance > &oi)
Construct an instance of L2Universe.
Definition: L2Universe.hpp:286
boost::shared_ptr< modelgbp::epr::L2Ep > addEprL2Ep(const std::string &eprL2EpContext, const opflex::modb::MAC &eprL2EpMac)
Create a new child object with the specified naming properties and make it a child of this object in ...
Definition: L2Universe.hpp:143
static boost::optional< boost::shared_ptr< modelgbp::epr::L2Universe > > resolve(opflex::ofcore::OFFramework &framework)
Retrieve an instance of L2Universe from the managed object store by constructing its URI from the pat...
Definition: L2Universe.hpp:84
static boost::optional< boost::shared_ptr< modelgbp::epr::L2Universe > > resolve(opflex::ofcore::OFFramework &framework, const opflex::modb::URI &uri)
Retrieve an instance of L2Universe from the managed object store.
Definition: L2Universe.hpp:46
void resolveEprL2Ep(std::vector< boost::shared_ptr< modelgbp::epr::L2Ep > > &out)
Resolve and retrieve all of the immediate children of type modelgbp::epr::L2Ep.
Definition: L2Universe.hpp:170
static boost::optional< boost::shared_ptr< modelgbp::epr::L2Ep > > resolve(opflex::ofcore::OFFramework &framework, const opflex::modb::URI &uri)
Retrieve an instance of L2Ep from the managed object store.
Definition: L2Ep.hpp:394
static void unregisterListener(opflex::ofcore::OFFramework &framework, opflex::modb::ObjectListener *listener)
Unregister a listener from updates to this class.
Definition: L2Universe.hpp:262
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: L2Universe.hpp:250
static boost::optional< boost::shared_ptr< modelgbp::epr::L2Universe > > resolve(const opflex::modb::URI &uri)
Retrieve an instance of L2Universe from the managed object store using the default framework instance...
Definition: L2Universe.hpp:64
static boost::optional< boost::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 void unregisterListener(opflex::modb::ObjectListener *listener)
Unregister a listener from updates to this class from the default framework instance.
Definition: L2Universe.hpp:276
boost::optional< boost::shared_ptr< modelgbp::epr::L2Ep > > resolveEprL2Ep(const std::string &eprL2EpContext, const opflex::modb::MAC &eprL2EpMac)
Retrieve the child object with the specified naming properties.
Definition: L2Universe.hpp:122
Definition: L2Universe.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: L2Universe.hpp:231