11#ifndef GI_INV_ROUTER_HPP
12#define GI_INV_ROUTER_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 = 132;
44 boost::optional<const std::string&>
getName()
98 static boost::optional<OF_SHARED_PTR<modelgbp::inv::Router> >
resolve(
100 const opflex::modb::URI&
uri)
116 static boost::optional<OF_SHARED_PTR<modelgbp::inv::Router> >
resolve(
117 const opflex::modb::URI&
uri)
119 return opflex::modb::mointernal::MO::resolve<modelgbp::inv::Router>(opflex::ofcore::OFFramework::defaultInstance(),
CLASS_ID,
uri);
142 static boost::optional<OF_SHARED_PTR<modelgbp::inv::Router> >
resolve(
170 static boost::optional<OF_SHARED_PTR<modelgbp::inv::Router> >
resolve(
202 const opflex::modb::URI&
uri)
219 remove(opflex::ofcore::OFFramework::defaultInstance(),
uri);
288 opflex::modb::ObjectListener*
listener)
290 opflex::modb::mointernal
306 opflex::modb::ObjectListener*
listener)
319 opflex::modb::ObjectListener*
listener)
321 opflex::modb::mointernal
332 opflex::modb::ObjectListener*
listener)
343 const opflex::modb::URI&
uri,
static boost::optional< OF_SHARED_PTR< modelgbp::inv::Router > > resolve(opflex::ofcore::OFFramework &framework, const opflex::modb::URI &uri)
Retrieve an instance of Router from the managed object store.
Definition Router.hpp:98
void remove()
Remove this instance using the currently-active mutator.
Definition Router.hpp:186
static const opflex::modb::class_id_t CLASS_ID
The unique class ID for Router.
Definition Router.hpp:29
static void remove(const opflex::modb::URI &uri)
Remove the Router object with the specified URI using the currently-active mutator and the default fr...
Definition Router.hpp:217
static boost::optional< OF_SHARED_PTR< modelgbp::inv::Router > > resolve(const opflex::modb::URI &uri)
Retrieve an instance of Router from the managed object store using the default framework instance.
Definition Router.hpp:116
modelgbp::inv::Router & setName(const std::string &newValue)
Set name to the specified value in the currently-active mutator.
Definition Router.hpp:69
static void unregisterListener(opflex::ofcore::OFFramework &framework, opflex::modb::ObjectListener *listener)
Unregister a listener from updates to this class.
Definition Router.hpp:317
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 Router.hpp:286
static void remove(const std::string &invLocalEndpointInventoryName, const std::string &invLocalInventoryEpUuid, const std::string &invRouterName)
Remove the Router object with the specified path elements from the managed object store using the def...
Definition Router.hpp:267
bool isNameSet()
Check whether name has been set.
Definition Router.hpp:35
boost::optional< const std::string & > getName()
Get the value of name if it has been set.
Definition Router.hpp:44
static void unregisterListener(opflex::modb::ObjectListener *listener)
Unregister a listener from updates to this class from the default framework instance.
Definition Router.hpp:331
static boost::optional< OF_SHARED_PTR< modelgbp::inv::Router > > resolve(opflex::ofcore::OFFramework &framework, const std::string &invLocalEndpointInventoryName, const std::string &invLocalInventoryEpUuid, const std::string &invRouterName)
Retrieve an instance of Router from the managed object store by constructing its URI from the path el...
Definition Router.hpp:142
modelgbp::inv::Router & unsetName()
Unset name in the currently-active mutator.
Definition Router.hpp:81
static void remove(opflex::ofcore::OFFramework &framework, const std::string &invLocalEndpointInventoryName, const std::string &invLocalInventoryEpUuid, const std::string &invRouterName)
Remove the Router object with the specified path elements from the managed object store.
Definition Router.hpp:240
const std::string & getName(const std::string &defaultValue)
Get the value of name if set, otherwise the value of default passed in.
Definition Router.hpp:56
static boost::optional< OF_SHARED_PTR< modelgbp::inv::Router > > resolve(const std::string &invLocalEndpointInventoryName, const std::string &invLocalInventoryEpUuid, const std::string &invRouterName)
Retrieve an instance of Router from the default managed object store by constructing its URI from the...
Definition Router.hpp:170
static void remove(opflex::ofcore::OFFramework &framework, const opflex::modb::URI &uri)
Remove the Router object with the specified URI using the currently-active mutator.
Definition Router.hpp:201
Router(opflex::ofcore::OFFramework &framework, const opflex::modb::URI &uri, const OF_SHARED_PTR< const opflex::modb::mointernal::ObjectInstance > &oi)
Construct an instance of Router.
Definition Router.hpp:341
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 Router.hpp:305
SOME COPYRIGHT.
Definition OpcodeEnumT.hpp:12