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(
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(
107 static boost::optional<OF_SHARED_PTR<modelgbp::domain::Config> >
resolve(
110 return resolve(opflex::ofcore::OFFramework::defaultInstance());
210 opflex::modb::mointernal::MO::resolveChildren<modelgbp::domain::ConfigToEndpointInventoryRSrc>(
238 const opflex::modb::URI&
uri)
255 remove(opflex::ofcore::OFFramework::defaultInstance(),
uri);
271 opflex::modb::ObjectListener*
listener)
273 opflex::modb::mointernal
289 opflex::modb::ObjectListener*
listener)
302 opflex::modb::ObjectListener*
listener)
304 opflex::modb::mointernal
315 opflex::modb::ObjectListener*
listener)
326 const opflex::modb::URI&
uri,
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::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
Definition domain/Config.hpp:31
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
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
void remove()
Remove this instance using the currently-active mutator.
Definition domain/Config.hpp:222
static void remove(opflex::ofcore::OFFramework &framework, const opflex::modb::URI &uri)
Remove the Config object with the specified URI using the currently-active mutator.
Definition domain/Config.hpp:237
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 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
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
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::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
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
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
static void remove(const opflex::modb::URI &uri)
Remove the Config object with the specified URI using the currently-active mutator and the default fr...
Definition domain/Config.hpp:253
boost::optional< OF_SHARED_PTR< modelgbp::domain::ConfigToConfigRSrc > > resolveDomainConfigToConfigRSrc()
Retrieve the child object with the specified naming properties.
Definition domain/Config.hpp:122
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 void unregisterListener(opflex::modb::ObjectListener *listener)
Unregister a listener from updates to this class from the default framework instance.
Definition domain/Config.hpp:314
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 unregisterListener(opflex::ofcore::OFFramework &framework, opflex::modb::ObjectListener *listener)
Unregister a listener from updates to this class.
Definition domain/Config.hpp:300
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
SOME COPYRIGHT.
Definition OpcodeEnumT.hpp:12