11#ifndef GI_DCI_UNIVERSE_HPP
12#define GI_DCI_UNIVERSE_HPP
14#include <boost/optional.hpp>
15#include "opflex/modb/URIBuilder.h"
16#include "opflex/modb/mo-internal/MO.h"
20#include "modelgbp/dci/EpFromUnivRTgt.hpp"
24#include "modelgbp/dci/Domain.hpp"
30 :
public opflex::modb::mointernal::MO
37 static const opflex::modb::class_id_t
CLASS_ID = 81;
52 boost::optional<const std::string&>
getName()
106 static boost::optional<OF_SHARED_PTR<modelgbp::dci::Universe> >
resolve(
108 const opflex::modb::URI&
uri)
110 return opflex::modb::mointernal::MO::resolve<modelgbp::dci::Universe>(
framework,
CLASS_ID,
uri);
124 static boost::optional<OF_SHARED_PTR<modelgbp::dci::Universe> >
resolve(
125 const opflex::modb::URI&
uri)
127 return opflex::modb::mointernal::MO::resolve<modelgbp::dci::Universe>(opflex::ofcore::OFFramework::defaultInstance(),
CLASS_ID,
uri);
144 static boost::optional<OF_SHARED_PTR<modelgbp::dci::Universe> >
resolve(
163 static boost::optional<OF_SHARED_PTR<modelgbp::dci::Universe> >
resolve(
166 return resolve(opflex::ofcore::OFFramework::defaultInstance());
260 opflex::modb::mointernal::MO::resolveChildren<modelgbp::dci::Domain>(
288 const opflex::modb::URI&
uri)
305 remove(opflex::ofcore::OFFramework::defaultInstance(),
uri);
321 opflex::modb::ObjectListener*
listener)
323 opflex::modb::mointernal
339 opflex::modb::ObjectListener*
listener)
352 opflex::modb::ObjectListener*
listener)
354 opflex::modb::mointernal
365 opflex::modb::ObjectListener*
listener)
376 const opflex::modb::URI&
uri,
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
static boost::optional< OF_SHARED_PTR< modelgbp::dci::EpFromUnivRTgt > > resolve()
Retrieve an instance of EpFromUnivRTgt from the default managed object store by constructing its URI ...
Definition EpFromUnivRTgt.hpp:267
Definition dci/Universe.hpp:31
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 dci/Universe.hpp:338
Universe(opflex::ofcore::OFFramework &framework, const opflex::modb::URI &uri, const OF_SHARED_PTR< const opflex::modb::mointernal::ObjectInstance > &oi)
Construct an instance of Universe.
Definition dci/Universe.hpp:374
boost::optional< OF_SHARED_PTR< modelgbp::dci::Domain > > resolveDciDomain(const std::string &dciDomainName)
Retrieve the child object with the specified naming properties.
Definition dci/Universe.hpp:215
static void unregisterListener(opflex::ofcore::OFFramework &framework, opflex::modb::ObjectListener *listener)
Unregister a listener from updates to this class.
Definition dci/Universe.hpp:350
boost::optional< OF_SHARED_PTR< modelgbp::dci::EpFromUnivRTgt > > resolveDciEpFromUnivRTgt()
Retrieve the child object with the specified naming properties.
Definition dci/Universe.hpp:178
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 dci/Universe.hpp:319
static boost::optional< OF_SHARED_PTR< modelgbp::dci::Universe > > resolve()
Retrieve an instance of Universe from the default managed object store by constructing its URI from t...
Definition dci/Universe.hpp:163
static void remove(const opflex::modb::URI &uri)
Remove the Universe object with the specified URI using the currently-active mutator and the default ...
Definition dci/Universe.hpp:303
void resolveDciDomain(std::vector< OF_SHARED_PTR< modelgbp::dci::Domain > > &out)
Resolve and retrieve all of the immediate children of type modelgbp::dci::Domain.
Definition dci/Universe.hpp:258
static boost::optional< OF_SHARED_PTR< modelgbp::dci::Universe > > resolve(opflex::ofcore::OFFramework &framework)
Retrieve an instance of Universe from the managed object store by constructing its URI from the path ...
Definition dci/Universe.hpp:144
boost::optional< const std::string & > getName()
Get the value of name if it has been set.
Definition dci/Universe.hpp:52
modelgbp::dci::Universe & unsetName()
Unset name in the currently-active mutator.
Definition dci/Universe.hpp:89
OF_SHARED_PTR< modelgbp::dci::EpFromUnivRTgt > addDciEpFromUnivRTgt()
Create a new child object with the specified naming properties and make it a child of this object in ...
Definition dci/Universe.hpp:194
modelgbp::dci::Universe & setName(const std::string &newValue)
Set name to the specified value in the currently-active mutator.
Definition dci/Universe.hpp:77
OF_SHARED_PTR< modelgbp::dci::Domain > addDciDomain(const std::string &dciDomainName)
Create a new child object with the specified naming properties and make it a child of this object in ...
Definition dci/Universe.hpp:233
void remove()
Remove this instance using the currently-active mutator.
Definition dci/Universe.hpp:272
static void unregisterListener(opflex::modb::ObjectListener *listener)
Unregister a listener from updates to this class from the default framework instance.
Definition dci/Universe.hpp:364
bool isNameSet()
Check whether name has been set.
Definition dci/Universe.hpp:43
static boost::optional< OF_SHARED_PTR< modelgbp::dci::Universe > > resolve(opflex::ofcore::OFFramework &framework, const opflex::modb::URI &uri)
Retrieve an instance of Universe from the managed object store.
Definition dci/Universe.hpp:106
static void remove(opflex::ofcore::OFFramework &framework, const opflex::modb::URI &uri)
Remove the Universe object with the specified URI using the currently-active mutator.
Definition dci/Universe.hpp:287
static boost::optional< OF_SHARED_PTR< modelgbp::dci::Universe > > resolve(const opflex::modb::URI &uri)
Retrieve an instance of Universe from the managed object store using the default framework instance.
Definition dci/Universe.hpp:124
const std::string & getName(const std::string &defaultValue)
Get the value of name if set, otherwise the value of default passed in.
Definition dci/Universe.hpp:64
static const opflex::modb::class_id_t CLASS_ID
The unique class ID for Universe.
Definition dci/Universe.hpp:37
SOME COPYRIGHT.
Definition OpcodeEnumT.hpp:12