11#ifndef GI_DCI_EPTOUNIVRSRC_HPP
12#define GI_DCI_EPTOUNIVRSRC_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 = 84;
37 return getObjectInstance().isSet(2752514ul, opflex::modb::PropertyInfo::ENUM8);
47 return (
const uint8_t)getObjectInstance().getUInt64(2752514ul);
56 const uint8_t
getRole(
const uint8_t defaultValue)
58 return getRole().get_value_or(defaultValue);
71 getTLMutator().modify(getClassId(), getURI())->setUInt64(2752514ul, newValue);
83 getTLMutator().modify(getClassId(), getURI())->unset(2752514ul, opflex::modb::PropertyInfo::ENUM8, opflex::modb::PropertyInfo::SCALAR);
93 return getObjectInstance().isSet(2752515ul, opflex::modb::PropertyInfo::REFERENCE);
103 return getObjectInstance().getReference(2752515ul).first;
114 return getObjectInstance().getReference(2752515ul).second;
149 getTLMutator().modify(getClassId(), getURI())->setReference(2752515ul, 81, uri);
169 getTLMutator().modify(getClassId(), getURI())->setReference(2752515ul, 81, opflex::modb::URIBuilder().addElement(
"DciUniverse").build());
181 getTLMutator().modify(getClassId(), getURI())->unset(2752515ul, opflex::modb::PropertyInfo::REFERENCE, opflex::modb::PropertyInfo::SCALAR);
191 return getObjectInstance().isSet(2752513ul, opflex::modb::PropertyInfo::ENUM8);
201 return (
const uint8_t)getObjectInstance().getUInt64(2752513ul);
210 const uint8_t
getType(
const uint8_t defaultValue)
212 return getType().get_value_or(defaultValue);
225 getTLMutator().modify(getClassId(), getURI())->setUInt64(2752513ul, newValue);
237 getTLMutator().modify(getClassId(), getURI())->unset(2752513ul, opflex::modb::PropertyInfo::ENUM8, opflex::modb::PropertyInfo::SCALAR);
252 static boost::optional<OF_SHARED_PTR<modelgbp::dci::EpToUnivRSrc> >
resolve(
253 opflex::ofcore::OFFramework& framework,
254 const opflex::modb::URI& uri)
256 return opflex::modb::mointernal::MO::resolve<modelgbp::dci::EpToUnivRSrc>(framework,
CLASS_ID, uri);
270 static boost::optional<OF_SHARED_PTR<modelgbp::dci::EpToUnivRSrc> >
resolve(
271 const opflex::modb::URI& uri)
273 return opflex::modb::mointernal::MO::resolve<modelgbp::dci::EpToUnivRSrc>(opflex::ofcore::OFFramework::defaultInstance(),
CLASS_ID, uri);
290 static boost::optional<OF_SHARED_PTR<modelgbp::dci::EpToUnivRSrc> >
resolve(
291 opflex::ofcore::OFFramework& framework)
293 return resolve(framework,opflex::modb::URIBuilder().addElement(
"DciDiscoverer").addElement(
"DciEp").addElement(
"DciEpToUnivRSrc").build());
309 static boost::optional<OF_SHARED_PTR<modelgbp::dci::EpToUnivRSrc> >
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) { }
Definition EpToUnivRSrc.hpp:23
EpToUnivRSrc(opflex::ofcore::OFFramework &framework, const opflex::modb::URI &uri, const OF_SHARED_PTR< const opflex::modb::mointernal::ObjectInstance > &oi)
Construct an instance of EpToUnivRSrc.
Definition EpToUnivRSrc.hpp:425
static const opflex::modb::class_id_t CLASS_ID
The unique class ID for EpToUnivRSrc.
Definition EpToUnivRSrc.hpp:29
bool isTypeSet()
Check whether type has been set.
Definition EpToUnivRSrc.hpp:189
static void remove(const opflex::modb::URI &uri)
Remove the EpToUnivRSrc object with the specified URI using the currently-active mutator and the defa...
Definition EpToUnivRSrc.hpp:354
modelgbp::dci::EpToUnivRSrc & setTargetUniverse()
Set the reference to point to an instance of Universe in the currently-active mutator by constructing...
Definition EpToUnivRSrc.hpp:166
modelgbp::dci::EpToUnivRSrc & unsetType()
Unset type in the currently-active mutator.
Definition EpToUnivRSrc.hpp:235
const uint8_t getType(const uint8_t defaultValue)
Get the value of type if set, otherwise the value of default passed in.
Definition EpToUnivRSrc.hpp:210
modelgbp::dci::EpToUnivRSrc & unsetTarget()
Unset target in the currently-active mutator.
Definition EpToUnivRSrc.hpp:179
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 EpToUnivRSrc.hpp:370
boost::optional< opflex::modb::class_id_t > getTargetClass()
Get the value of targetClass if it has been set.
Definition EpToUnivRSrc.hpp:100
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 EpToUnivRSrc.hpp:389
boost::optional< const uint8_t > getType()
Get the value of type if it has been set.
Definition EpToUnivRSrc.hpp:198
static void unregisterListener(opflex::modb::ObjectListener *listener)
Unregister a listener from updates to this class from the default framework instance.
Definition EpToUnivRSrc.hpp:415
boost::optional< opflex::modb::URI > getTargetURI()
Get the value of targetURI if it has been set.
Definition EpToUnivRSrc.hpp:111
static void remove(opflex::ofcore::OFFramework &framework, const opflex::modb::URI &uri)
Remove the EpToUnivRSrc object with the specified URI using the currently-active mutator.
Definition EpToUnivRSrc.hpp:338
opflex::modb::URI getTargetURI(opflex::modb::URI defaultValue)
Get the value of targetURI if set, otherwise the value of default passed in.
Definition EpToUnivRSrc.hpp:133
modelgbp::dci::EpToUnivRSrc & unsetRole()
Unset role in the currently-active mutator.
Definition EpToUnivRSrc.hpp:81
const uint8_t getRole(const uint8_t defaultValue)
Get the value of role if set, otherwise the value of default passed in.
Definition EpToUnivRSrc.hpp:56
static boost::optional< OF_SHARED_PTR< modelgbp::dci::EpToUnivRSrc > > resolve(opflex::ofcore::OFFramework &framework, const opflex::modb::URI &uri)
Retrieve an instance of EpToUnivRSrc from the managed object store.
Definition EpToUnivRSrc.hpp:252
static boost::optional< OF_SHARED_PTR< modelgbp::dci::EpToUnivRSrc > > resolve(opflex::ofcore::OFFramework &framework)
Retrieve an instance of EpToUnivRSrc from the managed object store by constructing its URI from the p...
Definition EpToUnivRSrc.hpp:290
boost::optional< const uint8_t > getRole()
Get the value of role if it has been set.
Definition EpToUnivRSrc.hpp:44
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 EpToUnivRSrc.hpp:123
static boost::optional< OF_SHARED_PTR< modelgbp::dci::EpToUnivRSrc > > resolve()
Retrieve an instance of EpToUnivRSrc from the default managed object store by constructing its URI fr...
Definition EpToUnivRSrc.hpp:309
static boost::optional< OF_SHARED_PTR< modelgbp::dci::EpToUnivRSrc > > resolve(const opflex::modb::URI &uri)
Retrieve an instance of EpToUnivRSrc from the managed object store using the default framework instan...
Definition EpToUnivRSrc.hpp:270
void remove()
Remove this instance using the currently-active mutator.
Definition EpToUnivRSrc.hpp:323
modelgbp::dci::EpToUnivRSrc & setType(const uint8_t newValue)
Set type to the specified value in the currently-active mutator.
Definition EpToUnivRSrc.hpp:223
bool isRoleSet()
Check whether role has been set.
Definition EpToUnivRSrc.hpp:35
modelgbp::dci::EpToUnivRSrc & setRole(const uint8_t newValue)
Set role to the specified value in the currently-active mutator.
Definition EpToUnivRSrc.hpp:69
bool isTargetSet()
Check whether target has been set.
Definition EpToUnivRSrc.hpp:91
static void unregisterListener(opflex::ofcore::OFFramework &framework, opflex::modb::ObjectListener *listener)
Unregister a listener from updates to this class.
Definition EpToUnivRSrc.hpp:401
modelgbp::dci::EpToUnivRSrc & setTargetUniverse(const opflex::modb::URI &uri)
Set the reference to point to an instance of Universe with the specified URI.
Definition EpToUnivRSrc.hpp:147
SOME COPYRIGHT.
Definition OpcodeEnumT.hpp:12