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"
26 :
public opflex::modb::mointernal::MO
33 static const opflex::modb::class_id_t
CLASS_ID = 42;
46 static boost::optional<boost::shared_ptr<modelgbp::domain::Config> >
resolve(
47 opflex::ofcore::OFFramework& framework,
48 const opflex::modb::URI& uri)
50 return opflex::modb::mointernal::MO::resolve<modelgbp::domain::Config>(framework,
CLASS_ID, uri);
64 static boost::optional<boost::shared_ptr<modelgbp::domain::Config> >
resolve(
65 const opflex::modb::URI& uri)
67 return opflex::modb::mointernal::MO::resolve<modelgbp::domain::Config>(opflex::ofcore::OFFramework::defaultInstance(),
CLASS_ID, uri);
84 static boost::optional<boost::shared_ptr<modelgbp::domain::Config> >
resolve(
85 opflex::ofcore::OFFramework& framework)
87 return resolve(framework,opflex::modb::URIBuilder().addElement(
"DomainConfig").build());
103 static boost::optional<boost::shared_ptr<modelgbp::domain::Config> >
resolve(
106 return resolve(opflex::ofcore::OFFramework::defaultInstance());
137 boost::shared_ptr<modelgbp::domain::ConfigToConfigRSrc> result = addChild<modelgbp::domain::ConfigToConfigRSrc>(
138 CLASS_ID, getURI(), 2148859947ul, 43,
139 opflex::modb::URIBuilder(getURI()).addElement(
"DomainConfigToConfigRSrc").build()
154 getTLMutator().remove(
CLASS_ID, getURI());
167 static void remove(opflex::ofcore::OFFramework& framework,
168 const opflex::modb::URI& uri)
170 MO::remove(framework,
CLASS_ID, uri);
183 static void remove(
const opflex::modb::URI& uri)
185 remove(opflex::ofcore::OFFramework::defaultInstance(), uri);
200 opflex::ofcore::OFFramework& framework,
201 opflex::modb::ObjectListener* listener)
203 opflex::modb::mointernal
204 ::MO::registerListener(framework, listener,
CLASS_ID);
219 opflex::modb::ObjectListener* listener)
231 opflex::ofcore::OFFramework& framework,
232 opflex::modb::ObjectListener* listener)
234 opflex::modb::mointernal
235 ::MO::unregisterListener(framework, listener,
CLASS_ID);
245 opflex::modb::ObjectListener* listener)
255 opflex::ofcore::OFFramework& framework,
256 const opflex::modb::URI& uri,
257 const boost::shared_ptr<const opflex::modb::mointernal::ObjectInstance>& oi)
258 : MO(framework,
CLASS_ID, uri, oi) { }
263 #endif // GI_DOMAIN_CONFIG_HPP
static boost::optional< boost::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:46
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:218
Definition: domain/Config.hpp:25
static boost::optional< boost::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:103
boost::optional< boost::shared_ptr< modelgbp::domain::ConfigToConfigRSrc > > resolveDomainConfigToConfigRSrc()
Retrieve the child object with the specified naming properties.
Definition: domain/Config.hpp:118
static boost::optional< boost::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:64
static void unregisterListener(opflex::ofcore::OFFramework &framework, opflex::modb::ObjectListener *listener)
Unregister a listener from updates to this class.
Definition: domain/Config.hpp:230
Config(opflex::ofcore::OFFramework &framework, const opflex::modb::URI &uri, const boost::shared_ptr< const opflex::modb::mointernal::ObjectInstance > &oi)
Construct an instance of Config.
Definition: domain/Config.hpp:254
static void unregisterListener(opflex::modb::ObjectListener *listener)
Unregister a listener from updates to this class from the default framework instance.
Definition: domain/Config.hpp:244
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:199
static const opflex::modb::class_id_t CLASS_ID
The unique class ID for Config.
Definition: domain/Config.hpp:33
static boost::optional< boost::shared_ptr< modelgbp::domain::ConfigToConfigRSrc > > resolve()
Retrieve an instance of ConfigToConfigRSrc from the default managed object store by constructing its ...
Definition: ConfigToConfigRSrc.hpp:311
boost::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:134
static boost::optional< boost::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:84