11 #ifndef GI_DOMAIN_CONFIG_HPP
12 #define GI_DOMAIN_CONFIG_HPP
14 #include <boost/optional.hpp>
15 #include "opflex/modb/URIBuilder.h"
16 #include "opflex/modb/mo-internal/MO.h"
20 #include "modelgbp/domain/ConfigToConfigRSrc.hpp"
24 #include "modelgbp/domain/ConfigToEndpointInventoryRSrc.hpp"
30 :
public opflex::modb::mointernal::MO
37 static const opflex::modb::class_id_t
CLASS_ID = 56;
50 static boost::optional<OF_SHARED_PTR<modelgbp::domain::Config> >
resolve(
51 opflex::ofcore::OFFramework& framework,
52 const opflex::modb::URI& uri)
54 return opflex::modb::mointernal::MO::resolve<modelgbp::domain::Config>(framework,
CLASS_ID, uri);
68 static boost::optional<OF_SHARED_PTR<modelgbp::domain::Config> >
resolve(
69 const opflex::modb::URI& uri)
71 return opflex::modb::mointernal::MO::resolve<modelgbp::domain::Config>(opflex::ofcore::OFFramework::defaultInstance(),
CLASS_ID, uri);
88 static boost::optional<OF_SHARED_PTR<modelgbp::domain::Config> >
resolve(
89 opflex::ofcore::OFFramework& framework)
91 return resolve(framework,opflex::modb::URIBuilder().addElement(
"DomainConfig").build());
107 static boost::optional<OF_SHARED_PTR<modelgbp::domain::Config> >
resolve(
110 return resolve(opflex::ofcore::OFFramework::defaultInstance());
141 OF_SHARED_PTR<modelgbp::domain::ConfigToConfigRSrc> result = addChild<modelgbp::domain::ConfigToConfigRSrc>(
142 CLASS_ID, getURI(), 2149318713ul, 57,
143 opflex::modb::URIBuilder(getURI()).addElement(
"DomainConfigToConfigRSrc").build()
162 const std::string& domainConfigToEndpointInventoryRSrcTargetName)
164 opflex::modb::class_id_t domainConfigToEndpointInventoryRSrcTargetClass = 114;
165 return modelgbp::domain::ConfigToEndpointInventoryRSrc::resolve(getFramework(), opflex::modb::URIBuilder(getURI()).addElement(
"DomainConfigToEndpointInventoryRSrc").addElement(domainConfigToEndpointInventoryRSrcTargetClass).addElement(domainConfigToEndpointInventoryRSrcTargetName).build());
183 const std::string& domainConfigToEndpointInventoryRSrcTargetName)
185 opflex::modb::class_id_t domainConfigToEndpointInventoryRSrcTargetClass = 114;
186 OF_SHARED_PTR<modelgbp::domain::ConfigToEndpointInventoryRSrc> result = addChild<modelgbp::domain::ConfigToEndpointInventoryRSrc>(
187 CLASS_ID, getURI(), 2149318716ul, 60,
188 opflex::modb::URIBuilder(getURI()).addElement(
"DomainConfigToEndpointInventoryRSrc").addElement(domainConfigToEndpointInventoryRSrcTargetClass).addElement(domainConfigToEndpointInventoryRSrcTargetName).build()
190 result->setTargetLocalEndpointInventory(opflex::modb::URI(domainConfigToEndpointInventoryRSrcTargetName));
210 opflex::modb::mointernal::MO::resolveChildren<modelgbp::domain::ConfigToEndpointInventoryRSrc>(
211 getFramework(),
CLASS_ID, getURI(), 2149318716ul, 60, out);
224 getTLMutator().remove(
CLASS_ID, getURI());
237 static void remove(opflex::ofcore::OFFramework& framework,
238 const opflex::modb::URI& uri)
240 MO::remove(framework,
CLASS_ID, uri);
253 static void remove(
const opflex::modb::URI& uri)
255 remove(opflex::ofcore::OFFramework::defaultInstance(), uri);
270 opflex::ofcore::OFFramework& framework,
271 opflex::modb::ObjectListener* listener)
273 opflex::modb::mointernal
274 ::MO::registerListener(framework, listener,
CLASS_ID);
289 opflex::modb::ObjectListener* listener)
301 opflex::ofcore::OFFramework& framework,
302 opflex::modb::ObjectListener* listener)
304 opflex::modb::mointernal
305 ::MO::unregisterListener(framework, listener,
CLASS_ID);
315 opflex::modb::ObjectListener* listener)
325 opflex::ofcore::OFFramework& framework,
326 const opflex::modb::URI& uri,
327 const OF_SHARED_PTR<const opflex::modb::mointernal::ObjectInstance>& oi)
328 : MO(framework,
CLASS_ID, uri, oi) { }
333 #endif // GI_DOMAIN_CONFIG_HPP
static boost::optional< OF_SHARED_PTR< modelgbp::domain::Config > > resolve()
Retrieve an instance of Config from the default managed object store by constructing its URI from the...
Definition: domain/Config.hpp:107
static boost::optional< OF_SHARED_PTR< modelgbp::domain::Config > > resolve(opflex::ofcore::OFFramework &framework, const opflex::modb::URI &uri)
Retrieve an instance of Config from the managed object store.
Definition: domain/Config.hpp:50
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: domain/Config.hpp:288
static boost::optional< OF_SHARED_PTR< modelgbp::domain::ConfigToConfigRSrc > > resolve()
Retrieve an instance of ConfigToConfigRSrc from the default managed object store by constructing its ...
Definition: ConfigToConfigRSrc.hpp:311
static boost::optional< OF_SHARED_PTR< modelgbp::domain::Config > > resolve(const opflex::modb::URI &uri)
Retrieve an instance of Config from the managed object store using the default framework instance...
Definition: domain/Config.hpp:68
Definition: domain/Config.hpp:29
boost::optional< OF_SHARED_PTR< modelgbp::domain::ConfigToConfigRSrc > > resolveDomainConfigToConfigRSrc()
Retrieve the child object with the specified naming properties.
Definition: domain/Config.hpp:122
void resolveDomainConfigToEndpointInventoryRSrc(std::vector< OF_SHARED_PTR< modelgbp::domain::ConfigToEndpointInventoryRSrc > > &out)
Resolve and retrieve all of the immediate children of type modelgbp::domain::ConfigToEndpointInventor...
Definition: domain/Config.hpp:208
static boost::optional< OF_SHARED_PTR< modelgbp::domain::Config > > resolve(opflex::ofcore::OFFramework &framework)
Retrieve an instance of Config from the managed object store by constructing its URI from the path el...
Definition: domain/Config.hpp:88
boost::optional< OF_SHARED_PTR< modelgbp::domain::ConfigToEndpointInventoryRSrc > > resolveDomainConfigToEndpointInventoryRSrc(const std::string &domainConfigToEndpointInventoryRSrcTargetName)
Retrieve the child object with the specified naming properties.
Definition: domain/Config.hpp:161
OF_SHARED_PTR< modelgbp::domain::ConfigToConfigRSrc > addDomainConfigToConfigRSrc()
Create a new child object with the specified naming properties and make it a child of this object in ...
Definition: domain/Config.hpp:138
static void unregisterListener(opflex::ofcore::OFFramework &framework, opflex::modb::ObjectListener *listener)
Unregister a listener from updates to this class.
Definition: domain/Config.hpp:300
static void unregisterListener(opflex::modb::ObjectListener *listener)
Unregister a listener from updates to this class from the default framework instance.
Definition: domain/Config.hpp:314
Config(opflex::ofcore::OFFramework &framework, const opflex::modb::URI &uri, const OF_SHARED_PTR< const opflex::modb::mointernal::ObjectInstance > &oi)
Construct an instance of Config.
Definition: domain/Config.hpp:324
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: domain/Config.hpp:269
static const opflex::modb::class_id_t CLASS_ID
The unique class ID for Config.
Definition: domain/Config.hpp:37
static boost::optional< OF_SHARED_PTR< modelgbp::domain::ConfigToEndpointInventoryRSrc > > resolve(opflex::ofcore::OFFramework &framework, const opflex::modb::URI &uri)
Retrieve an instance of ConfigToEndpointInventoryRSrc from the managed object store.
Definition: ConfigToEndpointInventoryRSrc.hpp:254
OF_SHARED_PTR< modelgbp::domain::ConfigToEndpointInventoryRSrc > addDomainConfigToEndpointInventoryRSrc(const std::string &domainConfigToEndpointInventoryRSrcTargetName)
Create a new child object with the specified naming properties and make it a child of this object in ...
Definition: domain/Config.hpp:182