11#ifndef GI_DOMAIN_CONFIGFROMENDPOINTINVENTORYRTGT_HPP
12#define GI_DOMAIN_CONFIGFROMENDPOINTINVENTORYRTGT_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 = 61;
37 return getObjectInstance().isSet(1998850ul, opflex::modb::PropertyInfo::ENUM8);
47 return (
const uint8_t)getObjectInstance().getUInt64(1998850ul);
56 const uint8_t
getRole(
const uint8_t defaultValue)
58 return getRole().get_value_or(defaultValue);
71 getTLMutator().modify(getClassId(), getURI())->setUInt64(1998850ul, newValue);
83 getTLMutator().modify(getClassId(), getURI())->unset(1998850ul, opflex::modb::PropertyInfo::ENUM8, opflex::modb::PropertyInfo::SCALAR);
93 return getObjectInstance().isSet(1998851ul, opflex::modb::PropertyInfo::STRING);
103 return getObjectInstance().getString(1998851ul);
112 const std::string&
getSource(
const std::string& defaultValue)
114 return getSource().get_value_or(defaultValue);
127 getTLMutator().modify(getClassId(), getURI())->setString(1998851ul, newValue);
139 getTLMutator().modify(getClassId(), getURI())->unset(1998851ul, opflex::modb::PropertyInfo::STRING, opflex::modb::PropertyInfo::SCALAR);
149 return getObjectInstance().isSet(1998849ul, opflex::modb::PropertyInfo::ENUM8);
159 return (
const uint8_t)getObjectInstance().getUInt64(1998849ul);
168 const uint8_t
getType(
const uint8_t defaultValue)
170 return getType().get_value_or(defaultValue);
183 getTLMutator().modify(getClassId(), getURI())->setUInt64(1998849ul, newValue);
195 getTLMutator().modify(getClassId(), getURI())->unset(1998849ul, opflex::modb::PropertyInfo::ENUM8, opflex::modb::PropertyInfo::SCALAR);
210 static boost::optional<OF_SHARED_PTR<modelgbp::domain::ConfigFromEndpointInventoryRTgt> >
resolve(
211 opflex::ofcore::OFFramework& framework,
212 const opflex::modb::URI& uri)
214 return opflex::modb::mointernal::MO::resolve<modelgbp::domain::ConfigFromEndpointInventoryRTgt>(framework,
CLASS_ID, uri);
228 static boost::optional<OF_SHARED_PTR<modelgbp::domain::ConfigFromEndpointInventoryRTgt> >
resolve(
229 const opflex::modb::URI& uri)
231 return opflex::modb::mointernal::MO::resolve<modelgbp::domain::ConfigFromEndpointInventoryRTgt>(opflex::ofcore::OFFramework::defaultInstance(),
CLASS_ID, uri);
252 static boost::optional<OF_SHARED_PTR<modelgbp::domain::ConfigFromEndpointInventoryRTgt> >
resolve(
253 opflex::ofcore::OFFramework& framework,
254 const std::string& invLocalEndpointInventoryName,
255 const std::string& domainConfigFromEndpointInventoryRTgtSource)
257 return resolve(framework,opflex::modb::URIBuilder().addElement(
"InvUniverse").addElement(
"InvLocalEndpointInventory").addElement(invLocalEndpointInventoryName).addElement(
"DomainConfigFromEndpointInventoryRTgt").addElement(domainConfigFromEndpointInventoryRTgtSource).build());
277 static boost::optional<OF_SHARED_PTR<modelgbp::domain::ConfigFromEndpointInventoryRTgt> >
resolve(
278 const std::string& invLocalEndpointInventoryName,
279 const std::string& domainConfigFromEndpointInventoryRTgtSource)
281 return resolve(opflex::ofcore::OFFramework::defaultInstance(),invLocalEndpointInventoryName,domainConfigFromEndpointInventoryRTgtSource);
294 getTLMutator().remove(
CLASS_ID, getURI());
307 static void remove(opflex::ofcore::OFFramework& framework,
308 const opflex::modb::URI& uri)
310 MO::remove(framework,
CLASS_ID, uri);
323 static void remove(
const opflex::modb::URI& uri)
325 remove(opflex::ofcore::OFFramework::defaultInstance(), uri);
345 opflex::ofcore::OFFramework& framework,
346 const std::string& invLocalEndpointInventoryName,
347 const std::string& domainConfigFromEndpointInventoryRTgtSource)
349 MO::remove(framework,
CLASS_ID, opflex::modb::URIBuilder().addElement(
"InvUniverse").addElement(
"InvLocalEndpointInventory").addElement(invLocalEndpointInventoryName).addElement(
"DomainConfigFromEndpointInventoryRTgt").addElement(domainConfigFromEndpointInventoryRTgtSource).build());
369 const std::string& invLocalEndpointInventoryName,
370 const std::string& domainConfigFromEndpointInventoryRTgtSource)
372 remove(opflex::ofcore::OFFramework::defaultInstance(),invLocalEndpointInventoryName,domainConfigFromEndpointInventoryRTgtSource);
387 opflex::ofcore::OFFramework& framework,
388 opflex::modb::ObjectListener* listener)
390 opflex::modb::mointernal
391 ::MO::registerListener(framework, listener,
CLASS_ID);
406 opflex::modb::ObjectListener* listener)
418 opflex::ofcore::OFFramework& framework,
419 opflex::modb::ObjectListener* listener)
421 opflex::modb::mointernal
422 ::MO::unregisterListener(framework, listener,
CLASS_ID);
432 opflex::modb::ObjectListener* listener)
442 opflex::ofcore::OFFramework& framework,
443 const opflex::modb::URI& uri,
444 const OF_SHARED_PTR<const opflex::modb::mointernal::ObjectInstance>& oi)
445 : MO(framework,
CLASS_ID, uri, oi) { }
Definition ConfigFromEndpointInventoryRTgt.hpp:23
modelgbp::domain::ConfigFromEndpointInventoryRTgt & setSource(const std::string &newValue)
Set source to the specified value in the currently-active mutator.
Definition ConfigFromEndpointInventoryRTgt.hpp:125
static const opflex::modb::class_id_t CLASS_ID
The unique class ID for ConfigFromEndpointInventoryRTgt.
Definition ConfigFromEndpointInventoryRTgt.hpp:29
const uint8_t getRole(const uint8_t defaultValue)
Get the value of role if set, otherwise the value of default passed in.
Definition ConfigFromEndpointInventoryRTgt.hpp:56
boost::optional< const uint8_t > getRole()
Get the value of role if it has been set.
Definition ConfigFromEndpointInventoryRTgt.hpp:44
bool isTypeSet()
Check whether type has been set.
Definition ConfigFromEndpointInventoryRTgt.hpp:147
bool isSourceSet()
Check whether source has been set.
Definition ConfigFromEndpointInventoryRTgt.hpp:91
static void remove(const std::string &invLocalEndpointInventoryName, const std::string &domainConfigFromEndpointInventoryRTgtSource)
Remove the ConfigFromEndpointInventoryRTgt object with the specified path elements from the managed o...
Definition ConfigFromEndpointInventoryRTgt.hpp:368
modelgbp::domain::ConfigFromEndpointInventoryRTgt & unsetSource()
Unset source in the currently-active mutator.
Definition ConfigFromEndpointInventoryRTgt.hpp:137
static boost::optional< OF_SHARED_PTR< modelgbp::domain::ConfigFromEndpointInventoryRTgt > > resolve(opflex::ofcore::OFFramework &framework, const opflex::modb::URI &uri)
Retrieve an instance of ConfigFromEndpointInventoryRTgt from the managed object store.
Definition ConfigFromEndpointInventoryRTgt.hpp:210
bool isRoleSet()
Check whether role has been set.
Definition ConfigFromEndpointInventoryRTgt.hpp:35
modelgbp::domain::ConfigFromEndpointInventoryRTgt & unsetRole()
Unset role in the currently-active mutator.
Definition ConfigFromEndpointInventoryRTgt.hpp:81
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 ConfigFromEndpointInventoryRTgt.hpp:386
static void remove(opflex::ofcore::OFFramework &framework, const std::string &invLocalEndpointInventoryName, const std::string &domainConfigFromEndpointInventoryRTgtSource)
Remove the ConfigFromEndpointInventoryRTgt object with the specified path elements from the managed o...
Definition ConfigFromEndpointInventoryRTgt.hpp:344
boost::optional< const std::string & > getSource()
Get the value of source if it has been set.
Definition ConfigFromEndpointInventoryRTgt.hpp:100
ConfigFromEndpointInventoryRTgt(opflex::ofcore::OFFramework &framework, const opflex::modb::URI &uri, const OF_SHARED_PTR< const opflex::modb::mointernal::ObjectInstance > &oi)
Construct an instance of ConfigFromEndpointInventoryRTgt.
Definition ConfigFromEndpointInventoryRTgt.hpp:441
static void remove(const opflex::modb::URI &uri)
Remove the ConfigFromEndpointInventoryRTgt object with the specified URI using the currently-active m...
Definition ConfigFromEndpointInventoryRTgt.hpp:323
static boost::optional< OF_SHARED_PTR< modelgbp::domain::ConfigFromEndpointInventoryRTgt > > resolve(const std::string &invLocalEndpointInventoryName, const std::string &domainConfigFromEndpointInventoryRTgtSource)
Retrieve an instance of ConfigFromEndpointInventoryRTgt from the default managed object store by cons...
Definition ConfigFromEndpointInventoryRTgt.hpp:277
static void unregisterListener(opflex::ofcore::OFFramework &framework, opflex::modb::ObjectListener *listener)
Unregister a listener from updates to this class.
Definition ConfigFromEndpointInventoryRTgt.hpp:417
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 ConfigFromEndpointInventoryRTgt.hpp:405
void remove()
Remove this instance using the currently-active mutator.
Definition ConfigFromEndpointInventoryRTgt.hpp:292
static void remove(opflex::ofcore::OFFramework &framework, const opflex::modb::URI &uri)
Remove the ConfigFromEndpointInventoryRTgt object with the specified URI using the currently-active m...
Definition ConfigFromEndpointInventoryRTgt.hpp:307
static boost::optional< OF_SHARED_PTR< modelgbp::domain::ConfigFromEndpointInventoryRTgt > > resolve(opflex::ofcore::OFFramework &framework, const std::string &invLocalEndpointInventoryName, const std::string &domainConfigFromEndpointInventoryRTgtSource)
Retrieve an instance of ConfigFromEndpointInventoryRTgt from the managed object store by constructing...
Definition ConfigFromEndpointInventoryRTgt.hpp:252
const uint8_t getType(const uint8_t defaultValue)
Get the value of type if set, otherwise the value of default passed in.
Definition ConfigFromEndpointInventoryRTgt.hpp:168
modelgbp::domain::ConfigFromEndpointInventoryRTgt & setType(const uint8_t newValue)
Set type to the specified value in the currently-active mutator.
Definition ConfigFromEndpointInventoryRTgt.hpp:181
boost::optional< const uint8_t > getType()
Get the value of type if it has been set.
Definition ConfigFromEndpointInventoryRTgt.hpp:156
static void unregisterListener(opflex::modb::ObjectListener *listener)
Unregister a listener from updates to this class from the default framework instance.
Definition ConfigFromEndpointInventoryRTgt.hpp:431
modelgbp::domain::ConfigFromEndpointInventoryRTgt & unsetType()
Unset type in the currently-active mutator.
Definition ConfigFromEndpointInventoryRTgt.hpp:193
static boost::optional< OF_SHARED_PTR< modelgbp::domain::ConfigFromEndpointInventoryRTgt > > resolve(const opflex::modb::URI &uri)
Retrieve an instance of ConfigFromEndpointInventoryRTgt from the managed object store using the defau...
Definition ConfigFromEndpointInventoryRTgt.hpp:228
const std::string & getSource(const std::string &defaultValue)
Get the value of source if set, otherwise the value of default passed in.
Definition ConfigFromEndpointInventoryRTgt.hpp:112
modelgbp::domain::ConfigFromEndpointInventoryRTgt & setRole(const uint8_t newValue)
Set role to the specified value in the currently-active mutator.
Definition ConfigFromEndpointInventoryRTgt.hpp:69
SOME COPYRIGHT.
Definition OpcodeEnumT.hpp:12