11 #ifndef GI_GBPE_EPGMAPPINGCTX_HPP
12 #define GI_GBPE_EPGMAPPINGCTX_HPP
14 #include <boost/optional.hpp>
15 #include "opflex/modb/URIBuilder.h"
16 #include "opflex/modb/mo-internal/MO.h"
20 #include "modelgbp/gbpe/EpgMappingCtxToEpgMappingRSrc.hpp"
24 #include "modelgbp/gbpe/EpgMappingCtxToAttrSetRSrc.hpp"
30 :
public opflex::modb::mointernal::MO
37 static const opflex::modb::class_id_t
CLASS_ID = 13;
50 static boost::optional<boost::shared_ptr<modelgbp::gbpe::EpgMappingCtx> >
resolve(
51 opflex::ofcore::OFFramework& framework,
52 const opflex::modb::URI& uri)
54 return opflex::modb::mointernal::MO::resolve<modelgbp::gbpe::EpgMappingCtx>(framework,
CLASS_ID, uri);
68 static boost::optional<boost::shared_ptr<modelgbp::gbpe::EpgMappingCtx> >
resolve(
69 const opflex::modb::URI& uri)
71 return opflex::modb::mointernal::MO::resolve<modelgbp::gbpe::EpgMappingCtx>(opflex::ofcore::OFFramework::defaultInstance(),
CLASS_ID, uri);
91 opflex::ofcore::OFFramework& framework,
92 const std::string& epdrLocalL2EpUuid)
94 return resolve(framework,opflex::modb::URIBuilder().addElement(
"EpdrL2Discovered").addElement(
"EpdrLocalL2Ep").addElement(epdrLocalL2EpUuid).addElement(
"GbpeEpgMappingCtx").build());
113 const std::string& epdrLocalL2EpUuid)
135 opflex::ofcore::OFFramework& framework,
136 const std::string& epdrLocalL3EpUuid)
138 return resolve(framework,opflex::modb::URIBuilder().addElement(
"EpdrL3Discovered").addElement(
"EpdrLocalL3Ep").addElement(epdrLocalL3EpUuid).addElement(
"GbpeEpgMappingCtx").build());
157 const std::string& epdrLocalL3EpUuid)
190 boost::shared_ptr<modelgbp::gbpe::EpgMappingCtxToEpgMappingRSrc> result = addChild<modelgbp::gbpe::EpgMappingCtxToEpgMappingRSrc>(
191 CLASS_ID, getURI(), 2147909646ul, 14,
192 opflex::modb::URIBuilder(getURI()).addElement(
"GbpeEpgMappingCtxToEpgMappingRSrc").build()
225 boost::shared_ptr<modelgbp::gbpe::EpgMappingCtxToAttrSetRSrc> result = addChild<modelgbp::gbpe::EpgMappingCtxToAttrSetRSrc>(
226 CLASS_ID, getURI(), 2147909649ul, 17,
227 opflex::modb::URIBuilder(getURI()).addElement(
"GbpeEpgMappingCtxToAttrSetRSrc").build()
242 getTLMutator().remove(
CLASS_ID, getURI());
255 static void remove(opflex::ofcore::OFFramework& framework,
256 const opflex::modb::URI& uri)
258 MO::remove(framework,
CLASS_ID, uri);
271 static void remove(
const opflex::modb::URI& uri)
273 remove(opflex::ofcore::OFFramework::defaultInstance(), uri);
291 opflex::ofcore::OFFramework& framework,
292 const std::string& epdrLocalL2EpUuid)
294 MO::remove(framework,
CLASS_ID, opflex::modb::URIBuilder().addElement(
"EpdrL2Discovered").addElement(
"EpdrLocalL2Ep").addElement(epdrLocalL2EpUuid).addElement(
"GbpeEpgMappingCtx").build());
312 const std::string& epdrLocalL2EpUuid)
332 opflex::ofcore::OFFramework& framework,
333 const std::string& epdrLocalL3EpUuid)
335 MO::remove(framework,
CLASS_ID, opflex::modb::URIBuilder().addElement(
"EpdrL3Discovered").addElement(
"EpdrLocalL3Ep").addElement(epdrLocalL3EpUuid).addElement(
"GbpeEpgMappingCtx").build());
353 const std::string& epdrLocalL3EpUuid)
370 opflex::ofcore::OFFramework& framework,
371 opflex::modb::ObjectListener* listener)
373 opflex::modb::mointernal
374 ::MO::registerListener(framework, listener,
CLASS_ID);
389 opflex::modb::ObjectListener* listener)
401 opflex::ofcore::OFFramework& framework,
402 opflex::modb::ObjectListener* listener)
404 opflex::modb::mointernal
405 ::MO::unregisterListener(framework, listener,
CLASS_ID);
415 opflex::modb::ObjectListener* listener)
425 opflex::ofcore::OFFramework& framework,
426 const opflex::modb::URI& uri,
427 const boost::shared_ptr<const opflex::modb::mointernal::ObjectInstance>& oi)
428 : MO(framework,
CLASS_ID, uri, oi) { }
433 #endif // GI_GBPE_EPGMAPPINGCTX_HPP
boost::shared_ptr< modelgbp::gbpe::EpgMappingCtxToEpgMappingRSrc > addGbpeEpgMappingCtxToEpgMappingRSrc()
Create a new child object with the specified naming properties and make it a child of this object in ...
Definition: EpgMappingCtx.hpp:187
static void unregisterListener(opflex::modb::ObjectListener *listener)
Unregister a listener from updates to this class from the default framework instance.
Definition: EpgMappingCtx.hpp:414
static boost::optional< boost::shared_ptr< modelgbp::gbpe::EpgMappingCtx > > resolveUnderEpdrL2DiscoveredEpdrLocalL2Ep(opflex::ofcore::OFFramework &framework, const std::string &epdrLocalL2EpUuid)
Retrieve an instance of EpgMappingCtx from the managed object store by constructing its URI from the ...
Definition: EpgMappingCtx.hpp:90
Definition: EpgMappingCtx.hpp:29
static void removeUnderEpdrL2DiscoveredEpdrLocalL2Ep(const std::string &epdrLocalL2EpUuid)
Remove the EpgMappingCtx object with the specified path elements from the managed object store using ...
Definition: EpgMappingCtx.hpp:311
static boost::optional< boost::shared_ptr< modelgbp::gbpe::EpgMappingCtx > > resolveUnderEpdrL3DiscoveredEpdrLocalL3Ep(const std::string &epdrLocalL3EpUuid)
Retrieve an instance of EpgMappingCtx from the default managed object store by constructing its URI f...
Definition: EpgMappingCtx.hpp:156
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: EpgMappingCtx.hpp:369
static const opflex::modb::class_id_t CLASS_ID
The unique class ID for EpgMappingCtx.
Definition: EpgMappingCtx.hpp:37
static void removeUnderEpdrL3DiscoveredEpdrLocalL3Ep(opflex::ofcore::OFFramework &framework, const std::string &epdrLocalL3EpUuid)
Remove the EpgMappingCtx object with the specified path elements from the managed object store...
Definition: EpgMappingCtx.hpp:331
static void unregisterListener(opflex::ofcore::OFFramework &framework, opflex::modb::ObjectListener *listener)
Unregister a listener from updates to this class.
Definition: EpgMappingCtx.hpp:400
static boost::optional< boost::shared_ptr< modelgbp::gbpe::EpgMappingCtx > > resolveUnderEpdrL3DiscoveredEpdrLocalL3Ep(opflex::ofcore::OFFramework &framework, const std::string &epdrLocalL3EpUuid)
Retrieve an instance of EpgMappingCtx from the managed object store by constructing its URI from the ...
Definition: EpgMappingCtx.hpp:134
static void removeUnderEpdrL2DiscoveredEpdrLocalL2Ep(opflex::ofcore::OFFramework &framework, const std::string &epdrLocalL2EpUuid)
Remove the EpgMappingCtx object with the specified path elements from the managed object store...
Definition: EpgMappingCtx.hpp:290
boost::shared_ptr< modelgbp::gbpe::EpgMappingCtxToAttrSetRSrc > addGbpeEpgMappingCtxToAttrSetRSrc()
Create a new child object with the specified naming properties and make it a child of this object in ...
Definition: EpgMappingCtx.hpp:222
static boost::optional< boost::shared_ptr< modelgbp::gbpe::EpgMappingCtxToEpgMappingRSrc > > resolve(opflex::ofcore::OFFramework &framework, const opflex::modb::URI &uri)
Retrieve an instance of EpgMappingCtxToEpgMappingRSrc from the managed object store.
Definition: EpgMappingCtxToEpgMappingRSrc.hpp:254
static boost::optional< boost::shared_ptr< modelgbp::gbpe::EpgMappingCtxToAttrSetRSrc > > resolve(opflex::ofcore::OFFramework &framework, const opflex::modb::URI &uri)
Retrieve an instance of EpgMappingCtxToAttrSetRSrc from the managed object store. ...
Definition: EpgMappingCtxToAttrSetRSrc.hpp:254
boost::optional< boost::shared_ptr< modelgbp::gbpe::EpgMappingCtxToEpgMappingRSrc > > resolveGbpeEpgMappingCtxToEpgMappingRSrc()
Retrieve the child object with the specified naming properties.
Definition: EpgMappingCtx.hpp:171
boost::optional< boost::shared_ptr< modelgbp::gbpe::EpgMappingCtxToAttrSetRSrc > > resolveGbpeEpgMappingCtxToAttrSetRSrc()
Retrieve the child object with the specified naming properties.
Definition: EpgMappingCtx.hpp:206
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: EpgMappingCtx.hpp:388
static boost::optional< boost::shared_ptr< modelgbp::gbpe::EpgMappingCtx > > resolve(const opflex::modb::URI &uri)
Retrieve an instance of EpgMappingCtx from the managed object store using the default framework insta...
Definition: EpgMappingCtx.hpp:68
static boost::optional< boost::shared_ptr< modelgbp::gbpe::EpgMappingCtx > > resolveUnderEpdrL2DiscoveredEpdrLocalL2Ep(const std::string &epdrLocalL2EpUuid)
Retrieve an instance of EpgMappingCtx from the default managed object store by constructing its URI f...
Definition: EpgMappingCtx.hpp:112
static void removeUnderEpdrL3DiscoveredEpdrLocalL3Ep(const std::string &epdrLocalL3EpUuid)
Remove the EpgMappingCtx object with the specified path elements from the managed object store using ...
Definition: EpgMappingCtx.hpp:352
EpgMappingCtx(opflex::ofcore::OFFramework &framework, const opflex::modb::URI &uri, const boost::shared_ptr< const opflex::modb::mointernal::ObjectInstance > &oi)
Construct an instance of EpgMappingCtx.
Definition: EpgMappingCtx.hpp:424
static boost::optional< boost::shared_ptr< modelgbp::gbpe::EpgMappingCtx > > resolve(opflex::ofcore::OFFramework &framework, const opflex::modb::URI &uri)
Retrieve an instance of EpgMappingCtx from the managed object store.
Definition: EpgMappingCtx.hpp:50