11#ifndef GI_DFW_CONFIG_HPP
12#define GI_DFW_CONFIG_HPP
14#include <boost/optional.hpp>
15#include "opflex/modb/URIBuilder.h"
16#include "opflex/modb/mo-internal/MO.h"
22 :
public opflex::modb::mointernal::MO
29 static const opflex::modb::class_id_t
CLASS_ID = 54;
44 boost::optional<const std::string&>
getName()
154 static boost::optional<OF_SHARED_PTR<modelgbp::dfw::Config> >
resolve(
156 const opflex::modb::URI&
uri)
172 static boost::optional<OF_SHARED_PTR<modelgbp::dfw::Config> >
resolve(
173 const opflex::modb::URI&
uri)
175 return opflex::modb::mointernal::MO::resolve<modelgbp::dfw::Config>(opflex::ofcore::OFFramework::defaultInstance(),
CLASS_ID,
uri);
194 static boost::optional<OF_SHARED_PTR<modelgbp::dfw::Config> >
resolve(
216 static boost::optional<OF_SHARED_PTR<modelgbp::dfw::Config> >
resolve(
246 const opflex::modb::URI&
uri)
263 remove(opflex::ofcore::OFFramework::defaultInstance(),
uri);
320 opflex::modb::ObjectListener*
listener)
322 opflex::modb::mointernal
338 opflex::modb::ObjectListener*
listener)
351 opflex::modb::ObjectListener*
listener)
353 opflex::modb::mointernal
364 opflex::modb::ObjectListener*
listener)
375 const opflex::modb::URI&
uri,
Definition dfw/Config.hpp:23
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 dfw/Config.hpp:373
static void unregisterListener(opflex::ofcore::OFFramework &framework, opflex::modb::ObjectListener *listener)
Unregister a listener from updates to this class.
Definition dfw/Config.hpp:349
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 dfw/Config.hpp:261
bool isNameSet()
Check whether name has been set.
Definition dfw/Config.hpp:35
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 dfw/Config.hpp:337
modelgbp::dfw::Config & unsetState()
Unset state in the currently-active mutator.
Definition dfw/Config.hpp:137
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 dfw/Config.hpp:318
static void unregisterListener(opflex::modb::ObjectListener *listener)
Unregister a listener from updates to this class from the default framework instance.
Definition dfw/Config.hpp:363
void remove()
Remove this instance using the currently-active mutator.
Definition dfw/Config.hpp:230
const uint8_t getState(const uint8_t defaultValue)
Get the value of state if set, otherwise the value of default passed in.
Definition dfw/Config.hpp:112
static const opflex::modb::class_id_t CLASS_ID
The unique class ID for Config.
Definition dfw/Config.hpp:29
boost::optional< const uint8_t > getState()
Get the value of state if it has been set.
Definition dfw/Config.hpp:100
static boost::optional< OF_SHARED_PTR< modelgbp::dfw::Config > > resolve(const std::string &platformConfigName)
Retrieve an instance of Config from the default managed object store by constructing its URI from the...
Definition dfw/Config.hpp:216
const std::string & getName(const std::string &defaultValue)
Get the value of name if set, otherwise the value of default passed in.
Definition dfw/Config.hpp:56
static boost::optional< OF_SHARED_PTR< modelgbp::dfw::Config > > resolve(const opflex::modb::URI &uri)
Retrieve an instance of Config from the managed object store using the default framework instance.
Definition dfw/Config.hpp:172
modelgbp::dfw::Config & setName(const std::string &newValue)
Set name to the specified value in the currently-active mutator.
Definition dfw/Config.hpp:69
modelgbp::dfw::Config & unsetName()
Unset name in the currently-active mutator.
Definition dfw/Config.hpp:81
static void remove(const std::string &platformConfigName)
Remove the Config object with the specified path elements from the managed object store using the def...
Definition dfw/Config.hpp:301
modelgbp::dfw::Config & setState(const uint8_t newValue)
Set state to the specified value in the currently-active mutator.
Definition dfw/Config.hpp:125
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 dfw/Config.hpp:245
static void remove(opflex::ofcore::OFFramework &framework, const std::string &platformConfigName)
Remove the Config object with the specified path elements from the managed object store.
Definition dfw/Config.hpp:280
static boost::optional< OF_SHARED_PTR< modelgbp::dfw::Config > > resolve(opflex::ofcore::OFFramework &framework, const std::string &platformConfigName)
Retrieve an instance of Config from the managed object store by constructing its URI from the path el...
Definition dfw/Config.hpp:194
boost::optional< const std::string & > getName()
Get the value of name if it has been set.
Definition dfw/Config.hpp:44
static boost::optional< OF_SHARED_PTR< modelgbp::dfw::Config > > resolve(opflex::ofcore::OFFramework &framework, const opflex::modb::URI &uri)
Retrieve an instance of Config from the managed object store.
Definition dfw/Config.hpp:154
bool isStateSet()
Check whether state has been set.
Definition dfw/Config.hpp:91
SOME COPYRIGHT.
Definition OpcodeEnumT.hpp:12