11 #ifndef GI_GBPE_REPORTEDEPATTRIBUTESET_HPP 12 #define GI_GBPE_REPORTEDEPATTRIBUTESET_HPP 14 #include <boost/optional.hpp> 15 #include "opflex/modb/URIBuilder.h" 16 #include "opflex/modb/mo-internal/MO.h" 20 #include "modelgbp/gbpe/ReportedEpAttribute.hpp" 26 :
public opflex::modb::mointernal::MO
33 static const opflex::modb::class_id_t
CLASS_ID = 38;
46 static boost::optional<OF_SHARED_PTR<modelgbp::gbpe::ReportedEpAttributeSet> >
resolve(
47 opflex::ofcore::OFFramework& framework,
48 const opflex::modb::URI& uri)
50 return opflex::modb::mointernal::MO::resolve<modelgbp::gbpe::ReportedEpAttributeSet>(framework,
CLASS_ID, uri);
64 static boost::optional<OF_SHARED_PTR<modelgbp::gbpe::ReportedEpAttributeSet> >
resolve(
65 const opflex::modb::URI& uri)
67 return opflex::modb::mointernal::MO::resolve<modelgbp::gbpe::ReportedEpAttributeSet>(opflex::ofcore::OFFramework::defaultInstance(),
CLASS_ID, uri);
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)
93 return resolve(framework,opflex::modb::URIBuilder().addElement(
"EprL2Universe").addElement(
"EprL2Ep").addElement(eprL2EpContext).addElement(eprL2EpMac).addElement(
"GbpeReportedEpAttributeSet").build());
113 static boost::optional<OF_SHARED_PTR<modelgbp::gbpe::ReportedEpAttributeSet> >
resolve(
114 const std::string& eprL2EpContext,
115 const opflex::modb::MAC& eprL2EpMac)
117 return resolve(opflex::ofcore::OFFramework::defaultInstance(),eprL2EpContext,eprL2EpMac);
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)
143 return resolve(framework,opflex::modb::URIBuilder().addElement(
"EprL3Universe").addElement(
"EprL3Ep").addElement(eprL3EpContext).addElement(eprL3EpIp).addElement(
"GbpeReportedEpAttributeSet").build());
163 static boost::optional<OF_SHARED_PTR<modelgbp::gbpe::ReportedEpAttributeSet> >
resolve(
164 const std::string& eprL3EpContext,
165 const std::string& eprL3EpIp)
167 return resolve(opflex::ofcore::OFFramework::defaultInstance(),eprL3EpContext,eprL3EpIp);
182 const std::string& gbpeReportedEpAttributeName)
200 const std::string& gbpeReportedEpAttributeName)
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()
206 result->setName(gbpeReportedEpAttributeName);
226 opflex::modb::mointernal::MO::resolveChildren<modelgbp::gbpe::ReportedEpAttribute>(
227 getFramework(),
CLASS_ID, getURI(), 2148728871ul, 39, out);
240 getTLMutator().remove(
CLASS_ID, getURI());
253 static void remove(opflex::ofcore::OFFramework& framework,
254 const opflex::modb::URI& uri)
256 MO::remove(framework,
CLASS_ID, uri);
269 static void remove(
const opflex::modb::URI& uri)
271 remove(opflex::ofcore::OFFramework::defaultInstance(), uri);
291 opflex::ofcore::OFFramework& framework,
292 const std::string& eprL2EpContext,
293 const opflex::modb::MAC& eprL2EpMac)
295 MO::remove(framework,
CLASS_ID, opflex::modb::URIBuilder().addElement(
"EprL2Universe").addElement(
"EprL2Ep").addElement(eprL2EpContext).addElement(eprL2EpMac).addElement(
"GbpeReportedEpAttributeSet").build());
315 const std::string& eprL2EpContext,
316 const opflex::modb::MAC& eprL2EpMac)
318 remove(opflex::ofcore::OFFramework::defaultInstance(),eprL2EpContext,eprL2EpMac);
338 opflex::ofcore::OFFramework& framework,
339 const std::string& eprL3EpContext,
340 const std::string& eprL3EpIp)
342 MO::remove(framework,
CLASS_ID, opflex::modb::URIBuilder().addElement(
"EprL3Universe").addElement(
"EprL3Ep").addElement(eprL3EpContext).addElement(eprL3EpIp).addElement(
"GbpeReportedEpAttributeSet").build());
362 const std::string& eprL3EpContext,
363 const std::string& eprL3EpIp)
365 remove(opflex::ofcore::OFFramework::defaultInstance(),eprL3EpContext,eprL3EpIp);
380 opflex::ofcore::OFFramework& framework,
381 opflex::modb::ObjectListener* listener)
383 opflex::modb::mointernal
384 ::MO::registerListener(framework, listener,
CLASS_ID);
399 opflex::modb::ObjectListener* listener)
411 opflex::ofcore::OFFramework& framework,
412 opflex::modb::ObjectListener* listener)
414 opflex::modb::mointernal
415 ::MO::unregisterListener(framework, listener,
CLASS_ID);
425 opflex::modb::ObjectListener* listener)
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) { }
443 #endif // GI_GBPE_REPORTEDEPATTRIBUTESET_HPP 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 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::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
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 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
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
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
Definition: ReportedEpAttributeSet.hpp:25
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 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
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
static void unregisterListener(opflex::ofcore::OFFramework &framework, opflex::modb::ObjectListener *listener)
Unregister a listener from updates to this class.
Definition: ReportedEpAttributeSet.hpp:410
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 void unregisterListener(opflex::modb::ObjectListener *listener)
Unregister a listener from updates to this class from the default framework instance.
Definition: ReportedEpAttributeSet.hpp:424
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
SOME COPYRIGHT.
Definition: OpcodeEnumT.hpp:12
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
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