11 #ifndef GI_GBPE_EPGMAPPINGCTXTOATTRSETRRES_HPP
12 #define GI_GBPE_EPGMAPPINGCTXTOATTRSETRRES_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 = 27;
37 return getObjectInstance().isSet(884738ul, opflex::modb::PropertyInfo::ENUM8);
47 return (
const uint8_t)getObjectInstance().getUInt64(884738ul);
56 const uint8_t
getRole(
const uint8_t defaultValue)
58 return getRole().get_value_or(defaultValue);
71 getTLMutator().modify(getClassId(), getURI())->setUInt64(884738ul, newValue);
83 getTLMutator().modify(getClassId(), getURI())->unset(884738ul, opflex::modb::PropertyInfo::ENUM8, opflex::modb::PropertyInfo::SCALAR);
93 return getObjectInstance().isSet(884737ul, opflex::modb::PropertyInfo::ENUM8);
103 return (
const uint8_t)getObjectInstance().getUInt64(884737ul);
112 const uint8_t
getType(
const uint8_t defaultValue)
114 return getType().get_value_or(defaultValue);
127 getTLMutator().modify(getClassId(), getURI())->setUInt64(884737ul, newValue);
139 getTLMutator().modify(getClassId(), getURI())->unset(884737ul, opflex::modb::PropertyInfo::ENUM8, opflex::modb::PropertyInfo::SCALAR);
154 static boost::optional<OF_SHARED_PTR<modelgbp::gbpe::EpgMappingCtxToAttrSetRRes> >
resolve(
155 opflex::ofcore::OFFramework& framework,
156 const opflex::modb::URI& uri)
158 return opflex::modb::mointernal::MO::resolve<modelgbp::gbpe::EpgMappingCtxToAttrSetRRes>(framework,
CLASS_ID, uri);
172 static boost::optional<OF_SHARED_PTR<modelgbp::gbpe::EpgMappingCtxToAttrSetRRes> >
resolve(
173 const opflex::modb::URI& uri)
175 return opflex::modb::mointernal::MO::resolve<modelgbp::gbpe::EpgMappingCtxToAttrSetRRes>(opflex::ofcore::OFFramework::defaultInstance(),
CLASS_ID, uri);
192 static boost::optional<OF_SHARED_PTR<modelgbp::gbpe::EpgMappingCtxToAttrSetRRes> >
resolve(
193 opflex::ofcore::OFFramework& framework)
195 return resolve(framework,opflex::modb::URIBuilder().addElement(
"RelatorUniverse").addElement(
"GbpeEpgMappingCtxToAttrSetRRes").build());
211 static boost::optional<OF_SHARED_PTR<modelgbp::gbpe::EpgMappingCtxToAttrSetRRes> >
resolve(
214 return resolve(opflex::ofcore::OFFramework::defaultInstance());
227 getTLMutator().remove(
CLASS_ID, getURI());
240 static void remove(opflex::ofcore::OFFramework& framework,
241 const opflex::modb::URI& uri)
243 MO::remove(framework,
CLASS_ID, uri);
256 static void remove(
const opflex::modb::URI& uri)
258 remove(opflex::ofcore::OFFramework::defaultInstance(), uri);
273 opflex::ofcore::OFFramework& framework,
274 opflex::modb::ObjectListener* listener)
276 opflex::modb::mointernal
277 ::MO::registerListener(framework, listener,
CLASS_ID);
292 opflex::modb::ObjectListener* listener)
304 opflex::ofcore::OFFramework& framework,
305 opflex::modb::ObjectListener* listener)
307 opflex::modb::mointernal
308 ::MO::unregisterListener(framework, listener,
CLASS_ID);
318 opflex::modb::ObjectListener* listener)
328 opflex::ofcore::OFFramework& framework,
329 const opflex::modb::URI& uri,
330 const OF_SHARED_PTR<const opflex::modb::mointernal::ObjectInstance>& oi)
331 : MO(framework,
CLASS_ID, uri, oi) { }
336 #endif // GI_GBPE_EPGMAPPINGCTXTOATTRSETRRES_HPP
static boost::optional< OF_SHARED_PTR< modelgbp::gbpe::EpgMappingCtxToAttrSetRRes > > resolve(opflex::ofcore::OFFramework &framework)
Retrieve an instance of EpgMappingCtxToAttrSetRRes from the managed object store by constructing its ...
Definition: EpgMappingCtxToAttrSetRRes.hpp:192
static void unregisterListener(opflex::ofcore::OFFramework &framework, opflex::modb::ObjectListener *listener)
Unregister a listener from updates to this class.
Definition: EpgMappingCtxToAttrSetRRes.hpp:303
bool isTypeSet()
Check whether type has been set.
Definition: EpgMappingCtxToAttrSetRRes.hpp:91
modelgbp::gbpe::EpgMappingCtxToAttrSetRRes & unsetRole()
Unset role in the currently-active mutator.
Definition: EpgMappingCtxToAttrSetRRes.hpp:81
boost::optional< const uint8_t > getRole()
Get the value of role if it has been set.
Definition: EpgMappingCtxToAttrSetRRes.hpp:44
static void unregisterListener(opflex::modb::ObjectListener *listener)
Unregister a listener from updates to this class from the default framework instance.
Definition: EpgMappingCtxToAttrSetRRes.hpp:317
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: EpgMappingCtxToAttrSetRRes.hpp:291
static boost::optional< OF_SHARED_PTR< modelgbp::gbpe::EpgMappingCtxToAttrSetRRes > > resolve()
Retrieve an instance of EpgMappingCtxToAttrSetRRes from the default managed object store by construct...
Definition: EpgMappingCtxToAttrSetRRes.hpp:211
modelgbp::gbpe::EpgMappingCtxToAttrSetRRes & setType(const uint8_t newValue)
Set type to the specified value in the currently-active mutator.
Definition: EpgMappingCtxToAttrSetRRes.hpp:125
boost::optional< const uint8_t > getType()
Get the value of type if it has been set.
Definition: EpgMappingCtxToAttrSetRRes.hpp:100
static boost::optional< OF_SHARED_PTR< modelgbp::gbpe::EpgMappingCtxToAttrSetRRes > > resolve(opflex::ofcore::OFFramework &framework, const opflex::modb::URI &uri)
Retrieve an instance of EpgMappingCtxToAttrSetRRes from the managed object store. ...
Definition: EpgMappingCtxToAttrSetRRes.hpp:154
static boost::optional< OF_SHARED_PTR< modelgbp::gbpe::EpgMappingCtxToAttrSetRRes > > resolve(const opflex::modb::URI &uri)
Retrieve an instance of EpgMappingCtxToAttrSetRRes from the managed object store using the default fr...
Definition: EpgMappingCtxToAttrSetRRes.hpp:172
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: EpgMappingCtxToAttrSetRRes.hpp:272
modelgbp::gbpe::EpgMappingCtxToAttrSetRRes & setRole(const uint8_t newValue)
Set role to the specified value in the currently-active mutator.
Definition: EpgMappingCtxToAttrSetRRes.hpp:69
EpgMappingCtxToAttrSetRRes(opflex::ofcore::OFFramework &framework, const opflex::modb::URI &uri, const OF_SHARED_PTR< const opflex::modb::mointernal::ObjectInstance > &oi)
Construct an instance of EpgMappingCtxToAttrSetRRes.
Definition: EpgMappingCtxToAttrSetRRes.hpp:327
Definition: EpgMappingCtxToAttrSetRRes.hpp:21
const uint8_t getRole(const uint8_t defaultValue)
Get the value of role if set, otherwise the value of default passed in.
Definition: EpgMappingCtxToAttrSetRRes.hpp:56
bool isRoleSet()
Check whether role has been set.
Definition: EpgMappingCtxToAttrSetRRes.hpp:35
modelgbp::gbpe::EpgMappingCtxToAttrSetRRes & unsetType()
Unset type in the currently-active mutator.
Definition: EpgMappingCtxToAttrSetRRes.hpp:137
const uint8_t getType(const uint8_t defaultValue)
Get the value of type if set, otherwise the value of default passed in.
Definition: EpgMappingCtxToAttrSetRRes.hpp:112
static const opflex::modb::class_id_t CLASS_ID
The unique class ID for EpgMappingCtxToAttrSetRRes.
Definition: EpgMappingCtxToAttrSetRRes.hpp:29