11#ifndef GI_DCI_EPFROMUNIVRTGT_HPP
12#define GI_DCI_EPFROMUNIVRTGT_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 = 85;
37 return getObjectInstance().isSet(2785282ul, opflex::modb::PropertyInfo::ENUM8);
47 return (
const uint8_t)getObjectInstance().getUInt64(2785282ul);
56 const uint8_t
getRole(
const uint8_t defaultValue)
58 return getRole().get_value_or(defaultValue);
71 getTLMutator().modify(getClassId(), getURI())->setUInt64(2785282ul, newValue);
83 getTLMutator().modify(getClassId(), getURI())->unset(2785282ul, opflex::modb::PropertyInfo::ENUM8, opflex::modb::PropertyInfo::SCALAR);
93 return getObjectInstance().isSet(2785283ul, opflex::modb::PropertyInfo::STRING);
103 return getObjectInstance().getString(2785283ul);
112 const std::string&
getSource(
const std::string& defaultValue)
114 return getSource().get_value_or(defaultValue);
127 getTLMutator().modify(getClassId(), getURI())->setString(2785283ul, newValue);
139 getTLMutator().modify(getClassId(), getURI())->unset(2785283ul, opflex::modb::PropertyInfo::STRING, opflex::modb::PropertyInfo::SCALAR);
149 return getObjectInstance().isSet(2785281ul, opflex::modb::PropertyInfo::ENUM8);
159 return (
const uint8_t)getObjectInstance().getUInt64(2785281ul);
168 const uint8_t
getType(
const uint8_t defaultValue)
170 return getType().get_value_or(defaultValue);
183 getTLMutator().modify(getClassId(), getURI())->setUInt64(2785281ul, newValue);
195 getTLMutator().modify(getClassId(), getURI())->unset(2785281ul, opflex::modb::PropertyInfo::ENUM8, opflex::modb::PropertyInfo::SCALAR);
210 static boost::optional<OF_SHARED_PTR<modelgbp::dci::EpFromUnivRTgt> >
resolve(
211 opflex::ofcore::OFFramework& framework,
212 const opflex::modb::URI& uri)
214 return opflex::modb::mointernal::MO::resolve<modelgbp::dci::EpFromUnivRTgt>(framework,
CLASS_ID, uri);
228 static boost::optional<OF_SHARED_PTR<modelgbp::dci::EpFromUnivRTgt> >
resolve(
229 const opflex::modb::URI& uri)
231 return opflex::modb::mointernal::MO::resolve<modelgbp::dci::EpFromUnivRTgt>(opflex::ofcore::OFFramework::defaultInstance(),
CLASS_ID, uri);
248 static boost::optional<OF_SHARED_PTR<modelgbp::dci::EpFromUnivRTgt> >
resolve(
249 opflex::ofcore::OFFramework& framework)
251 return resolve(framework,opflex::modb::URIBuilder().addElement(
"DciUniverse").addElement(
"DciEpFromUnivRTgt").build());
267 static boost::optional<OF_SHARED_PTR<modelgbp::dci::EpFromUnivRTgt> >
resolve(
270 return resolve(opflex::ofcore::OFFramework::defaultInstance());
283 getTLMutator().remove(
CLASS_ID, getURI());
296 static void remove(opflex::ofcore::OFFramework& framework,
297 const opflex::modb::URI& uri)
299 MO::remove(framework,
CLASS_ID, uri);
312 static void remove(
const opflex::modb::URI& uri)
314 remove(opflex::ofcore::OFFramework::defaultInstance(), uri);
329 opflex::ofcore::OFFramework& framework,
330 opflex::modb::ObjectListener* listener)
332 opflex::modb::mointernal
333 ::MO::registerListener(framework, listener,
CLASS_ID);
348 opflex::modb::ObjectListener* listener)
360 opflex::ofcore::OFFramework& framework,
361 opflex::modb::ObjectListener* listener)
363 opflex::modb::mointernal
364 ::MO::unregisterListener(framework, listener,
CLASS_ID);
374 opflex::modb::ObjectListener* listener)
384 opflex::ofcore::OFFramework& framework,
385 const opflex::modb::URI& uri,
386 const OF_SHARED_PTR<const opflex::modb::mointernal::ObjectInstance>& oi)
387 : MO(framework,
CLASS_ID, uri, oi) { }
Definition EpFromUnivRTgt.hpp:23
bool isSourceSet()
Check whether source has been set.
Definition EpFromUnivRTgt.hpp:91
static boost::optional< OF_SHARED_PTR< modelgbp::dci::EpFromUnivRTgt > > resolve(opflex::ofcore::OFFramework &framework)
Retrieve an instance of EpFromUnivRTgt from the managed object store by constructing its URI from the...
Definition EpFromUnivRTgt.hpp:248
static boost::optional< OF_SHARED_PTR< modelgbp::dci::EpFromUnivRTgt > > resolve()
Retrieve an instance of EpFromUnivRTgt from the default managed object store by constructing its URI ...
Definition EpFromUnivRTgt.hpp:267
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 EpFromUnivRTgt.hpp:347
const uint8_t getType(const uint8_t defaultValue)
Get the value of type if set, otherwise the value of default passed in.
Definition EpFromUnivRTgt.hpp:168
boost::optional< const uint8_t > getType()
Get the value of type if it has been set.
Definition EpFromUnivRTgt.hpp:156
static void unregisterListener(opflex::ofcore::OFFramework &framework, opflex::modb::ObjectListener *listener)
Unregister a listener from updates to this class.
Definition EpFromUnivRTgt.hpp:359
modelgbp::dci::EpFromUnivRTgt & setSource(const std::string &newValue)
Set source to the specified value in the currently-active mutator.
Definition EpFromUnivRTgt.hpp:125
static boost::optional< OF_SHARED_PTR< modelgbp::dci::EpFromUnivRTgt > > resolve(opflex::ofcore::OFFramework &framework, const opflex::modb::URI &uri)
Retrieve an instance of EpFromUnivRTgt from the managed object store.
Definition EpFromUnivRTgt.hpp:210
modelgbp::dci::EpFromUnivRTgt & unsetRole()
Unset role in the currently-active mutator.
Definition EpFromUnivRTgt.hpp:81
boost::optional< const std::string & > getSource()
Get the value of source if it has been set.
Definition EpFromUnivRTgt.hpp:100
static void unregisterListener(opflex::modb::ObjectListener *listener)
Unregister a listener from updates to this class from the default framework instance.
Definition EpFromUnivRTgt.hpp:373
boost::optional< const uint8_t > getRole()
Get the value of role if it has been set.
Definition EpFromUnivRTgt.hpp:44
const uint8_t getRole(const uint8_t defaultValue)
Get the value of role if set, otherwise the value of default passed in.
Definition EpFromUnivRTgt.hpp:56
static const opflex::modb::class_id_t CLASS_ID
The unique class ID for EpFromUnivRTgt.
Definition EpFromUnivRTgt.hpp:29
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 EpFromUnivRTgt.hpp:328
modelgbp::dci::EpFromUnivRTgt & unsetSource()
Unset source in the currently-active mutator.
Definition EpFromUnivRTgt.hpp:137
modelgbp::dci::EpFromUnivRTgt & setType(const uint8_t newValue)
Set type to the specified value in the currently-active mutator.
Definition EpFromUnivRTgt.hpp:181
static void remove(opflex::ofcore::OFFramework &framework, const opflex::modb::URI &uri)
Remove the EpFromUnivRTgt object with the specified URI using the currently-active mutator.
Definition EpFromUnivRTgt.hpp:296
modelgbp::dci::EpFromUnivRTgt & unsetType()
Unset type in the currently-active mutator.
Definition EpFromUnivRTgt.hpp:193
static void remove(const opflex::modb::URI &uri)
Remove the EpFromUnivRTgt object with the specified URI using the currently-active mutator and the de...
Definition EpFromUnivRTgt.hpp:312
modelgbp::dci::EpFromUnivRTgt & setRole(const uint8_t newValue)
Set role to the specified value in the currently-active mutator.
Definition EpFromUnivRTgt.hpp:69
bool isRoleSet()
Check whether role has been set.
Definition EpFromUnivRTgt.hpp:35
const std::string & getSource(const std::string &defaultValue)
Get the value of source if set, otherwise the value of default passed in.
Definition EpFromUnivRTgt.hpp:112
EpFromUnivRTgt(opflex::ofcore::OFFramework &framework, const opflex::modb::URI &uri, const OF_SHARED_PTR< const opflex::modb::mointernal::ObjectInstance > &oi)
Construct an instance of EpFromUnivRTgt.
Definition EpFromUnivRTgt.hpp:383
void remove()
Remove this instance using the currently-active mutator.
Definition EpFromUnivRTgt.hpp:281
bool isTypeSet()
Check whether type has been set.
Definition EpFromUnivRTgt.hpp:147
static boost::optional< OF_SHARED_PTR< modelgbp::dci::EpFromUnivRTgt > > resolve(const opflex::modb::URI &uri)
Retrieve an instance of EpFromUnivRTgt from the managed object store using the default framework inst...
Definition EpFromUnivRTgt.hpp:228
SOME COPYRIGHT.
Definition OpcodeEnumT.hpp:12