modelgbp Generated OpFlex Model 1.7.0
ReportedEpAttributeSet.hpp
1
10#pragma once
11#ifndef GI_GBPE_REPORTEDEPATTRIBUTESET_HPP
12#define GI_GBPE_REPORTEDEPATTRIBUTESET_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/ReportedEpAttribute)
19 */
20#include "modelgbp/gbpe/ReportedEpAttribute.hpp"
21
22namespace modelgbp {
23namespace gbpe {
24
26 : public opflex::modb::mointernal::MO
27{
28public:
29
33 static const opflex::modb::class_id_t CLASS_ID = 38;
34
46 static boost::optional<OF_SHARED_PTR<modelgbp::gbpe::ReportedEpAttributeSet> > resolve(
47 opflex::ofcore::OFFramework& framework,
48 const opflex::modb::URI& uri)
49 {
50 return opflex::modb::mointernal::MO::resolve<modelgbp::gbpe::ReportedEpAttributeSet>(framework, CLASS_ID, uri);
51 }
52
64 static boost::optional<OF_SHARED_PTR<modelgbp::gbpe::ReportedEpAttributeSet> > resolve(
65 const opflex::modb::URI& uri)
66 {
67 return opflex::modb::mointernal::MO::resolve<modelgbp::gbpe::ReportedEpAttributeSet>(opflex::ofcore::OFFramework::defaultInstance(), CLASS_ID, uri);
68 }
69
88 static boost::optional<OF_SHARED_PTR<modelgbp::gbpe::ReportedEpAttributeSet> > resolve(
89 opflex::ofcore::OFFramework& framework,
90 const std::string& eprL2EpContext,
91 const opflex::modb::MAC& eprL2EpMac)
92 {
93 return resolve(framework,opflex::modb::URIBuilder().addElement("EprL2Universe").addElement("EprL2Ep").addElement(eprL2EpContext).addElement(eprL2EpMac).addElement("GbpeReportedEpAttributeSet").build());
94 }
95
113 static boost::optional<OF_SHARED_PTR<modelgbp::gbpe::ReportedEpAttributeSet> > resolve(
114 const std::string& eprL2EpContext,
115 const opflex::modb::MAC& eprL2EpMac)
116 {
117 return resolve(opflex::ofcore::OFFramework::defaultInstance(),eprL2EpContext,eprL2EpMac);
118 }
119
138 static boost::optional<OF_SHARED_PTR<modelgbp::gbpe::ReportedEpAttributeSet> > resolve(
139 opflex::ofcore::OFFramework& framework,
140 const std::string& eprL3EpContext,
141 const std::string& eprL3EpIp)
142 {
143 return resolve(framework,opflex::modb::URIBuilder().addElement("EprL3Universe").addElement("EprL3Ep").addElement(eprL3EpContext).addElement(eprL3EpIp).addElement("GbpeReportedEpAttributeSet").build());
144 }
145
163 static boost::optional<OF_SHARED_PTR<modelgbp::gbpe::ReportedEpAttributeSet> > resolve(
164 const std::string& eprL3EpContext,
165 const std::string& eprL3EpIp)
166 {
167 return resolve(opflex::ofcore::OFFramework::defaultInstance(),eprL3EpContext,eprL3EpIp);
168 }
169
181 boost::optional<OF_SHARED_PTR<modelgbp::gbpe::ReportedEpAttribute> > resolveGbpeReportedEpAttribute(
182 const std::string& gbpeReportedEpAttributeName)
183 {
184 return modelgbp::gbpe::ReportedEpAttribute::resolve(getFramework(), opflex::modb::URIBuilder(getURI()).addElement("GbpeReportedEpAttribute").addElement(gbpeReportedEpAttributeName).build());
185 }
186
199 OF_SHARED_PTR<modelgbp::gbpe::ReportedEpAttribute> addGbpeReportedEpAttribute(
200 const std::string& gbpeReportedEpAttributeName)
201 {
202 OF_SHARED_PTR<modelgbp::gbpe::ReportedEpAttribute> result = addChild<modelgbp::gbpe::ReportedEpAttribute>(
203 CLASS_ID, getURI(), 2148728871ul, 39,
204 opflex::modb::URIBuilder(getURI()).addElement("GbpeReportedEpAttribute").addElement(gbpeReportedEpAttributeName).build()
205 );
206 result->setName(gbpeReportedEpAttributeName);
207 return result;
208 }
209
224 void resolveGbpeReportedEpAttribute(/* out */ std::vector<OF_SHARED_PTR<modelgbp::gbpe::ReportedEpAttribute> >& out)
225 {
226 opflex::modb::mointernal::MO::resolveChildren<modelgbp::gbpe::ReportedEpAttribute>(
227 getFramework(), CLASS_ID, getURI(), 2148728871ul, 39, out);
228 }
229
238 void remove()
239 {
240 getTLMutator().remove(CLASS_ID, getURI());
241 }
242
253 static void remove(opflex::ofcore::OFFramework& framework,
254 const opflex::modb::URI& uri)
255 {
256 MO::remove(framework, CLASS_ID, uri);
257 }
258
269 static void remove(const opflex::modb::URI& uri)
270 {
271 remove(opflex::ofcore::OFFramework::defaultInstance(), uri);
272 }
273
290 static void remove(
291 opflex::ofcore::OFFramework& framework,
292 const std::string& eprL2EpContext,
293 const opflex::modb::MAC& eprL2EpMac)
294 {
295 MO::remove(framework, CLASS_ID, opflex::modb::URIBuilder().addElement("EprL2Universe").addElement("EprL2Ep").addElement(eprL2EpContext).addElement(eprL2EpMac).addElement("GbpeReportedEpAttributeSet").build());
296 }
297
314 static void remove(
315 const std::string& eprL2EpContext,
316 const opflex::modb::MAC& eprL2EpMac)
317 {
318 remove(opflex::ofcore::OFFramework::defaultInstance(),eprL2EpContext,eprL2EpMac);
319 }
320
337 static void remove(
338 opflex::ofcore::OFFramework& framework,
339 const std::string& eprL3EpContext,
340 const std::string& eprL3EpIp)
341 {
342 MO::remove(framework, CLASS_ID, opflex::modb::URIBuilder().addElement("EprL3Universe").addElement("EprL3Ep").addElement(eprL3EpContext).addElement(eprL3EpIp).addElement("GbpeReportedEpAttributeSet").build());
343 }
344
361 static void remove(
362 const std::string& eprL3EpContext,
363 const std::string& eprL3EpIp)
364 {
365 remove(opflex::ofcore::OFFramework::defaultInstance(),eprL3EpContext,eprL3EpIp);
366 }
367
379 static void registerListener(
380 opflex::ofcore::OFFramework& framework,
381 opflex::modb::ObjectListener* listener)
382 {
383 opflex::modb::mointernal
384 ::MO::registerListener(framework, listener, CLASS_ID);
385 }
386
398 static void registerListener(
399 opflex::modb::ObjectListener* listener)
400 {
401 registerListener(opflex::ofcore::OFFramework::defaultInstance(), listener);
402 }
403
411 opflex::ofcore::OFFramework& framework,
412 opflex::modb::ObjectListener* listener)
413 {
414 opflex::modb::mointernal
415 ::MO::unregisterListener(framework, listener, CLASS_ID);
416 }
417
425 opflex::modb::ObjectListener* listener)
426 {
427 unregisterListener(opflex::ofcore::OFFramework::defaultInstance(), listener);
428 }
429
435 opflex::ofcore::OFFramework& framework,
436 const opflex::modb::URI& uri,
437 const OF_SHARED_PTR<const opflex::modb::mointernal::ObjectInstance>& oi)
438 : MO(framework, CLASS_ID, uri, oi) { }
439}; // class ReportedEpAttributeSet
440
441} // namespace gbpe
442} // namespace modelgbp
443#endif // GI_GBPE_REPORTEDEPATTRIBUTESET_HPP
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 ReportedEpAttributeSet.hpp:398
static void unregisterListener(opflex::modb::ObjectListener *listener)
Unregister a listener from updates to this class from the default framework instance.
Definition ReportedEpAttributeSet.hpp:424
static void remove(opflex::ofcore::OFFramework &framework, const std::string &eprL2EpContext, const opflex::modb::MAC &eprL2EpMac)
Remove the ReportedEpAttributeSet object with the specified path elements from the managed object sto...
Definition ReportedEpAttributeSet.hpp:290
static boost::optional< OF_SHARED_PTR< modelgbp::gbpe::ReportedEpAttributeSet > > resolve(const opflex::modb::URI &uri)
Retrieve an instance of ReportedEpAttributeSet from the managed object store using the default framew...
Definition ReportedEpAttributeSet.hpp:64
OF_SHARED_PTR< modelgbp::gbpe::ReportedEpAttribute > addGbpeReportedEpAttribute(const std::string &gbpeReportedEpAttributeName)
Create a new child object with the specified naming properties and make it a child of this object in ...
Definition ReportedEpAttributeSet.hpp:199
void remove()
Remove this instance using the currently-active mutator.
Definition ReportedEpAttributeSet.hpp:238
boost::optional< OF_SHARED_PTR< modelgbp::gbpe::ReportedEpAttribute > > resolveGbpeReportedEpAttribute(const std::string &gbpeReportedEpAttributeName)
Retrieve the child object with the specified naming properties.
Definition ReportedEpAttributeSet.hpp:181
static void remove(opflex::ofcore::OFFramework &framework, const opflex::modb::URI &uri)
Remove the ReportedEpAttributeSet object with the specified URI using the currently-active mutator.
Definition ReportedEpAttributeSet.hpp:253
static boost::optional< OF_SHARED_PTR< modelgbp::gbpe::ReportedEpAttributeSet > > resolve(const std::string &eprL3EpContext, const std::string &eprL3EpIp)
Retrieve an instance of ReportedEpAttributeSet from the default managed object store by constructing ...
Definition ReportedEpAttributeSet.hpp:163
static void remove(opflex::ofcore::OFFramework &framework, const std::string &eprL3EpContext, const std::string &eprL3EpIp)
Remove the ReportedEpAttributeSet object with the specified path elements from the managed object sto...
Definition ReportedEpAttributeSet.hpp:337
static void remove(const std::string &eprL2EpContext, const opflex::modb::MAC &eprL2EpMac)
Remove the ReportedEpAttributeSet object with the specified path elements from the managed object sto...
Definition ReportedEpAttributeSet.hpp:314
static const opflex::modb::class_id_t CLASS_ID
The unique class ID for ReportedEpAttributeSet.
Definition ReportedEpAttributeSet.hpp:33
static boost::optional< OF_SHARED_PTR< modelgbp::gbpe::ReportedEpAttributeSet > > resolve(opflex::ofcore::OFFramework &framework, const std::string &eprL2EpContext, const opflex::modb::MAC &eprL2EpMac)
Retrieve an instance of ReportedEpAttributeSet from the managed object store by constructing its URI ...
Definition ReportedEpAttributeSet.hpp:88
void resolveGbpeReportedEpAttribute(std::vector< OF_SHARED_PTR< modelgbp::gbpe::ReportedEpAttribute > > &out)
Resolve and retrieve all of the immediate children of type modelgbp::gbpe::ReportedEpAttribute.
Definition ReportedEpAttributeSet.hpp:224
static void remove(const opflex::modb::URI &uri)
Remove the ReportedEpAttributeSet object with the specified URI using the currently-active mutator an...
Definition ReportedEpAttributeSet.hpp:269
static boost::optional< OF_SHARED_PTR< modelgbp::gbpe::ReportedEpAttributeSet > > resolve(opflex::ofcore::OFFramework &framework, const std::string &eprL3EpContext, const std::string &eprL3EpIp)
Retrieve an instance of ReportedEpAttributeSet from the managed object store by constructing its URI ...
Definition ReportedEpAttributeSet.hpp:138
static void unregisterListener(opflex::ofcore::OFFramework &framework, opflex::modb::ObjectListener *listener)
Unregister a listener from updates to this class.
Definition ReportedEpAttributeSet.hpp:410
ReportedEpAttributeSet(opflex::ofcore::OFFramework &framework, const opflex::modb::URI &uri, const OF_SHARED_PTR< const opflex::modb::mointernal::ObjectInstance > &oi)
Construct an instance of ReportedEpAttributeSet.
Definition ReportedEpAttributeSet.hpp:434
static boost::optional< OF_SHARED_PTR< modelgbp::gbpe::ReportedEpAttributeSet > > resolve(opflex::ofcore::OFFramework &framework, const opflex::modb::URI &uri)
Retrieve an instance of ReportedEpAttributeSet from the managed object store.
Definition ReportedEpAttributeSet.hpp:46
static void remove(const std::string &eprL3EpContext, const std::string &eprL3EpIp)
Remove the ReportedEpAttributeSet object with the specified path elements from the managed object sto...
Definition ReportedEpAttributeSet.hpp:361
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 ReportedEpAttributeSet.hpp:379
static boost::optional< OF_SHARED_PTR< modelgbp::gbpe::ReportedEpAttributeSet > > resolve(const std::string &eprL2EpContext, const opflex::modb::MAC &eprL2EpMac)
Retrieve an instance of ReportedEpAttributeSet from the default managed object store by constructing ...
Definition ReportedEpAttributeSet.hpp:113
static boost::optional< OF_SHARED_PTR< modelgbp::gbpe::ReportedEpAttribute > > resolve(opflex::ofcore::OFFramework &framework, const opflex::modb::URI &uri)
Retrieve an instance of ReportedEpAttribute from the managed object store.
Definition ReportedEpAttribute.hpp:154
SOME COPYRIGHT.
Definition OpcodeEnumT.hpp:12