modelgbp Generated OpFlex Model  1.9.0
RemoteEndpointInventory.hpp
1 
10 #pragma once
11 #ifndef GI_INV_REMOTEENDPOINTINVENTORY_HPP
12 #define GI_INV_REMOTEENDPOINTINVENTORY_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(domain/ConfigFromRemoteEndpointInventoryRTgt)
19  */
20 #include "modelgbp/domain/ConfigFromRemoteEndpointInventoryRTgt.hpp"
21 /*
22  * contains: item:mclass(inv/RemoteInventoryEp)
23  */
24 #include "modelgbp/inv/RemoteInventoryEp.hpp"
25 
26 namespace modelgbp {
27 namespace inv {
28 
30  : public opflex::modb::mointernal::MO
31 {
32 public:
33 
37  static const opflex::modb::class_id_t CLASS_ID = 141;
38 
50  static boost::optional<OF_SHARED_PTR<modelgbp::inv::RemoteEndpointInventory> > resolve(
51  opflex::ofcore::OFFramework& framework,
52  const opflex::modb::URI& uri)
53  {
54  return opflex::modb::mointernal::MO::resolve<modelgbp::inv::RemoteEndpointInventory>(framework, CLASS_ID, uri);
55  }
56 
68  static boost::optional<OF_SHARED_PTR<modelgbp::inv::RemoteEndpointInventory> > resolve(
69  const opflex::modb::URI& uri)
70  {
71  return opflex::modb::mointernal::MO::resolve<modelgbp::inv::RemoteEndpointInventory>(opflex::ofcore::OFFramework::defaultInstance(), CLASS_ID, uri);
72  }
73 
88  static boost::optional<OF_SHARED_PTR<modelgbp::inv::RemoteEndpointInventory> > resolve(
89  opflex::ofcore::OFFramework& framework)
90  {
91  return resolve(framework,opflex::modb::URIBuilder().addElement("InvUniverse").addElement("InvRemoteEndpointInventory").build());
92  }
93 
107  static boost::optional<OF_SHARED_PTR<modelgbp::inv::RemoteEndpointInventory> > resolve(
108  )
109  {
110  return resolve(opflex::ofcore::OFFramework::defaultInstance());
111  }
112 
124  boost::optional<OF_SHARED_PTR<modelgbp::domain::ConfigFromRemoteEndpointInventoryRTgt> > resolveDomainConfigFromRemoteEndpointInventoryRTgt(
125  const std::string& domainConfigFromRemoteEndpointInventoryRTgtSource)
126  {
127  return modelgbp::domain::ConfigFromRemoteEndpointInventoryRTgt::resolve(getFramework(), opflex::modb::URIBuilder(getURI()).addElement("DomainConfigFromRemoteEndpointInventoryRTgt").addElement(domainConfigFromRemoteEndpointInventoryRTgtSource).build());
128  }
129 
142  OF_SHARED_PTR<modelgbp::domain::ConfigFromRemoteEndpointInventoryRTgt> addDomainConfigFromRemoteEndpointInventoryRTgt(
143  const std::string& domainConfigFromRemoteEndpointInventoryRTgtSource)
144  {
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()
148  );
149  result->setSource(domainConfigFromRemoteEndpointInventoryRTgtSource);
150  return result;
151  }
152 
167  void resolveDomainConfigFromRemoteEndpointInventoryRTgt(/* out */ std::vector<OF_SHARED_PTR<modelgbp::domain::ConfigFromRemoteEndpointInventoryRTgt> >& out)
168  {
169  opflex::modb::mointernal::MO::resolveChildren<modelgbp::domain::ConfigFromRemoteEndpointInventoryRTgt>(
170  getFramework(), CLASS_ID, getURI(), 2152104000ul, 64, out);
171  }
172 
184  boost::optional<OF_SHARED_PTR<modelgbp::inv::RemoteInventoryEp> > resolveInvRemoteInventoryEp(
185  const std::string& invRemoteInventoryEpUuid)
186  {
187  return modelgbp::inv::RemoteInventoryEp::resolve(getFramework(), opflex::modb::URIBuilder(getURI()).addElement("InvRemoteInventoryEp").addElement(invRemoteInventoryEpUuid).build());
188  }
189 
202  OF_SHARED_PTR<modelgbp::inv::RemoteInventoryEp> addInvRemoteInventoryEp(
203  const std::string& invRemoteInventoryEpUuid)
204  {
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()
208  );
209  result->setUuid(invRemoteInventoryEpUuid);
210  return result;
211  }
212 
227  void resolveInvRemoteInventoryEp(/* out */ std::vector<OF_SHARED_PTR<modelgbp::inv::RemoteInventoryEp> >& out)
228  {
229  opflex::modb::mointernal::MO::resolveChildren<modelgbp::inv::RemoteInventoryEp>(
230  getFramework(), CLASS_ID, getURI(), 2152104078ul, 142, out);
231  }
232 
241  void remove()
242  {
243  getTLMutator().remove(CLASS_ID, getURI());
244  }
245 
256  static void remove(opflex::ofcore::OFFramework& framework,
257  const opflex::modb::URI& uri)
258  {
259  MO::remove(framework, CLASS_ID, uri);
260  }
261 
272  static void remove(const opflex::modb::URI& uri)
273  {
274  remove(opflex::ofcore::OFFramework::defaultInstance(), uri);
275  }
276 
288  static void registerListener(
289  opflex::ofcore::OFFramework& framework,
290  opflex::modb::ObjectListener* listener)
291  {
292  opflex::modb::mointernal
293  ::MO::registerListener(framework, listener, CLASS_ID);
294  }
295 
307  static void registerListener(
308  opflex::modb::ObjectListener* listener)
309  {
310  registerListener(opflex::ofcore::OFFramework::defaultInstance(), listener);
311  }
312 
319  static void unregisterListener(
320  opflex::ofcore::OFFramework& framework,
321  opflex::modb::ObjectListener* listener)
322  {
323  opflex::modb::mointernal
324  ::MO::unregisterListener(framework, listener, CLASS_ID);
325  }
326 
333  static void unregisterListener(
334  opflex::modb::ObjectListener* listener)
335  {
336  unregisterListener(opflex::ofcore::OFFramework::defaultInstance(), listener);
337  }
338 
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) { }
348 }; // class RemoteEndpointInventory
349 
350 } // namespace inv
351 } // namespace modelgbp
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