11 #ifndef GI_INV_REMOTEENDPOINTINVENTORY_HPP
12 #define GI_INV_REMOTEENDPOINTINVENTORY_HPP
14 #include <boost/optional.hpp>
15 #include "opflex/modb/URIBuilder.h"
16 #include "opflex/modb/mo-internal/MO.h"
20 #include "modelgbp/domain/ConfigFromRemoteEndpointInventoryRTgt.hpp"
24 #include "modelgbp/inv/RemoteInventoryEp.hpp"
30 :
public opflex::modb::mointernal::MO
37 static const opflex::modb::class_id_t
CLASS_ID = 141;
50 static boost::optional<OF_SHARED_PTR<modelgbp::inv::RemoteEndpointInventory> >
resolve(
51 opflex::ofcore::OFFramework& framework,
52 const opflex::modb::URI& uri)
54 return opflex::modb::mointernal::MO::resolve<modelgbp::inv::RemoteEndpointInventory>(framework,
CLASS_ID, uri);
68 static boost::optional<OF_SHARED_PTR<modelgbp::inv::RemoteEndpointInventory> >
resolve(
69 const opflex::modb::URI& uri)
71 return opflex::modb::mointernal::MO::resolve<modelgbp::inv::RemoteEndpointInventory>(opflex::ofcore::OFFramework::defaultInstance(),
CLASS_ID, uri);
88 static boost::optional<OF_SHARED_PTR<modelgbp::inv::RemoteEndpointInventory> >
resolve(
89 opflex::ofcore::OFFramework& framework)
91 return resolve(framework,opflex::modb::URIBuilder().addElement(
"InvUniverse").addElement(
"InvRemoteEndpointInventory").build());
107 static boost::optional<OF_SHARED_PTR<modelgbp::inv::RemoteEndpointInventory> >
resolve(
110 return resolve(opflex::ofcore::OFFramework::defaultInstance());
125 const std::string& domainConfigFromRemoteEndpointInventoryRTgtSource)
143 const std::string& domainConfigFromRemoteEndpointInventoryRTgtSource)
145 OF_SHARED_PTR<modelgbp::domain::ConfigFromRemoteEndpointInventoryRTgt> result = addChild<modelgbp::domain::ConfigFromRemoteEndpointInventoryRTgt>(
146 CLASS_ID, getURI(), 2152104000ul, 64,
147 opflex::modb::URIBuilder(getURI()).addElement(
"DomainConfigFromRemoteEndpointInventoryRTgt").addElement(domainConfigFromRemoteEndpointInventoryRTgtSource).build()
149 result->setSource(domainConfigFromRemoteEndpointInventoryRTgtSource);
169 opflex::modb::mointernal::MO::resolveChildren<modelgbp::domain::ConfigFromRemoteEndpointInventoryRTgt>(
170 getFramework(),
CLASS_ID, getURI(), 2152104000ul, 64, out);
185 const std::string& invRemoteInventoryEpUuid)
203 const std::string& invRemoteInventoryEpUuid)
205 OF_SHARED_PTR<modelgbp::inv::RemoteInventoryEp> result = addChild<modelgbp::inv::RemoteInventoryEp>(
206 CLASS_ID, getURI(), 2152104078ul, 142,
207 opflex::modb::URIBuilder(getURI()).addElement(
"InvRemoteInventoryEp").addElement(invRemoteInventoryEpUuid).build()
209 result->setUuid(invRemoteInventoryEpUuid);
229 opflex::modb::mointernal::MO::resolveChildren<modelgbp::inv::RemoteInventoryEp>(
230 getFramework(),
CLASS_ID, getURI(), 2152104078ul, 142, out);
243 getTLMutator().remove(
CLASS_ID, getURI());
256 static void remove(opflex::ofcore::OFFramework& framework,
257 const opflex::modb::URI& uri)
259 MO::remove(framework,
CLASS_ID, uri);
272 static void remove(
const opflex::modb::URI& uri)
274 remove(opflex::ofcore::OFFramework::defaultInstance(), uri);
289 opflex::ofcore::OFFramework& framework,
290 opflex::modb::ObjectListener* listener)
292 opflex::modb::mointernal
293 ::MO::registerListener(framework, listener,
CLASS_ID);
308 opflex::modb::ObjectListener* listener)
320 opflex::ofcore::OFFramework& framework,
321 opflex::modb::ObjectListener* listener)
323 opflex::modb::mointernal
324 ::MO::unregisterListener(framework, listener,
CLASS_ID);
334 opflex::modb::ObjectListener* listener)
344 opflex::ofcore::OFFramework& framework,
345 const opflex::modb::URI& uri,
346 const OF_SHARED_PTR<const opflex::modb::mointernal::ObjectInstance>& oi)
347 : MO(framework,
CLASS_ID, uri, oi) { }
352 #endif // GI_INV_REMOTEENDPOINTINVENTORY_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: RemoteEndpointInventory.hpp:307
static boost::optional< OF_SHARED_PTR< modelgbp::domain::ConfigFromRemoteEndpointInventoryRTgt > > resolve(opflex::ofcore::OFFramework &framework, const opflex::modb::URI &uri)
Retrieve an instance of ConfigFromRemoteEndpointInventoryRTgt from the managed object store...
Definition: ConfigFromRemoteEndpointInventoryRTgt.hpp:210
void resolveDomainConfigFromRemoteEndpointInventoryRTgt(std::vector< OF_SHARED_PTR< modelgbp::domain::ConfigFromRemoteEndpointInventoryRTgt > > &out)
Resolve and retrieve all of the immediate children of type modelgbp::domain::ConfigFromRemoteEndpoint...
Definition: RemoteEndpointInventory.hpp:167
static boost::optional< OF_SHARED_PTR< modelgbp::inv::RemoteEndpointInventory > > resolve(const opflex::modb::URI &uri)
Retrieve an instance of RemoteEndpointInventory from the managed object store using the default frame...
Definition: RemoteEndpointInventory.hpp:68
void resolveInvRemoteInventoryEp(std::vector< OF_SHARED_PTR< modelgbp::inv::RemoteInventoryEp > > &out)
Resolve and retrieve all of the immediate children of type modelgbp::inv::RemoteInventoryEp.
Definition: RemoteEndpointInventory.hpp:227
boost::optional< OF_SHARED_PTR< modelgbp::domain::ConfigFromRemoteEndpointInventoryRTgt > > resolveDomainConfigFromRemoteEndpointInventoryRTgt(const std::string &domainConfigFromRemoteEndpointInventoryRTgtSource)
Retrieve the child object with the specified naming properties.
Definition: RemoteEndpointInventory.hpp:124
static void unregisterListener(opflex::ofcore::OFFramework &framework, opflex::modb::ObjectListener *listener)
Unregister a listener from updates to this class.
Definition: RemoteEndpointInventory.hpp:319
OF_SHARED_PTR< modelgbp::inv::RemoteInventoryEp > addInvRemoteInventoryEp(const std::string &invRemoteInventoryEpUuid)
Create a new child object with the specified naming properties and make it a child of this object in ...
Definition: RemoteEndpointInventory.hpp:202
Definition: RemoteEndpointInventory.hpp:29
OF_SHARED_PTR< modelgbp::domain::ConfigFromRemoteEndpointInventoryRTgt > addDomainConfigFromRemoteEndpointInventoryRTgt(const std::string &domainConfigFromRemoteEndpointInventoryRTgtSource)
Create a new child object with the specified naming properties and make it a child of this object in ...
Definition: RemoteEndpointInventory.hpp:142
static boost::optional< OF_SHARED_PTR< modelgbp::inv::RemoteEndpointInventory > > resolve(opflex::ofcore::OFFramework &framework, const opflex::modb::URI &uri)
Retrieve an instance of RemoteEndpointInventory from the managed object store.
Definition: RemoteEndpointInventory.hpp:50
boost::optional< OF_SHARED_PTR< modelgbp::inv::RemoteInventoryEp > > resolveInvRemoteInventoryEp(const std::string &invRemoteInventoryEpUuid)
Retrieve the child object with the specified naming properties.
Definition: RemoteEndpointInventory.hpp:184
static boost::optional< OF_SHARED_PTR< modelgbp::inv::RemoteInventoryEp > > resolve(opflex::ofcore::OFFramework &framework, const opflex::modb::URI &uri)
Retrieve an instance of RemoteInventoryEp from the managed object store.
Definition: RemoteInventoryEp.hpp:218
static boost::optional< OF_SHARED_PTR< modelgbp::inv::RemoteEndpointInventory > > resolve()
Retrieve an instance of RemoteEndpointInventory from the default managed object store by constructing...
Definition: RemoteEndpointInventory.hpp:107
static void unregisterListener(opflex::modb::ObjectListener *listener)
Unregister a listener from updates to this class from the default framework instance.
Definition: RemoteEndpointInventory.hpp:333
RemoteEndpointInventory(opflex::ofcore::OFFramework &framework, const opflex::modb::URI &uri, const OF_SHARED_PTR< const opflex::modb::mointernal::ObjectInstance > &oi)
Construct an instance of RemoteEndpointInventory.
Definition: RemoteEndpointInventory.hpp:343
static const opflex::modb::class_id_t CLASS_ID
The unique class ID for RemoteEndpointInventory.
Definition: RemoteEndpointInventory.hpp:37
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: RemoteEndpointInventory.hpp:288
static boost::optional< OF_SHARED_PTR< modelgbp::inv::RemoteEndpointInventory > > resolve(opflex::ofcore::OFFramework &framework)
Retrieve an instance of RemoteEndpointInventory from the managed object store by constructing its URI...
Definition: RemoteEndpointInventory.hpp:88