11#ifndef GI_INV_ATTRIBUTE_HPP
12#define GI_INV_ATTRIBUTE_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 = 136;
44 boost::optional<const std::string&>
getName()
139 getTLMutator().modify(
getClassId(),
getURI())->unset(4456450ul, opflex::modb::PropertyInfo::STRING, opflex::modb::PropertyInfo::SCALAR);
154 static boost::optional<OF_SHARED_PTR<modelgbp::inv::Attribute> >
resolve(
156 const opflex::modb::URI&
uri)
158 return opflex::modb::mointernal::MO::resolve<modelgbp::inv::Attribute>(
framework,
CLASS_ID,
uri);
172 static boost::optional<OF_SHARED_PTR<modelgbp::inv::Attribute> >
resolve(
173 const opflex::modb::URI&
uri)
175 return opflex::modb::mointernal::MO::resolve<modelgbp::inv::Attribute>(opflex::ofcore::OFFramework::defaultInstance(),
CLASS_ID,
uri);
198 static boost::optional<OF_SHARED_PTR<modelgbp::inv::Attribute> >
resolve(
226 static boost::optional<OF_SHARED_PTR<modelgbp::inv::Attribute> >
resolve(
258 const opflex::modb::URI&
uri)
275 remove(opflex::ofcore::OFFramework::defaultInstance(),
uri);
344 opflex::modb::ObjectListener*
listener)
346 opflex::modb::mointernal
362 opflex::modb::ObjectListener*
listener)
375 opflex::modb::ObjectListener*
listener)
377 opflex::modb::mointernal
388 opflex::modb::ObjectListener*
listener)
399 const opflex::modb::URI&
uri,
Definition Attribute.hpp:23
static void remove(const std::string &invLocalEndpointInventoryName, const std::string &invLocalInventoryEpUuid, const std::string &invAttributeName)
Remove the Attribute object with the specified path elements from the managed object store using the ...
Definition Attribute.hpp:323
static boost::optional< OF_SHARED_PTR< modelgbp::inv::Attribute > > resolve(opflex::ofcore::OFFramework &framework, const std::string &invLocalEndpointInventoryName, const std::string &invLocalInventoryEpUuid, const std::string &invAttributeName)
Retrieve an instance of Attribute from the managed object store by constructing its URI from the path...
Definition Attribute.hpp:198
bool isValueSet()
Check whether value has been set.
Definition Attribute.hpp:91
const std::string & getName(const std::string &defaultValue)
Get the value of name if set, otherwise the value of default passed in.
Definition Attribute.hpp:56
static void remove(const opflex::modb::URI &uri)
Remove the Attribute object with the specified URI using the currently-active mutator and the default...
Definition Attribute.hpp:273
static void remove(opflex::ofcore::OFFramework &framework, const opflex::modb::URI &uri)
Remove the Attribute object with the specified URI using the currently-active mutator.
Definition Attribute.hpp:257
modelgbp::inv::Attribute & setName(const std::string &newValue)
Set name to the specified value in the currently-active mutator.
Definition Attribute.hpp:69
boost::optional< const std::string & > getValue()
Get the value of value if it has been set.
Definition Attribute.hpp:100
void remove()
Remove this instance using the currently-active mutator.
Definition Attribute.hpp:242
const std::string & getValue(const std::string &defaultValue)
Get the value of value if set, otherwise the value of default passed in.
Definition Attribute.hpp:112
static boost::optional< OF_SHARED_PTR< modelgbp::inv::Attribute > > resolve(opflex::ofcore::OFFramework &framework, const opflex::modb::URI &uri)
Retrieve an instance of Attribute from the managed object store.
Definition Attribute.hpp:154
static boost::optional< OF_SHARED_PTR< modelgbp::inv::Attribute > > resolve(const std::string &invLocalEndpointInventoryName, const std::string &invLocalInventoryEpUuid, const std::string &invAttributeName)
Retrieve an instance of Attribute from the default managed object store by constructing its URI from ...
Definition Attribute.hpp:226
static void unregisterListener(opflex::modb::ObjectListener *listener)
Unregister a listener from updates to this class from the default framework instance.
Definition Attribute.hpp:387
static void remove(opflex::ofcore::OFFramework &framework, const std::string &invLocalEndpointInventoryName, const std::string &invLocalInventoryEpUuid, const std::string &invAttributeName)
Remove the Attribute object with the specified path elements from the managed object store.
Definition Attribute.hpp:296
modelgbp::inv::Attribute & setValue(const std::string &newValue)
Set value to the specified value in the currently-active mutator.
Definition Attribute.hpp:125
modelgbp::inv::Attribute & unsetValue()
Unset value in the currently-active mutator.
Definition Attribute.hpp:137
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 Attribute.hpp:342
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 Attribute.hpp:361
Attribute(opflex::ofcore::OFFramework &framework, const opflex::modb::URI &uri, const OF_SHARED_PTR< const opflex::modb::mointernal::ObjectInstance > &oi)
Construct an instance of Attribute.
Definition Attribute.hpp:397
boost::optional< const std::string & > getName()
Get the value of name if it has been set.
Definition Attribute.hpp:44
static const opflex::modb::class_id_t CLASS_ID
The unique class ID for Attribute.
Definition Attribute.hpp:29
bool isNameSet()
Check whether name has been set.
Definition Attribute.hpp:35
modelgbp::inv::Attribute & unsetName()
Unset name in the currently-active mutator.
Definition Attribute.hpp:81
static void unregisterListener(opflex::ofcore::OFFramework &framework, opflex::modb::ObjectListener *listener)
Unregister a listener from updates to this class.
Definition Attribute.hpp:373
static boost::optional< OF_SHARED_PTR< modelgbp::inv::Attribute > > resolve(const opflex::modb::URI &uri)
Retrieve an instance of Attribute from the managed object store using the default framework instance.
Definition Attribute.hpp:172
SOME COPYRIGHT.
Definition OpcodeEnumT.hpp:12