modelgbp Generated OpFlex Model 1.7.0
L2Discovered.hpp
1
10#pragma once
11#ifndef GI_EPDR_L2DISCOVERED_HPP
12#define GI_EPDR_L2DISCOVERED_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(epdr/LocalL2Ep)
19 */
20#include "modelgbp/epdr/LocalL2Ep.hpp"
21
22namespace modelgbp {
23namespace epdr {
24
26 : public opflex::modb::mointernal::MO
27{
28public:
29
33 static const opflex::modb::class_id_t CLASS_ID = 111;
34
46 static boost::optional<OF_SHARED_PTR<modelgbp::epdr::L2Discovered> > resolve(
47 opflex::ofcore::OFFramework& framework,
48 const opflex::modb::URI& uri)
49 {
50 return opflex::modb::mointernal::MO::resolve<modelgbp::epdr::L2Discovered>(framework, CLASS_ID, uri);
51 }
52
64 static boost::optional<OF_SHARED_PTR<modelgbp::epdr::L2Discovered> > resolve(
65 const opflex::modb::URI& uri)
66 {
67 return opflex::modb::mointernal::MO::resolve<modelgbp::epdr::L2Discovered>(opflex::ofcore::OFFramework::defaultInstance(), CLASS_ID, uri);
68 }
69
84 static boost::optional<OF_SHARED_PTR<modelgbp::epdr::L2Discovered> > resolve(
85 opflex::ofcore::OFFramework& framework)
86 {
87 return resolve(framework,opflex::modb::URIBuilder().addElement("EpdrL2Discovered").build());
88 }
89
103 static boost::optional<OF_SHARED_PTR<modelgbp::epdr::L2Discovered> > resolve(
104 )
105 {
106 return resolve(opflex::ofcore::OFFramework::defaultInstance());
107 }
108
120 boost::optional<OF_SHARED_PTR<modelgbp::epdr::LocalL2Ep> > resolveEpdrLocalL2Ep(
121 const std::string& epdrLocalL2EpUuid)
122 {
123 return modelgbp::epdr::LocalL2Ep::resolve(getFramework(), opflex::modb::URIBuilder(getURI()).addElement("EpdrLocalL2Ep").addElement(epdrLocalL2EpUuid).build());
124 }
125
138 OF_SHARED_PTR<modelgbp::epdr::LocalL2Ep> addEpdrLocalL2Ep(
139 const std::string& epdrLocalL2EpUuid)
140 {
141 OF_SHARED_PTR<modelgbp::epdr::LocalL2Ep> result = addChild<modelgbp::epdr::LocalL2Ep>(
142 CLASS_ID, getURI(), 2151121005ul, 109,
143 opflex::modb::URIBuilder(getURI()).addElement("EpdrLocalL2Ep").addElement(epdrLocalL2EpUuid).build()
144 );
145 result->setUuid(epdrLocalL2EpUuid);
146 return result;
147 }
148
163 void resolveEpdrLocalL2Ep(/* out */ std::vector<OF_SHARED_PTR<modelgbp::epdr::LocalL2Ep> >& out)
164 {
165 opflex::modb::mointernal::MO::resolveChildren<modelgbp::epdr::LocalL2Ep>(
166 getFramework(), CLASS_ID, getURI(), 2151121005ul, 109, out);
167 }
168
177 void remove()
178 {
179 getTLMutator().remove(CLASS_ID, getURI());
180 }
181
192 static void remove(opflex::ofcore::OFFramework& framework,
193 const opflex::modb::URI& uri)
194 {
195 MO::remove(framework, CLASS_ID, uri);
196 }
197
208 static void remove(const opflex::modb::URI& uri)
209 {
210 remove(opflex::ofcore::OFFramework::defaultInstance(), uri);
211 }
212
224 static void registerListener(
225 opflex::ofcore::OFFramework& framework,
226 opflex::modb::ObjectListener* listener)
227 {
228 opflex::modb::mointernal
229 ::MO::registerListener(framework, listener, CLASS_ID);
230 }
231
243 static void registerListener(
244 opflex::modb::ObjectListener* listener)
245 {
246 registerListener(opflex::ofcore::OFFramework::defaultInstance(), listener);
247 }
248
256 opflex::ofcore::OFFramework& framework,
257 opflex::modb::ObjectListener* listener)
258 {
259 opflex::modb::mointernal
260 ::MO::unregisterListener(framework, listener, CLASS_ID);
261 }
262
270 opflex::modb::ObjectListener* listener)
271 {
272 unregisterListener(opflex::ofcore::OFFramework::defaultInstance(), listener);
273 }
274
280 opflex::ofcore::OFFramework& framework,
281 const opflex::modb::URI& uri,
282 const OF_SHARED_PTR<const opflex::modb::mointernal::ObjectInstance>& oi)
283 : MO(framework, CLASS_ID, uri, oi) { }
284}; // class L2Discovered
285
286} // namespace epdr
287} // namespace modelgbp
288#endif // GI_EPDR_L2DISCOVERED_HPP
void remove()
Remove this instance using the currently-active mutator.
Definition L2Discovered.hpp:177
static void unregisterListener(opflex::ofcore::OFFramework &framework, opflex::modb::ObjectListener *listener)
Unregister a listener from updates to this class.
Definition L2Discovered.hpp:255
OF_SHARED_PTR< modelgbp::epdr::LocalL2Ep > addEpdrLocalL2Ep(const std::string &epdrLocalL2EpUuid)
Create a new child object with the specified naming properties and make it a child of this object in ...
Definition L2Discovered.hpp:138
static void unregisterListener(opflex::modb::ObjectListener *listener)
Unregister a listener from updates to this class from the default framework instance.
Definition L2Discovered.hpp:269
static boost::optional< OF_SHARED_PTR< modelgbp::epdr::L2Discovered > > resolve(const opflex::modb::URI &uri)
Retrieve an instance of L2Discovered from the managed object store using the default framework instan...
Definition L2Discovered.hpp:64
static boost::optional< OF_SHARED_PTR< modelgbp::epdr::L2Discovered > > resolve(opflex::ofcore::OFFramework &framework, const opflex::modb::URI &uri)
Retrieve an instance of L2Discovered from the managed object store.
Definition L2Discovered.hpp:46
boost::optional< OF_SHARED_PTR< modelgbp::epdr::LocalL2Ep > > resolveEpdrLocalL2Ep(const std::string &epdrLocalL2EpUuid)
Retrieve the child object with the specified naming properties.
Definition L2Discovered.hpp:120
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 L2Discovered.hpp:243
void resolveEpdrLocalL2Ep(std::vector< OF_SHARED_PTR< modelgbp::epdr::LocalL2Ep > > &out)
Resolve and retrieve all of the immediate children of type modelgbp::epdr::LocalL2Ep.
Definition L2Discovered.hpp:163
static void remove(opflex::ofcore::OFFramework &framework, const opflex::modb::URI &uri)
Remove the L2Discovered object with the specified URI using the currently-active mutator.
Definition L2Discovered.hpp:192
static boost::optional< OF_SHARED_PTR< modelgbp::epdr::L2Discovered > > resolve()
Retrieve an instance of L2Discovered from the default managed object store by constructing its URI fr...
Definition L2Discovered.hpp:103
static const opflex::modb::class_id_t CLASS_ID
The unique class ID for L2Discovered.
Definition L2Discovered.hpp:33
static boost::optional< OF_SHARED_PTR< modelgbp::epdr::L2Discovered > > resolve(opflex::ofcore::OFFramework &framework)
Retrieve an instance of L2Discovered from the managed object store by constructing its URI from the p...
Definition L2Discovered.hpp:84
L2Discovered(opflex::ofcore::OFFramework &framework, const opflex::modb::URI &uri, const OF_SHARED_PTR< const opflex::modb::mointernal::ObjectInstance > &oi)
Construct an instance of L2Discovered.
Definition L2Discovered.hpp:279
static void remove(const opflex::modb::URI &uri)
Remove the L2Discovered object with the specified URI using the currently-active mutator and the defa...
Definition L2Discovered.hpp:208
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 L2Discovered.hpp:224
static boost::optional< OF_SHARED_PTR< modelgbp::epdr::LocalL2Ep > > resolve(opflex::ofcore::OFFramework &framework, const opflex::modb::URI &uri)
Retrieve an instance of LocalL2Ep from the managed object store.
Definition LocalL2Ep.hpp:166
SOME COPYRIGHT.
Definition OpcodeEnumT.hpp:12