modelgbp Generated OpFlex Model 1.7.0
VMUniverse.hpp
1
10#pragma once
11#ifndef GI_GBPE_VMUNIVERSE_HPP
12#define GI_GBPE_VMUNIVERSE_HPP
13
14#include <boost/optional.hpp>
15#include "opflex/modb/URIBuilder.h"
16#include "opflex/modb/mo-internal/MO.h"
17/*
18 * contains: item:mclass(gbpe/VMEp)
19 */
20#include "modelgbp/gbpe/VMEp.hpp"
21/*
22 * contains: item:mclass(gbpe/EpAttributeSet)
23 */
24#include "modelgbp/gbpe/EpAttributeSet.hpp"
25
26namespace modelgbp {
27namespace gbpe {
28
30 : public opflex::modb::mointernal::MO
31{
32public:
33
37 static const opflex::modb::class_id_t CLASS_ID = 34;
38
50 static boost::optional<OF_SHARED_PTR<modelgbp::gbpe::VMUniverse> > resolve(
51 opflex::ofcore::OFFramework& framework,
52 const opflex::modb::URI& uri)
53 {
54 return opflex::modb::mointernal::MO::resolve<modelgbp::gbpe::VMUniverse>(framework, CLASS_ID, uri);
55 }
56
68 static boost::optional<OF_SHARED_PTR<modelgbp::gbpe::VMUniverse> > resolve(
69 const opflex::modb::URI& uri)
70 {
71 return opflex::modb::mointernal::MO::resolve<modelgbp::gbpe::VMUniverse>(opflex::ofcore::OFFramework::defaultInstance(), CLASS_ID, uri);
72 }
73
88 static boost::optional<OF_SHARED_PTR<modelgbp::gbpe::VMUniverse> > resolve(
89 opflex::ofcore::OFFramework& framework)
90 {
91 return resolve(framework,opflex::modb::URIBuilder().addElement("GbpeVMUniverse").build());
92 }
93
107 static boost::optional<OF_SHARED_PTR<modelgbp::gbpe::VMUniverse> > resolve(
108 )
109 {
110 return resolve(opflex::ofcore::OFFramework::defaultInstance());
111 }
112
124 boost::optional<OF_SHARED_PTR<modelgbp::gbpe::VMEp> > resolveGbpeVMEp(
125 const std::string& gbpeVMEpUuid)
126 {
127 return modelgbp::gbpe::VMEp::resolve(getFramework(), opflex::modb::URIBuilder(getURI()).addElement("GbpeVMEp").addElement(gbpeVMEpUuid).build());
128 }
129
142 OF_SHARED_PTR<modelgbp::gbpe::VMEp> addGbpeVMEp(
143 const std::string& gbpeVMEpUuid)
144 {
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()
148 );
149 result->setUuid(gbpeVMEpUuid);
150 return result;
151 }
152
167 void resolveGbpeVMEp(/* out */ std::vector<OF_SHARED_PTR<modelgbp::gbpe::VMEp> >& out)
168 {
169 opflex::modb::mointernal::MO::resolveChildren<modelgbp::gbpe::VMEp>(
170 getFramework(), CLASS_ID, getURI(), 2148597795ul, 35, out);
171 }
172
184 boost::optional<OF_SHARED_PTR<modelgbp::gbpe::EpAttributeSet> > resolveGbpeEpAttributeSet(
185 const std::string& gbpeEpAttributeSetUuid)
186 {
187 return modelgbp::gbpe::EpAttributeSet::resolve(getFramework(), opflex::modb::URIBuilder(getURI()).addElement("GbpeEpAttributeSet").addElement(gbpeEpAttributeSetUuid).build());
188 }
189
202 OF_SHARED_PTR<modelgbp::gbpe::EpAttributeSet> addGbpeEpAttributeSet(
203 const std::string& gbpeEpAttributeSetUuid)
204 {
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()
208 );
209 result->setUuid(gbpeEpAttributeSetUuid);
210 return result;
211 }
212
227 void resolveGbpeEpAttributeSet(/* out */ std::vector<OF_SHARED_PTR<modelgbp::gbpe::EpAttributeSet> >& out)
228 {
229 opflex::modb::mointernal::MO::resolveChildren<modelgbp::gbpe::EpAttributeSet>(
230 getFramework(), CLASS_ID, getURI(), 2148597796ul, 36, out);
231 }
232
241 void remove()
242 {
243 getTLMutator().remove(CLASS_ID, getURI());
244 }
245
256 static void remove(opflex::ofcore::OFFramework& framework,
257 const opflex::modb::URI& uri)
258 {
259 MO::remove(framework, CLASS_ID, uri);
260 }
261
272 static void remove(const opflex::modb::URI& uri)
273 {
274 remove(opflex::ofcore::OFFramework::defaultInstance(), uri);
275 }
276
288 static void registerListener(
289 opflex::ofcore::OFFramework& framework,
290 opflex::modb::ObjectListener* listener)
291 {
292 opflex::modb::mointernal
293 ::MO::registerListener(framework, listener, CLASS_ID);
294 }
295
307 static void registerListener(
308 opflex::modb::ObjectListener* listener)
309 {
310 registerListener(opflex::ofcore::OFFramework::defaultInstance(), listener);
311 }
312
320 opflex::ofcore::OFFramework& framework,
321 opflex::modb::ObjectListener* listener)
322 {
323 opflex::modb::mointernal
324 ::MO::unregisterListener(framework, listener, CLASS_ID);
325 }
326
334 opflex::modb::ObjectListener* listener)
335 {
336 unregisterListener(opflex::ofcore::OFFramework::defaultInstance(), listener);
337 }
338
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) { }
348}; // class VMUniverse
349
350} // namespace gbpe
351} // namespace modelgbp
352#endif // GI_GBPE_VMUNIVERSE_HPP
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