11#ifndef GI_GBPE_VMUNIVERSE_HPP
12#define GI_GBPE_VMUNIVERSE_HPP
14#include <boost/optional.hpp>
15#include "opflex/modb/URIBuilder.h"
16#include "opflex/modb/mo-internal/MO.h"
20#include "modelgbp/gbpe/VMEp.hpp"
24#include "modelgbp/gbpe/EpAttributeSet.hpp"
30 :
public opflex::modb::mointernal::MO
37 static const opflex::modb::class_id_t
CLASS_ID = 34;
50 static boost::optional<OF_SHARED_PTR<modelgbp::gbpe::VMUniverse> >
resolve(
51 opflex::ofcore::OFFramework& framework,
52 const opflex::modb::URI& uri)
54 return opflex::modb::mointernal::MO::resolve<modelgbp::gbpe::VMUniverse>(framework,
CLASS_ID, uri);
68 static boost::optional<OF_SHARED_PTR<modelgbp::gbpe::VMUniverse> >
resolve(
69 const opflex::modb::URI& uri)
71 return opflex::modb::mointernal::MO::resolve<modelgbp::gbpe::VMUniverse>(opflex::ofcore::OFFramework::defaultInstance(),
CLASS_ID, uri);
88 static boost::optional<OF_SHARED_PTR<modelgbp::gbpe::VMUniverse> >
resolve(
89 opflex::ofcore::OFFramework& framework)
91 return resolve(framework,opflex::modb::URIBuilder().addElement(
"GbpeVMUniverse").build());
107 static boost::optional<OF_SHARED_PTR<modelgbp::gbpe::VMUniverse> >
resolve(
110 return resolve(opflex::ofcore::OFFramework::defaultInstance());
125 const std::string& gbpeVMEpUuid)
127 return modelgbp::gbpe::VMEp::resolve(getFramework(), opflex::modb::URIBuilder(getURI()).addElement(
"GbpeVMEp").addElement(gbpeVMEpUuid).build());
143 const std::string& gbpeVMEpUuid)
145 OF_SHARED_PTR<modelgbp::gbpe::VMEp> result = addChild<modelgbp::gbpe::VMEp>(
146 CLASS_ID, getURI(), 2148597795ul, 35,
147 opflex::modb::URIBuilder(getURI()).addElement(
"GbpeVMEp").addElement(gbpeVMEpUuid).build()
149 result->setUuid(gbpeVMEpUuid);
169 opflex::modb::mointernal::MO::resolveChildren<modelgbp::gbpe::VMEp>(
170 getFramework(),
CLASS_ID, getURI(), 2148597795ul, 35, out);
185 const std::string& gbpeEpAttributeSetUuid)
203 const std::string& gbpeEpAttributeSetUuid)
205 OF_SHARED_PTR<modelgbp::gbpe::EpAttributeSet> result = addChild<modelgbp::gbpe::EpAttributeSet>(
206 CLASS_ID, getURI(), 2148597796ul, 36,
207 opflex::modb::URIBuilder(getURI()).addElement(
"GbpeEpAttributeSet").addElement(gbpeEpAttributeSetUuid).build()
209 result->setUuid(gbpeEpAttributeSetUuid);
229 opflex::modb::mointernal::MO::resolveChildren<modelgbp::gbpe::EpAttributeSet>(
230 getFramework(),
CLASS_ID, getURI(), 2148597796ul, 36, out);
243 getTLMutator().remove(
CLASS_ID, getURI());
256 static void remove(opflex::ofcore::OFFramework& framework,
257 const opflex::modb::URI& uri)
259 MO::remove(framework,
CLASS_ID, uri);
272 static void remove(
const opflex::modb::URI& uri)
274 remove(opflex::ofcore::OFFramework::defaultInstance(), uri);
289 opflex::ofcore::OFFramework& framework,
290 opflex::modb::ObjectListener* listener)
292 opflex::modb::mointernal
293 ::MO::registerListener(framework, listener,
CLASS_ID);
308 opflex::modb::ObjectListener* listener)
320 opflex::ofcore::OFFramework& framework,
321 opflex::modb::ObjectListener* listener)
323 opflex::modb::mointernal
324 ::MO::unregisterListener(framework, listener,
CLASS_ID);
334 opflex::modb::ObjectListener* listener)
344 opflex::ofcore::OFFramework& framework,
345 const opflex::modb::URI& uri,
346 const OF_SHARED_PTR<const opflex::modb::mointernal::ObjectInstance>& oi)
347 : MO(framework,
CLASS_ID, uri, oi) { }
static boost::optional< OF_SHARED_PTR< modelgbp::gbpe::EpAttributeSet > > resolve(opflex::ofcore::OFFramework &framework, const opflex::modb::URI &uri)
Retrieve an instance of EpAttributeSet from the managed object store.
Definition EpAttributeSet.hpp:106
static boost::optional< OF_SHARED_PTR< modelgbp::gbpe::VMEp > > resolve(opflex::ofcore::OFFramework &framework, const opflex::modb::URI &uri)
Retrieve an instance of VMEp from the managed object store.
Definition VMEp.hpp:102
static void unregisterListener(opflex::modb::ObjectListener *listener)
Unregister a listener from updates to this class from the default framework instance.
Definition VMUniverse.hpp:333
static boost::optional< OF_SHARED_PTR< modelgbp::gbpe::VMUniverse > > resolve(const opflex::modb::URI &uri)
Retrieve an instance of VMUniverse from the managed object store using the default framework instance...
Definition VMUniverse.hpp:68
boost::optional< OF_SHARED_PTR< modelgbp::gbpe::EpAttributeSet > > resolveGbpeEpAttributeSet(const std::string &gbpeEpAttributeSetUuid)
Retrieve the child object with the specified naming properties.
Definition VMUniverse.hpp:184
static void remove(const opflex::modb::URI &uri)
Remove the VMUniverse object with the specified URI using the currently-active mutator and the defaul...
Definition VMUniverse.hpp:272
static boost::optional< OF_SHARED_PTR< modelgbp::gbpe::VMUniverse > > resolve(opflex::ofcore::OFFramework &framework, const opflex::modb::URI &uri)
Retrieve an instance of VMUniverse from the managed object store.
Definition VMUniverse.hpp:50
boost::optional< OF_SHARED_PTR< modelgbp::gbpe::VMEp > > resolveGbpeVMEp(const std::string &gbpeVMEpUuid)
Retrieve the child object with the specified naming properties.
Definition VMUniverse.hpp:124
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 VMUniverse.hpp:307
static void unregisterListener(opflex::ofcore::OFFramework &framework, opflex::modb::ObjectListener *listener)
Unregister a listener from updates to this class.
Definition VMUniverse.hpp:319
void resolveGbpeEpAttributeSet(std::vector< OF_SHARED_PTR< modelgbp::gbpe::EpAttributeSet > > &out)
Resolve and retrieve all of the immediate children of type modelgbp::gbpe::EpAttributeSet.
Definition VMUniverse.hpp:227
static const opflex::modb::class_id_t CLASS_ID
The unique class ID for VMUniverse.
Definition VMUniverse.hpp:37
void remove()
Remove this instance using the currently-active mutator.
Definition VMUniverse.hpp:241
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
static void remove(opflex::ofcore::OFFramework &framework, const opflex::modb::URI &uri)
Remove the VMUniverse object with the specified URI using the currently-active mutator.
Definition VMUniverse.hpp:256
OF_SHARED_PTR< modelgbp::gbpe::VMEp > addGbpeVMEp(const std::string &gbpeVMEpUuid)
Create a new child object with the specified naming properties and make it a child of this object in ...
Definition VMUniverse.hpp:142
VMUniverse(opflex::ofcore::OFFramework &framework, const opflex::modb::URI &uri, const OF_SHARED_PTR< const opflex::modb::mointernal::ObjectInstance > &oi)
Construct an instance of VMUniverse.
Definition VMUniverse.hpp:343
void resolveGbpeVMEp(std::vector< OF_SHARED_PTR< modelgbp::gbpe::VMEp > > &out)
Resolve and retrieve all of the immediate children of type modelgbp::gbpe::VMEp.
Definition VMUniverse.hpp:167
static boost::optional< OF_SHARED_PTR< modelgbp::gbpe::VMUniverse > > resolve(opflex::ofcore::OFFramework &framework)
Retrieve an instance of VMUniverse from the managed object store by constructing its URI from the pat...
Definition VMUniverse.hpp:88
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 VMUniverse.hpp:288
OF_SHARED_PTR< modelgbp::gbpe::EpAttributeSet > addGbpeEpAttributeSet(const std::string &gbpeEpAttributeSetUuid)
Create a new child object with the specified naming properties and make it a child of this object in ...
Definition VMUniverse.hpp:202
SOME COPYRIGHT.
Definition OpcodeEnumT.hpp:12