modelgbp Generated OpFlex Model 1.7.0
Ep.hpp
1
10#pragma once
11#ifndef GI_DCI_EP_HPP
12#define GI_DCI_EP_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(dci/EpToUnivRSrc)
19 */
20#include "modelgbp/dci/EpToUnivRSrc.hpp"
21
22namespace modelgbp {
23namespace dci {
24
25class Ep
26 : public opflex::modb::mointernal::MO
27{
28public:
29
33 static const opflex::modb::class_id_t CLASS_ID = 83;
34
46 static boost::optional<OF_SHARED_PTR<modelgbp::dci::Ep> > resolve(
47 opflex::ofcore::OFFramework& framework,
48 const opflex::modb::URI& uri)
49 {
50 return opflex::modb::mointernal::MO::resolve<modelgbp::dci::Ep>(framework, CLASS_ID, uri);
51 }
52
64 static boost::optional<OF_SHARED_PTR<modelgbp::dci::Ep> > resolve(
65 const opflex::modb::URI& uri)
66 {
67 return opflex::modb::mointernal::MO::resolve<modelgbp::dci::Ep>(opflex::ofcore::OFFramework::defaultInstance(), CLASS_ID, uri);
68 }
69
84 static boost::optional<OF_SHARED_PTR<modelgbp::dci::Ep> > resolve(
85 opflex::ofcore::OFFramework& framework)
86 {
87 return resolve(framework,opflex::modb::URIBuilder().addElement("DciDiscoverer").addElement("DciEp").build());
88 }
89
103 static boost::optional<OF_SHARED_PTR<modelgbp::dci::Ep> > resolve(
104 )
105 {
106 return resolve(opflex::ofcore::OFFramework::defaultInstance());
107 }
108
118 boost::optional<OF_SHARED_PTR<modelgbp::dci::EpToUnivRSrc> > resolveDciEpToUnivRSrc(
119 )
120 {
121 return modelgbp::dci::EpToUnivRSrc::resolve(getFramework(), opflex::modb::URIBuilder(getURI()).addElement("DciEpToUnivRSrc").build());
122 }
123
134 OF_SHARED_PTR<modelgbp::dci::EpToUnivRSrc> addDciEpToUnivRSrc(
135 )
136 {
137 OF_SHARED_PTR<modelgbp::dci::EpToUnivRSrc> result = addChild<modelgbp::dci::EpToUnivRSrc>(
138 CLASS_ID, getURI(), 2150203476ul, 84,
139 opflex::modb::URIBuilder(getURI()).addElement("DciEpToUnivRSrc").build()
140 );
141 return result;
142 }
143
152 void remove()
153 {
154 getTLMutator().remove(CLASS_ID, getURI());
155 }
156
167 static void remove(opflex::ofcore::OFFramework& framework,
168 const opflex::modb::URI& uri)
169 {
170 MO::remove(framework, CLASS_ID, uri);
171 }
172
183 static void remove(const opflex::modb::URI& uri)
184 {
185 remove(opflex::ofcore::OFFramework::defaultInstance(), uri);
186 }
187
199 static void registerListener(
200 opflex::ofcore::OFFramework& framework,
201 opflex::modb::ObjectListener* listener)
202 {
203 opflex::modb::mointernal
204 ::MO::registerListener(framework, listener, CLASS_ID);
205 }
206
218 static void registerListener(
219 opflex::modb::ObjectListener* listener)
220 {
221 registerListener(opflex::ofcore::OFFramework::defaultInstance(), listener);
222 }
223
231 opflex::ofcore::OFFramework& framework,
232 opflex::modb::ObjectListener* listener)
233 {
234 opflex::modb::mointernal
235 ::MO::unregisterListener(framework, listener, CLASS_ID);
236 }
237
245 opflex::modb::ObjectListener* listener)
246 {
247 unregisterListener(opflex::ofcore::OFFramework::defaultInstance(), listener);
248 }
249
255 opflex::ofcore::OFFramework& framework,
256 const opflex::modb::URI& uri,
257 const OF_SHARED_PTR<const opflex::modb::mointernal::ObjectInstance>& oi)
258 : MO(framework, CLASS_ID, uri, oi) { }
259}; // class Ep
260
261} // namespace dci
262} // namespace modelgbp
263#endif // GI_DCI_EP_HPP
static boost::optional< OF_SHARED_PTR< modelgbp::dci::EpToUnivRSrc > > resolve()
Retrieve an instance of EpToUnivRSrc from the default managed object store by constructing its URI fr...
Definition EpToUnivRSrc.hpp:309
static boost::optional< OF_SHARED_PTR< modelgbp::dci::Ep > > resolve(opflex::ofcore::OFFramework &framework, const opflex::modb::URI &uri)
Retrieve an instance of Ep from the managed object store.
Definition Ep.hpp:46
static boost::optional< OF_SHARED_PTR< modelgbp::dci::Ep > > resolve(opflex::ofcore::OFFramework &framework)
Retrieve an instance of Ep from the managed object store by constructing its URI from the path elemen...
Definition Ep.hpp:84
static void remove(opflex::ofcore::OFFramework &framework, const opflex::modb::URI &uri)
Remove the Ep object with the specified URI using the currently-active mutator.
Definition Ep.hpp:167
static const opflex::modb::class_id_t CLASS_ID
The unique class ID for Ep.
Definition Ep.hpp:33
boost::optional< OF_SHARED_PTR< modelgbp::dci::EpToUnivRSrc > > resolveDciEpToUnivRSrc()
Retrieve the child object with the specified naming properties.
Definition Ep.hpp:118
void remove()
Remove this instance using the currently-active mutator.
Definition Ep.hpp:152
Ep(opflex::ofcore::OFFramework &framework, const opflex::modb::URI &uri, const OF_SHARED_PTR< const opflex::modb::mointernal::ObjectInstance > &oi)
Construct an instance of Ep.
Definition Ep.hpp:254
OF_SHARED_PTR< modelgbp::dci::EpToUnivRSrc > addDciEpToUnivRSrc()
Create a new child object with the specified naming properties and make it a child of this object in ...
Definition Ep.hpp:134
static void unregisterListener(opflex::ofcore::OFFramework &framework, opflex::modb::ObjectListener *listener)
Unregister a listener from updates to this class.
Definition Ep.hpp:230
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 Ep.hpp:199
static boost::optional< OF_SHARED_PTR< modelgbp::dci::Ep > > resolve()
Retrieve an instance of Ep from the default managed object store by constructing its URI from the pat...
Definition Ep.hpp:103
static void unregisterListener(opflex::modb::ObjectListener *listener)
Unregister a listener from updates to this class from the default framework instance.
Definition Ep.hpp:244
static boost::optional< OF_SHARED_PTR< modelgbp::dci::Ep > > resolve(const opflex::modb::URI &uri)
Retrieve an instance of Ep from the managed object store using the default framework instance.
Definition Ep.hpp:64
static void remove(const opflex::modb::URI &uri)
Remove the Ep object with the specified URI using the currently-active mutator and the default framew...
Definition Ep.hpp:183
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 Ep.hpp:218
SOME COPYRIGHT.
Definition OpcodeEnumT.hpp:12