11#ifndef GI_DCI_DOMAIN_HPP
12#define GI_DCI_DOMAIN_HPP
14#include <boost/optional.hpp>
15#include "opflex/modb/URIBuilder.h"
16#include "opflex/modb/mo-internal/MO.h"
20#include "modelgbp/dci/DomainToGbpRoutingDomainRSrc.hpp"
26 :
public opflex::modb::mointernal::MO
33 static const opflex::modb::class_id_t
CLASS_ID = 87;
48 boost::optional<const std::string&>
getName()
102 static boost::optional<OF_SHARED_PTR<modelgbp::dci::Domain> >
resolve(
104 const opflex::modb::URI&
uri)
120 static boost::optional<OF_SHARED_PTR<modelgbp::dci::Domain> >
resolve(
121 const opflex::modb::URI&
uri)
123 return opflex::modb::mointernal::MO::resolve<modelgbp::dci::Domain>(opflex::ofcore::OFFramework::defaultInstance(),
CLASS_ID,
uri);
142 static boost::optional<OF_SHARED_PTR<modelgbp::dci::Domain> >
resolve(
164 static boost::optional<OF_SHARED_PTR<modelgbp::dci::Domain> >
resolve(
232 opflex::modb::mointernal::MO::resolveChildren<modelgbp::dci::DomainToGbpRoutingDomainRSrc>(
260 const opflex::modb::URI&
uri)
277 remove(opflex::ofcore::OFFramework::defaultInstance(),
uri);
334 opflex::modb::ObjectListener*
listener)
336 opflex::modb::mointernal
352 opflex::modb::ObjectListener*
listener)
365 opflex::modb::ObjectListener*
listener)
367 opflex::modb::mointernal
378 opflex::modb::ObjectListener*
listener)
389 const opflex::modb::URI&
uri,
static boost::optional< OF_SHARED_PTR< modelgbp::dci::DomainToGbpRoutingDomainRSrc > > resolve(opflex::ofcore::OFFramework &framework, const opflex::modb::URI &uri)
Retrieve an instance of DomainToGbpRoutingDomainRSrc from the managed object store.
Definition DomainToGbpRoutingDomainRSrc.hpp:257
static boost::optional< OF_SHARED_PTR< modelgbp::dci::Domain > > resolve(opflex::ofcore::OFFramework &framework, const opflex::modb::URI &uri)
Retrieve an instance of Domain from the managed object store.
Definition Domain.hpp:102
void remove()
Remove this instance using the currently-active mutator.
Definition Domain.hpp:244
Domain(opflex::ofcore::OFFramework &framework, const opflex::modb::URI &uri, const OF_SHARED_PTR< const opflex::modb::mointernal::ObjectInstance > &oi)
Construct an instance of Domain.
Definition Domain.hpp:387
modelgbp::dci::Domain & unsetName()
Unset name in the currently-active mutator.
Definition Domain.hpp:85
static boost::optional< OF_SHARED_PTR< modelgbp::dci::Domain > > resolve(const std::string &dciDomainName)
Retrieve an instance of Domain from the default managed object store by constructing its URI from the...
Definition Domain.hpp:164
static void remove(opflex::ofcore::OFFramework &framework, const opflex::modb::URI &uri)
Remove the Domain object with the specified URI using the currently-active mutator.
Definition Domain.hpp:259
const std::string & getName(const std::string &defaultValue)
Get the value of name if set, otherwise the value of default passed in.
Definition Domain.hpp:60
boost::optional< OF_SHARED_PTR< modelgbp::dci::DomainToGbpRoutingDomainRSrc > > resolveDciDomainToGbpRoutingDomainRSrc(const std::string &dciDomainToGbpRoutingDomainRSrcTargetName)
Retrieve the child object with the specified naming properties.
Definition Domain.hpp:183
OF_SHARED_PTR< modelgbp::dci::DomainToGbpRoutingDomainRSrc > addDciDomainToGbpRoutingDomainRSrc(const std::string &dciDomainToGbpRoutingDomainRSrcTargetName)
Create a new child object with the specified naming properties and make it a child of this object in ...
Definition Domain.hpp:204
modelgbp::dci::Domain & setName(const std::string &newValue)
Set name to the specified value in the currently-active mutator.
Definition Domain.hpp:73
static void remove(const opflex::modb::URI &uri)
Remove the Domain object with the specified URI using the currently-active mutator and the default fr...
Definition Domain.hpp:275
void resolveDciDomainToGbpRoutingDomainRSrc(std::vector< OF_SHARED_PTR< modelgbp::dci::DomainToGbpRoutingDomainRSrc > > &out)
Resolve and retrieve all of the immediate children of type modelgbp::dci::DomainToGbpRoutingDomainRSr...
Definition Domain.hpp:230
static void unregisterListener(opflex::modb::ObjectListener *listener)
Unregister a listener from updates to this class from the default framework instance.
Definition Domain.hpp:377
static void unregisterListener(opflex::ofcore::OFFramework &framework, opflex::modb::ObjectListener *listener)
Unregister a listener from updates to this class.
Definition Domain.hpp:363
static boost::optional< OF_SHARED_PTR< modelgbp::dci::Domain > > resolve(const opflex::modb::URI &uri)
Retrieve an instance of Domain from the managed object store using the default framework instance.
Definition Domain.hpp:120
bool isNameSet()
Check whether name has been set.
Definition Domain.hpp:39
static boost::optional< OF_SHARED_PTR< modelgbp::dci::Domain > > resolve(opflex::ofcore::OFFramework &framework, const std::string &dciDomainName)
Retrieve an instance of Domain from the managed object store by constructing its URI from the path el...
Definition Domain.hpp:142
static void remove(const std::string &dciDomainName)
Remove the Domain object with the specified path elements from the managed object store using the def...
Definition Domain.hpp:315
boost::optional< const std::string & > getName()
Get the value of name if it has been set.
Definition Domain.hpp:48
static const opflex::modb::class_id_t CLASS_ID
The unique class ID for Domain.
Definition Domain.hpp:33
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 Domain.hpp:332
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 Domain.hpp:351
static void remove(opflex::ofcore::OFFramework &framework, const std::string &dciDomainName)
Remove the Domain object with the specified path elements from the managed object store.
Definition Domain.hpp:294
SOME COPYRIGHT.
Definition OpcodeEnumT.hpp:12