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 = 123;
44 boost::optional<const std::string&>
getIp()
100 boost::optional<const opflex::modb::MAC&>
getMac()
195 getTLMutator().modify(
getClassId(),
getURI())->unset(4030466ul, opflex::modb::PropertyInfo::STRING, opflex::modb::PropertyInfo::SCALAR);
210 static boost::optional<OF_SHARED_PTR<modelgbp::inv::Ip> >
resolve(
212 const opflex::modb::URI&
uri)
228 static boost::optional<OF_SHARED_PTR<modelgbp::inv::Ip> >
resolve(
229 const opflex::modb::URI&
uri)
231 return opflex::modb::mointernal::MO::resolve<modelgbp::inv::Ip>(opflex::ofcore::OFFramework::defaultInstance(),
CLASS_ID,
uri);
256 static boost::optional<OF_SHARED_PTR<modelgbp::inv::Ip> >
resolve(
287 static boost::optional<OF_SHARED_PTR<modelgbp::inv::Ip> >
resolve(
320 const opflex::modb::URI&
uri)
337 remove(opflex::ofcore::OFFramework::defaultInstance(),
uri);
412 opflex::modb::ObjectListener*
listener)
414 opflex::modb::mointernal
430 opflex::modb::ObjectListener*
listener)
443 opflex::modb::ObjectListener*
listener)
445 opflex::modb::mointernal
456 opflex::modb::ObjectListener*
listener)
467 const opflex::modb::URI&
uri,
const std::string & getIp(const std::string &defaultValue)
Get the value of ip if set, otherwise the value of default passed in.
Definition Ip.hpp:56
void remove()
Remove this instance using the currently-active mutator.
Definition Ip.hpp:304
modelgbp::inv::Ip & setIp(const std::string &newValue)
Set ip to the specified value in the currently-active mutator.
Definition Ip.hpp:69
static void remove(const std::string &invLocalEndpointInventoryName, const std::string &invLocalInventoryEpUuid, const std::string &invIpIp, const std::string &invIpType)
Remove the Ip object with the specified path elements from the managed object store using the default...
Definition Ip.hpp:390
static const opflex::modb::class_id_t CLASS_ID
The unique class ID for Ip.
Definition Ip.hpp:29
bool isIpSet()
Check whether ip has been set.
Definition Ip.hpp:35
bool isMacSet()
Check whether mac has been set.
Definition Ip.hpp:91
static boost::optional< OF_SHARED_PTR< modelgbp::inv::Ip > > resolve(opflex::ofcore::OFFramework &framework, const std::string &invLocalEndpointInventoryName, const std::string &invLocalInventoryEpUuid, const std::string &invIpIp, const std::string &invIpType)
Retrieve an instance of Ip from the managed object store by constructing its URI from the path elemen...
Definition Ip.hpp:256
boost::optional< const std::string & > getIp()
Get the value of ip if it has been set.
Definition Ip.hpp:44
static void remove(opflex::ofcore::OFFramework &framework, const opflex::modb::URI &uri)
Remove the Ip object with the specified URI using the currently-active mutator.
Definition Ip.hpp:319
bool isTypeSet()
Check whether type has been set.
Definition Ip.hpp:147
boost::optional< const opflex::modb::MAC & > getMac()
Get the value of mac if it has been set.
Definition Ip.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 Ip.hpp:429
static boost::optional< OF_SHARED_PTR< modelgbp::inv::Ip > > resolve(const opflex::modb::URI &uri)
Retrieve an instance of Ip from the managed object store using the default framework instance.
Definition Ip.hpp:228
static boost::optional< OF_SHARED_PTR< modelgbp::inv::Ip > > resolve(opflex::ofcore::OFFramework &framework, const opflex::modb::URI &uri)
Retrieve an instance of Ip from the managed object store.
Definition Ip.hpp:210
modelgbp::inv::Ip & unsetIp()
Unset ip in the currently-active mutator.
Definition Ip.hpp:81
modelgbp::inv::Ip & setMac(const opflex::modb::MAC &newValue)
Set mac to the specified value in the currently-active mutator.
Definition Ip.hpp:125
static boost::optional< OF_SHARED_PTR< modelgbp::inv::Ip > > resolve(const std::string &invLocalEndpointInventoryName, const std::string &invLocalInventoryEpUuid, const std::string &invIpIp, const std::string &invIpType)
Retrieve an instance of Ip from the default managed object store by constructing its URI from the pat...
Definition Ip.hpp:287
modelgbp::inv::Ip & unsetMac()
Unset mac in the currently-active mutator.
Definition Ip.hpp:137
static void remove(opflex::ofcore::OFFramework &framework, const std::string &invLocalEndpointInventoryName, const std::string &invLocalInventoryEpUuid, const std::string &invIpIp, const std::string &invIpType)
Remove the Ip object with the specified path elements from the managed object store.
Definition Ip.hpp:360
Ip(opflex::ofcore::OFFramework &framework, const opflex::modb::URI &uri, const OF_SHARED_PTR< const opflex::modb::mointernal::ObjectInstance > &oi)
Construct an instance of Ip.
Definition Ip.hpp:465
static void unregisterListener(opflex::ofcore::OFFramework &framework, opflex::modb::ObjectListener *listener)
Unregister a listener from updates to this class.
Definition Ip.hpp:441
static void unregisterListener(opflex::modb::ObjectListener *listener)
Unregister a listener from updates to this class from the default framework instance.
Definition Ip.hpp:455
modelgbp::inv::Ip & setType(const std::string &newValue)
Set type to the specified value in the currently-active mutator.
Definition Ip.hpp:181
modelgbp::inv::Ip & unsetType()
Unset type in the currently-active mutator.
Definition Ip.hpp:193
boost::optional< const std::string & > getType()
Get the value of type if it has been set.
Definition Ip.hpp:156
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 Ip.hpp:410
const std::string & getType(const std::string &defaultValue)
Get the value of type if set, otherwise the value of default passed in.
Definition Ip.hpp:168
const opflex::modb::MAC & getMac(const opflex::modb::MAC &defaultValue)
Get the value of mac if set, otherwise the value of default passed in.
Definition Ip.hpp:112
static void remove(const opflex::modb::URI &uri)
Remove the Ip object with the specified URI using the currently-active mutator and the default framew...
Definition Ip.hpp:335
SOME COPYRIGHT.
Definition OpcodeEnumT.hpp:12