11 #ifndef GI_DOMAIN_CONFIGTOREMOTEENDPOINTINVENTORYRSRC_HPP
12 #define GI_DOMAIN_CONFIGTOREMOTEENDPOINTINVENTORYRSRC_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 = 63;
37 return getObjectInstance().isSet(2064386ul, opflex::modb::PropertyInfo::ENUM8);
47 return (
const uint8_t)getObjectInstance().getUInt64(2064386ul);
56 const uint8_t
getRole(
const uint8_t defaultValue)
58 return getRole().get_value_or(defaultValue);
71 getTLMutator().modify(getClassId(), getURI())->setUInt64(2064386ul, newValue);
83 getTLMutator().modify(getClassId(), getURI())->unset(2064386ul, opflex::modb::PropertyInfo::ENUM8, opflex::modb::PropertyInfo::SCALAR);
93 return getObjectInstance().isSet(2064387ul, opflex::modb::PropertyInfo::REFERENCE);
103 return getObjectInstance().getReference(2064387ul).first;
114 return getObjectInstance().getReference(2064387ul).second;
149 getTLMutator().modify(getClassId(), getURI())->setReference(2064387ul, 141, uri);
169 getTLMutator().modify(getClassId(), getURI())->setReference(2064387ul, 141, opflex::modb::URIBuilder().addElement(
"InvUniverse").addElement(
"InvRemoteEndpointInventory").build());
181 getTLMutator().modify(getClassId(), getURI())->unset(2064387ul, opflex::modb::PropertyInfo::REFERENCE, opflex::modb::PropertyInfo::SCALAR);
191 return getObjectInstance().isSet(2064385ul, opflex::modb::PropertyInfo::ENUM8);
201 return (
const uint8_t)getObjectInstance().getUInt64(2064385ul);
210 const uint8_t
getType(
const uint8_t defaultValue)
212 return getType().get_value_or(defaultValue);
225 getTLMutator().modify(getClassId(), getURI())->setUInt64(2064385ul, newValue);
237 getTLMutator().modify(getClassId(), getURI())->unset(2064385ul, opflex::modb::PropertyInfo::ENUM8, opflex::modb::PropertyInfo::SCALAR);
252 static boost::optional<OF_SHARED_PTR<modelgbp::domain::ConfigToRemoteEndpointInventoryRSrc> >
resolve(
253 opflex::ofcore::OFFramework& framework,
254 const opflex::modb::URI& uri)
256 return opflex::modb::mointernal::MO::resolve<modelgbp::domain::ConfigToRemoteEndpointInventoryRSrc>(framework,
CLASS_ID, uri);
270 static boost::optional<OF_SHARED_PTR<modelgbp::domain::ConfigToRemoteEndpointInventoryRSrc> >
resolve(
271 const opflex::modb::URI& uri)
273 return opflex::modb::mointernal::MO::resolve<modelgbp::domain::ConfigToRemoteEndpointInventoryRSrc>(opflex::ofcore::OFFramework::defaultInstance(),
CLASS_ID, uri);
290 static boost::optional<OF_SHARED_PTR<modelgbp::domain::ConfigToRemoteEndpointInventoryRSrc> >
resolve(
291 opflex::ofcore::OFFramework& framework)
293 return resolve(framework,opflex::modb::URIBuilder().addElement(
"DomainConfig").addElement(
"DomainConfigToRemoteEndpointInventoryRSrc").build());
309 static boost::optional<OF_SHARED_PTR<modelgbp::domain::ConfigToRemoteEndpointInventoryRSrc> >
resolve(
312 return resolve(opflex::ofcore::OFFramework::defaultInstance());
325 getTLMutator().remove(
CLASS_ID, getURI());
338 static void remove(opflex::ofcore::OFFramework& framework,
339 const opflex::modb::URI& uri)
341 MO::remove(framework,
CLASS_ID, uri);
354 static void remove(
const opflex::modb::URI& uri)
356 remove(opflex::ofcore::OFFramework::defaultInstance(), uri);
371 opflex::ofcore::OFFramework& framework,
372 opflex::modb::ObjectListener* listener)
374 opflex::modb::mointernal
375 ::MO::registerListener(framework, listener,
CLASS_ID);
390 opflex::modb::ObjectListener* listener)
402 opflex::ofcore::OFFramework& framework,
403 opflex::modb::ObjectListener* listener)
405 opflex::modb::mointernal
406 ::MO::unregisterListener(framework, listener,
CLASS_ID);
416 opflex::modb::ObjectListener* listener)
426 opflex::ofcore::OFFramework& framework,
427 const opflex::modb::URI& uri,
428 const OF_SHARED_PTR<const opflex::modb::mointernal::ObjectInstance>& oi)
429 : MO(framework,
CLASS_ID, uri, oi) { }
434 #endif // GI_DOMAIN_CONFIGTOREMOTEENDPOINTINVENTORYRSRC_HPP
const uint8_t getType(const uint8_t defaultValue)
Get the value of type if set, otherwise the value of default passed in.
Definition: ConfigToRemoteEndpointInventoryRSrc.hpp:210
modelgbp::domain::ConfigToRemoteEndpointInventoryRSrc & setTargetRemoteEndpointInventory()
Set the reference to point to an instance of RemoteEndpointInventory in the currently-active mutator ...
Definition: ConfigToRemoteEndpointInventoryRSrc.hpp:166
static boost::optional< OF_SHARED_PTR< modelgbp::domain::ConfigToRemoteEndpointInventoryRSrc > > resolve()
Retrieve an instance of ConfigToRemoteEndpointInventoryRSrc from the default managed object store by ...
Definition: ConfigToRemoteEndpointInventoryRSrc.hpp:309
modelgbp::domain::ConfigToRemoteEndpointInventoryRSrc & unsetTarget()
Unset target in the currently-active mutator.
Definition: ConfigToRemoteEndpointInventoryRSrc.hpp:179
static void unregisterListener(opflex::ofcore::OFFramework &framework, opflex::modb::ObjectListener *listener)
Unregister a listener from updates to this class.
Definition: ConfigToRemoteEndpointInventoryRSrc.hpp:401
static boost::optional< OF_SHARED_PTR< modelgbp::domain::ConfigToRemoteEndpointInventoryRSrc > > resolve(opflex::ofcore::OFFramework &framework, const opflex::modb::URI &uri)
Retrieve an instance of ConfigToRemoteEndpointInventoryRSrc from the managed object store...
Definition: ConfigToRemoteEndpointInventoryRSrc.hpp:252
bool isTypeSet()
Check whether type has been set.
Definition: ConfigToRemoteEndpointInventoryRSrc.hpp:189
static void unregisterListener(opflex::modb::ObjectListener *listener)
Unregister a listener from updates to this class from the default framework instance.
Definition: ConfigToRemoteEndpointInventoryRSrc.hpp:415
modelgbp::domain::ConfigToRemoteEndpointInventoryRSrc & setRole(const uint8_t newValue)
Set role to the specified value in the currently-active mutator.
Definition: ConfigToRemoteEndpointInventoryRSrc.hpp:69
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: ConfigToRemoteEndpointInventoryRSrc.hpp:123
static boost::optional< OF_SHARED_PTR< modelgbp::domain::ConfigToRemoteEndpointInventoryRSrc > > resolve(const opflex::modb::URI &uri)
Retrieve an instance of ConfigToRemoteEndpointInventoryRSrc from the managed object store using the d...
Definition: ConfigToRemoteEndpointInventoryRSrc.hpp:270
ConfigToRemoteEndpointInventoryRSrc(opflex::ofcore::OFFramework &framework, const opflex::modb::URI &uri, const OF_SHARED_PTR< const opflex::modb::mointernal::ObjectInstance > &oi)
Construct an instance of ConfigToRemoteEndpointInventoryRSrc.
Definition: ConfigToRemoteEndpointInventoryRSrc.hpp:425
modelgbp::domain::ConfigToRemoteEndpointInventoryRSrc & unsetType()
Unset type in the currently-active mutator.
Definition: ConfigToRemoteEndpointInventoryRSrc.hpp:235
bool isTargetSet()
Check whether target has been set.
Definition: ConfigToRemoteEndpointInventoryRSrc.hpp:91
static const opflex::modb::class_id_t CLASS_ID
The unique class ID for ConfigToRemoteEndpointInventoryRSrc.
Definition: ConfigToRemoteEndpointInventoryRSrc.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: ConfigToRemoteEndpointInventoryRSrc.hpp:56
boost::optional< const uint8_t > getType()
Get the value of type if it has been set.
Definition: ConfigToRemoteEndpointInventoryRSrc.hpp:198
modelgbp::domain::ConfigToRemoteEndpointInventoryRSrc & setTargetRemoteEndpointInventory(const opflex::modb::URI &uri)
Set the reference to point to an instance of RemoteEndpointInventory with the specified URI...
Definition: ConfigToRemoteEndpointInventoryRSrc.hpp:147
boost::optional< opflex::modb::URI > getTargetURI()
Get the value of targetURI if it has been set.
Definition: ConfigToRemoteEndpointInventoryRSrc.hpp:111
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: ConfigToRemoteEndpointInventoryRSrc.hpp:370
boost::optional< const uint8_t > getRole()
Get the value of role if it has been set.
Definition: ConfigToRemoteEndpointInventoryRSrc.hpp:44
Definition: ConfigToRemoteEndpointInventoryRSrc.hpp:21
opflex::modb::URI getTargetURI(opflex::modb::URI defaultValue)
Get the value of targetURI if set, otherwise the value of default passed in.
Definition: ConfigToRemoteEndpointInventoryRSrc.hpp:133
modelgbp::domain::ConfigToRemoteEndpointInventoryRSrc & unsetRole()
Unset role in the currently-active mutator.
Definition: ConfigToRemoteEndpointInventoryRSrc.hpp:81
bool isRoleSet()
Check whether role has been set.
Definition: ConfigToRemoteEndpointInventoryRSrc.hpp:35
static boost::optional< OF_SHARED_PTR< modelgbp::domain::ConfigToRemoteEndpointInventoryRSrc > > resolve(opflex::ofcore::OFFramework &framework)
Retrieve an instance of ConfigToRemoteEndpointInventoryRSrc from the managed object store by construc...
Definition: ConfigToRemoteEndpointInventoryRSrc.hpp:290
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: ConfigToRemoteEndpointInventoryRSrc.hpp:389
modelgbp::domain::ConfigToRemoteEndpointInventoryRSrc & setType(const uint8_t newValue)
Set type to the specified value in the currently-active mutator.
Definition: ConfigToRemoteEndpointInventoryRSrc.hpp:223
boost::optional< opflex::modb::class_id_t > getTargetClass()
Get the value of targetClass if it has been set.
Definition: ConfigToRemoteEndpointInventoryRSrc.hpp:100