11#ifndef GI_DOMAIN_CONFIGTOENDPOINTINVENTORYRSRC_HPP
12#define GI_DOMAIN_CONFIGTOENDPOINTINVENTORYRSRC_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 = 60;
37 return getObjectInstance().isSet(1966082ul, opflex::modb::PropertyInfo::ENUM8);
47 return (
const uint8_t)getObjectInstance().getUInt64(1966082ul);
56 const uint8_t
getRole(
const uint8_t defaultValue)
58 return getRole().get_value_or(defaultValue);
71 getTLMutator().modify(getClassId(), getURI())->setUInt64(1966082ul, newValue);
83 getTLMutator().modify(getClassId(), getURI())->unset(1966082ul, opflex::modb::PropertyInfo::ENUM8, opflex::modb::PropertyInfo::SCALAR);
93 return getObjectInstance().isSet(1966083ul, opflex::modb::PropertyInfo::REFERENCE);
103 return getObjectInstance().getReference(1966083ul).first;
114 return getObjectInstance().getReference(1966083ul).second;
149 getTLMutator().modify(getClassId(), getURI())->setReference(1966083ul, 114, uri);
169 const std::string& invLocalEndpointInventoryName)
171 getTLMutator().modify(getClassId(), getURI())->setReference(1966083ul, 114, opflex::modb::URIBuilder().addElement(
"InvUniverse").addElement(
"InvLocalEndpointInventory").addElement(invLocalEndpointInventoryName).build());
183 getTLMutator().modify(getClassId(), getURI())->unset(1966083ul, opflex::modb::PropertyInfo::REFERENCE, opflex::modb::PropertyInfo::SCALAR);
193 return getObjectInstance().isSet(1966081ul, opflex::modb::PropertyInfo::ENUM8);
203 return (
const uint8_t)getObjectInstance().getUInt64(1966081ul);
212 const uint8_t
getType(
const uint8_t defaultValue)
214 return getType().get_value_or(defaultValue);
227 getTLMutator().modify(getClassId(), getURI())->setUInt64(1966081ul, newValue);
239 getTLMutator().modify(getClassId(), getURI())->unset(1966081ul, opflex::modb::PropertyInfo::ENUM8, opflex::modb::PropertyInfo::SCALAR);
254 static boost::optional<OF_SHARED_PTR<modelgbp::domain::ConfigToEndpointInventoryRSrc> >
resolve(
255 opflex::ofcore::OFFramework& framework,
256 const opflex::modb::URI& uri)
258 return opflex::modb::mointernal::MO::resolve<modelgbp::domain::ConfigToEndpointInventoryRSrc>(framework,
CLASS_ID, uri);
272 static boost::optional<OF_SHARED_PTR<modelgbp::domain::ConfigToEndpointInventoryRSrc> >
resolve(
273 const opflex::modb::URI& uri)
275 return opflex::modb::mointernal::MO::resolve<modelgbp::domain::ConfigToEndpointInventoryRSrc>(opflex::ofcore::OFFramework::defaultInstance(),
CLASS_ID, uri);
296 static boost::optional<OF_SHARED_PTR<modelgbp::domain::ConfigToEndpointInventoryRSrc> >
resolve(
297 opflex::ofcore::OFFramework& framework,
298 uint16_t domainConfigToEndpointInventoryRSrcTargetClass,
299 const std::string& domainConfigToEndpointInventoryRSrcTargetName)
301 return resolve(framework,opflex::modb::URIBuilder().addElement(
"DomainConfig").addElement(
"DomainConfigToEndpointInventoryRSrc").addElement(domainConfigToEndpointInventoryRSrcTargetClass).addElement(domainConfigToEndpointInventoryRSrcTargetName).build());
321 static boost::optional<OF_SHARED_PTR<modelgbp::domain::ConfigToEndpointInventoryRSrc> >
resolve(
322 uint16_t domainConfigToEndpointInventoryRSrcTargetClass,
323 const std::string& domainConfigToEndpointInventoryRSrcTargetName)
325 return resolve(opflex::ofcore::OFFramework::defaultInstance(),domainConfigToEndpointInventoryRSrcTargetClass,domainConfigToEndpointInventoryRSrcTargetName);
338 getTLMutator().remove(
CLASS_ID, getURI());
351 static void remove(opflex::ofcore::OFFramework& framework,
352 const opflex::modb::URI& uri)
354 MO::remove(framework,
CLASS_ID, uri);
367 static void remove(
const opflex::modb::URI& uri)
369 remove(opflex::ofcore::OFFramework::defaultInstance(), uri);
389 opflex::ofcore::OFFramework& framework,
390 uint16_t domainConfigToEndpointInventoryRSrcTargetClass,
391 const std::string& domainConfigToEndpointInventoryRSrcTargetName)
393 MO::remove(framework,
CLASS_ID, opflex::modb::URIBuilder().addElement(
"DomainConfig").addElement(
"DomainConfigToEndpointInventoryRSrc").addElement(domainConfigToEndpointInventoryRSrcTargetClass).addElement(domainConfigToEndpointInventoryRSrcTargetName).build());
413 uint16_t domainConfigToEndpointInventoryRSrcTargetClass,
414 const std::string& domainConfigToEndpointInventoryRSrcTargetName)
416 remove(opflex::ofcore::OFFramework::defaultInstance(),domainConfigToEndpointInventoryRSrcTargetClass,domainConfigToEndpointInventoryRSrcTargetName);
431 opflex::ofcore::OFFramework& framework,
432 opflex::modb::ObjectListener* listener)
434 opflex::modb::mointernal
435 ::MO::registerListener(framework, listener,
CLASS_ID);
450 opflex::modb::ObjectListener* listener)
462 opflex::ofcore::OFFramework& framework,
463 opflex::modb::ObjectListener* listener)
465 opflex::modb::mointernal
466 ::MO::unregisterListener(framework, listener,
CLASS_ID);
476 opflex::modb::ObjectListener* listener)
486 opflex::ofcore::OFFramework& framework,
487 const opflex::modb::URI& uri,
488 const OF_SHARED_PTR<const opflex::modb::mointernal::ObjectInstance>& oi)
489 : MO(framework,
CLASS_ID, uri, oi) { }
Definition ConfigToEndpointInventoryRSrc.hpp:23
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
const uint8_t getRole(const uint8_t defaultValue)
Get the value of role if set, otherwise the value of default passed in.
Definition ConfigToEndpointInventoryRSrc.hpp:56
modelgbp::domain::ConfigToEndpointInventoryRSrc & setRole(const uint8_t newValue)
Set role to the specified value in the currently-active mutator.
Definition ConfigToEndpointInventoryRSrc.hpp:69
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 ConfigToEndpointInventoryRSrc.hpp:430
boost::optional< const uint8_t > getType()
Get the value of type if it has been set.
Definition ConfigToEndpointInventoryRSrc.hpp:200
void remove()
Remove this instance using the currently-active mutator.
Definition ConfigToEndpointInventoryRSrc.hpp:336
modelgbp::domain::ConfigToEndpointInventoryRSrc & setTargetLocalEndpointInventory(const opflex::modb::URI &uri)
Set the reference to point to an instance of LocalEndpointInventory with the specified URI.
Definition ConfigToEndpointInventoryRSrc.hpp:147
const uint8_t getType(const uint8_t defaultValue)
Get the value of type if set, otherwise the value of default passed in.
Definition ConfigToEndpointInventoryRSrc.hpp:212
modelgbp::domain::ConfigToEndpointInventoryRSrc & setTargetLocalEndpointInventory(const std::string &invLocalEndpointInventoryName)
Set the reference to point to an instance of LocalEndpointInventory in the currently-active mutator b...
Definition ConfigToEndpointInventoryRSrc.hpp:168
opflex::modb::URI getTargetURI(opflex::modb::URI defaultValue)
Get the value of targetURI if set, otherwise the value of default passed in.
Definition ConfigToEndpointInventoryRSrc.hpp:133
modelgbp::domain::ConfigToEndpointInventoryRSrc & unsetRole()
Unset role in the currently-active mutator.
Definition ConfigToEndpointInventoryRSrc.hpp:81
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 ConfigToEndpointInventoryRSrc.hpp:449
static boost::optional< OF_SHARED_PTR< modelgbp::domain::ConfigToEndpointInventoryRSrc > > resolve(const opflex::modb::URI &uri)
Retrieve an instance of ConfigToEndpointInventoryRSrc from the managed object store using the default...
Definition ConfigToEndpointInventoryRSrc.hpp:272
bool isRoleSet()
Check whether role has been set.
Definition ConfigToEndpointInventoryRSrc.hpp:35
modelgbp::domain::ConfigToEndpointInventoryRSrc & setType(const uint8_t newValue)
Set type to the specified value in the currently-active mutator.
Definition ConfigToEndpointInventoryRSrc.hpp:225
boost::optional< const uint8_t > getRole()
Get the value of role if it has been set.
Definition ConfigToEndpointInventoryRSrc.hpp:44
bool isTypeSet()
Check whether type has been set.
Definition ConfigToEndpointInventoryRSrc.hpp:191
ConfigToEndpointInventoryRSrc(opflex::ofcore::OFFramework &framework, const opflex::modb::URI &uri, const OF_SHARED_PTR< const opflex::modb::mointernal::ObjectInstance > &oi)
Construct an instance of ConfigToEndpointInventoryRSrc.
Definition ConfigToEndpointInventoryRSrc.hpp:485
boost::optional< opflex::modb::URI > getTargetURI()
Get the value of targetURI if it has been set.
Definition ConfigToEndpointInventoryRSrc.hpp:111
static void remove(uint16_t domainConfigToEndpointInventoryRSrcTargetClass, const std::string &domainConfigToEndpointInventoryRSrcTargetName)
Remove the ConfigToEndpointInventoryRSrc object with the specified path elements from the managed obj...
Definition ConfigToEndpointInventoryRSrc.hpp:412
boost::optional< opflex::modb::class_id_t > getTargetClass()
Get the value of targetClass if it has been set.
Definition ConfigToEndpointInventoryRSrc.hpp:100
static boost::optional< OF_SHARED_PTR< modelgbp::domain::ConfigToEndpointInventoryRSrc > > resolve(opflex::ofcore::OFFramework &framework, uint16_t domainConfigToEndpointInventoryRSrcTargetClass, const std::string &domainConfigToEndpointInventoryRSrcTargetName)
Retrieve an instance of ConfigToEndpointInventoryRSrc from the managed object store by constructing i...
Definition ConfigToEndpointInventoryRSrc.hpp:296
modelgbp::domain::ConfigToEndpointInventoryRSrc & unsetType()
Unset type in the currently-active mutator.
Definition ConfigToEndpointInventoryRSrc.hpp:237
static void remove(opflex::ofcore::OFFramework &framework, uint16_t domainConfigToEndpointInventoryRSrcTargetClass, const std::string &domainConfigToEndpointInventoryRSrcTargetName)
Remove the ConfigToEndpointInventoryRSrc object with the specified path elements from the managed obj...
Definition ConfigToEndpointInventoryRSrc.hpp:388
bool isTargetSet()
Check whether target has been set.
Definition ConfigToEndpointInventoryRSrc.hpp:91
opflex::modb::class_id_t getTargetClass(opflex::modb::class_id_t defaultValue)
Get the value of targetClass if set, otherwise the value of default passed in.
Definition ConfigToEndpointInventoryRSrc.hpp:123
static boost::optional< OF_SHARED_PTR< modelgbp::domain::ConfigToEndpointInventoryRSrc > > resolve(uint16_t domainConfigToEndpointInventoryRSrcTargetClass, const std::string &domainConfigToEndpointInventoryRSrcTargetName)
Retrieve an instance of ConfigToEndpointInventoryRSrc from the default managed object store by constr...
Definition ConfigToEndpointInventoryRSrc.hpp:321
static void remove(const opflex::modb::URI &uri)
Remove the ConfigToEndpointInventoryRSrc object with the specified URI using the currently-active mut...
Definition ConfigToEndpointInventoryRSrc.hpp:367
static void remove(opflex::ofcore::OFFramework &framework, const opflex::modb::URI &uri)
Remove the ConfigToEndpointInventoryRSrc object with the specified URI using the currently-active mut...
Definition ConfigToEndpointInventoryRSrc.hpp:351
static const opflex::modb::class_id_t CLASS_ID
The unique class ID for ConfigToEndpointInventoryRSrc.
Definition ConfigToEndpointInventoryRSrc.hpp:29
modelgbp::domain::ConfigToEndpointInventoryRSrc & unsetTarget()
Unset target in the currently-active mutator.
Definition ConfigToEndpointInventoryRSrc.hpp:181
static void unregisterListener(opflex::modb::ObjectListener *listener)
Unregister a listener from updates to this class from the default framework instance.
Definition ConfigToEndpointInventoryRSrc.hpp:475
static void unregisterListener(opflex::ofcore::OFFramework &framework, opflex::modb::ObjectListener *listener)
Unregister a listener from updates to this class.
Definition ConfigToEndpointInventoryRSrc.hpp:461
SOME COPYRIGHT.
Definition OpcodeEnumT.hpp:12