11 #ifndef GI_DOMAIN_CONFIGFROMREMOTEENDPOINTINVENTORYRTGT_HPP
12 #define GI_DOMAIN_CONFIGFROMREMOTEENDPOINTINVENTORYRTGT_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 = 64;
37 return getObjectInstance().isSet(2097154ul, opflex::modb::PropertyInfo::ENUM8);
47 return (
const uint8_t)getObjectInstance().getUInt64(2097154ul);
56 const uint8_t
getRole(
const uint8_t defaultValue)
58 return getRole().get_value_or(defaultValue);
71 getTLMutator().modify(getClassId(), getURI())->setUInt64(2097154ul, newValue);
83 getTLMutator().modify(getClassId(), getURI())->unset(2097154ul, opflex::modb::PropertyInfo::ENUM8, opflex::modb::PropertyInfo::SCALAR);
93 return getObjectInstance().isSet(2097155ul, opflex::modb::PropertyInfo::STRING);
103 return getObjectInstance().getString(2097155ul);
112 const std::string&
getSource(
const std::string& defaultValue)
114 return getSource().get_value_or(defaultValue);
127 getTLMutator().modify(getClassId(), getURI())->setString(2097155ul, newValue);
139 getTLMutator().modify(getClassId(), getURI())->unset(2097155ul, opflex::modb::PropertyInfo::STRING, opflex::modb::PropertyInfo::SCALAR);
149 return getObjectInstance().isSet(2097153ul, opflex::modb::PropertyInfo::ENUM8);
159 return (
const uint8_t)getObjectInstance().getUInt64(2097153ul);
168 const uint8_t
getType(
const uint8_t defaultValue)
170 return getType().get_value_or(defaultValue);
183 getTLMutator().modify(getClassId(), getURI())->setUInt64(2097153ul, newValue);
195 getTLMutator().modify(getClassId(), getURI())->unset(2097153ul, opflex::modb::PropertyInfo::ENUM8, opflex::modb::PropertyInfo::SCALAR);
210 static boost::optional<OF_SHARED_PTR<modelgbp::domain::ConfigFromRemoteEndpointInventoryRTgt> >
resolve(
211 opflex::ofcore::OFFramework& framework,
212 const opflex::modb::URI& uri)
214 return opflex::modb::mointernal::MO::resolve<modelgbp::domain::ConfigFromRemoteEndpointInventoryRTgt>(framework,
CLASS_ID, uri);
228 static boost::optional<OF_SHARED_PTR<modelgbp::domain::ConfigFromRemoteEndpointInventoryRTgt> >
resolve(
229 const opflex::modb::URI& uri)
231 return opflex::modb::mointernal::MO::resolve<modelgbp::domain::ConfigFromRemoteEndpointInventoryRTgt>(opflex::ofcore::OFFramework::defaultInstance(),
CLASS_ID, uri);
250 static boost::optional<OF_SHARED_PTR<modelgbp::domain::ConfigFromRemoteEndpointInventoryRTgt> >
resolve(
251 opflex::ofcore::OFFramework& framework,
252 const std::string& domainConfigFromRemoteEndpointInventoryRTgtSource)
254 return resolve(framework,opflex::modb::URIBuilder().addElement(
"InvUniverse").addElement(
"InvRemoteEndpointInventory").addElement(
"DomainConfigFromRemoteEndpointInventoryRTgt").addElement(domainConfigFromRemoteEndpointInventoryRTgtSource).build());
272 static boost::optional<OF_SHARED_PTR<modelgbp::domain::ConfigFromRemoteEndpointInventoryRTgt> >
resolve(
273 const std::string& domainConfigFromRemoteEndpointInventoryRTgtSource)
275 return resolve(opflex::ofcore::OFFramework::defaultInstance(),domainConfigFromRemoteEndpointInventoryRTgtSource);
288 getTLMutator().remove(
CLASS_ID, getURI());
301 static void remove(opflex::ofcore::OFFramework& framework,
302 const opflex::modb::URI& uri)
304 MO::remove(framework,
CLASS_ID, uri);
317 static void remove(
const opflex::modb::URI& uri)
319 remove(opflex::ofcore::OFFramework::defaultInstance(), uri);
337 opflex::ofcore::OFFramework& framework,
338 const std::string& domainConfigFromRemoteEndpointInventoryRTgtSource)
340 MO::remove(framework,
CLASS_ID, opflex::modb::URIBuilder().addElement(
"InvUniverse").addElement(
"InvRemoteEndpointInventory").addElement(
"DomainConfigFromRemoteEndpointInventoryRTgt").addElement(domainConfigFromRemoteEndpointInventoryRTgtSource).build());
358 const std::string& domainConfigFromRemoteEndpointInventoryRTgtSource)
360 remove(opflex::ofcore::OFFramework::defaultInstance(),domainConfigFromRemoteEndpointInventoryRTgtSource);
375 opflex::ofcore::OFFramework& framework,
376 opflex::modb::ObjectListener* listener)
378 opflex::modb::mointernal
379 ::MO::registerListener(framework, listener,
CLASS_ID);
394 opflex::modb::ObjectListener* listener)
406 opflex::ofcore::OFFramework& framework,
407 opflex::modb::ObjectListener* listener)
409 opflex::modb::mointernal
410 ::MO::unregisterListener(framework, listener,
CLASS_ID);
420 opflex::modb::ObjectListener* listener)
430 opflex::ofcore::OFFramework& framework,
431 const opflex::modb::URI& uri,
432 const OF_SHARED_PTR<const opflex::modb::mointernal::ObjectInstance>& oi)
433 : MO(framework,
CLASS_ID, uri, oi) { }
438 #endif // GI_DOMAIN_CONFIGFROMREMOTEENDPOINTINVENTORYRTGT_HPP
boost::optional< const uint8_t > getType()
Get the value of type if it has been set.
Definition: ConfigFromRemoteEndpointInventoryRTgt.hpp:156
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
Definition: ConfigFromRemoteEndpointInventoryRTgt.hpp:21
modelgbp::domain::ConfigFromRemoteEndpointInventoryRTgt & setSource(const std::string &newValue)
Set source to the specified value in the currently-active mutator.
Definition: ConfigFromRemoteEndpointInventoryRTgt.hpp:125
const uint8_t getRole(const uint8_t defaultValue)
Get the value of role if set, otherwise the value of default passed in.
Definition: ConfigFromRemoteEndpointInventoryRTgt.hpp:56
modelgbp::domain::ConfigFromRemoteEndpointInventoryRTgt & setRole(const uint8_t newValue)
Set role to the specified value in the currently-active mutator.
Definition: ConfigFromRemoteEndpointInventoryRTgt.hpp:69
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: ConfigFromRemoteEndpointInventoryRTgt.hpp:393
static const opflex::modb::class_id_t CLASS_ID
The unique class ID for ConfigFromRemoteEndpointInventoryRTgt.
Definition: ConfigFromRemoteEndpointInventoryRTgt.hpp:29
modelgbp::domain::ConfigFromRemoteEndpointInventoryRTgt & unsetSource()
Unset source in the currently-active mutator.
Definition: ConfigFromRemoteEndpointInventoryRTgt.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: ConfigFromRemoteEndpointInventoryRTgt.hpp:374
static boost::optional< OF_SHARED_PTR< modelgbp::domain::ConfigFromRemoteEndpointInventoryRTgt > > resolve(const opflex::modb::URI &uri)
Retrieve an instance of ConfigFromRemoteEndpointInventoryRTgt from the managed object store using the...
Definition: ConfigFromRemoteEndpointInventoryRTgt.hpp:228
static boost::optional< OF_SHARED_PTR< modelgbp::domain::ConfigFromRemoteEndpointInventoryRTgt > > resolve(const std::string &domainConfigFromRemoteEndpointInventoryRTgtSource)
Retrieve an instance of ConfigFromRemoteEndpointInventoryRTgt from the default managed object store b...
Definition: ConfigFromRemoteEndpointInventoryRTgt.hpp:272
static void unregisterListener(opflex::modb::ObjectListener *listener)
Unregister a listener from updates to this class from the default framework instance.
Definition: ConfigFromRemoteEndpointInventoryRTgt.hpp:419
ConfigFromRemoteEndpointInventoryRTgt(opflex::ofcore::OFFramework &framework, const opflex::modb::URI &uri, const OF_SHARED_PTR< const opflex::modb::mointernal::ObjectInstance > &oi)
Construct an instance of ConfigFromRemoteEndpointInventoryRTgt.
Definition: ConfigFromRemoteEndpointInventoryRTgt.hpp:429
const std::string & getSource(const std::string &defaultValue)
Get the value of source if set, otherwise the value of default passed in.
Definition: ConfigFromRemoteEndpointInventoryRTgt.hpp:112
bool isTypeSet()
Check whether type has been set.
Definition: ConfigFromRemoteEndpointInventoryRTgt.hpp:147
static boost::optional< OF_SHARED_PTR< modelgbp::domain::ConfigFromRemoteEndpointInventoryRTgt > > resolve(opflex::ofcore::OFFramework &framework, const std::string &domainConfigFromRemoteEndpointInventoryRTgtSource)
Retrieve an instance of ConfigFromRemoteEndpointInventoryRTgt from the managed object store by constr...
Definition: ConfigFromRemoteEndpointInventoryRTgt.hpp:250
modelgbp::domain::ConfigFromRemoteEndpointInventoryRTgt & unsetType()
Unset type in the currently-active mutator.
Definition: ConfigFromRemoteEndpointInventoryRTgt.hpp:193
bool isSourceSet()
Check whether source has been set.
Definition: ConfigFromRemoteEndpointInventoryRTgt.hpp:91
static void unregisterListener(opflex::ofcore::OFFramework &framework, opflex::modb::ObjectListener *listener)
Unregister a listener from updates to this class.
Definition: ConfigFromRemoteEndpointInventoryRTgt.hpp:405
boost::optional< const uint8_t > getRole()
Get the value of role if it has been set.
Definition: ConfigFromRemoteEndpointInventoryRTgt.hpp:44
const uint8_t getType(const uint8_t defaultValue)
Get the value of type if set, otherwise the value of default passed in.
Definition: ConfigFromRemoteEndpointInventoryRTgt.hpp:168
boost::optional< const std::string & > getSource()
Get the value of source if it has been set.
Definition: ConfigFromRemoteEndpointInventoryRTgt.hpp:100
bool isRoleSet()
Check whether role has been set.
Definition: ConfigFromRemoteEndpointInventoryRTgt.hpp:35
modelgbp::domain::ConfigFromRemoteEndpointInventoryRTgt & unsetRole()
Unset role in the currently-active mutator.
Definition: ConfigFromRemoteEndpointInventoryRTgt.hpp:81
modelgbp::domain::ConfigFromRemoteEndpointInventoryRTgt & setType(const uint8_t newValue)
Set type to the specified value in the currently-active mutator.
Definition: ConfigFromRemoteEndpointInventoryRTgt.hpp:181