modelgbp Generated OpFlex Model 1.7.0
policy/Universe.hpp
1
10#pragma once
11#ifndef GI_POLICY_UNIVERSE_HPP
12#define GI_POLICY_UNIVERSE_HPP
13
14#include <boost/optional.hpp>
15#include "opflex/modb/URIBuilder.h"
16#include "opflex/modb/mo-internal/MO.h"
17/*
18 * contains: item:mclass(gbpe/EpgMapping)
19 */
20#include "modelgbp/gbpe/EpgMapping.hpp"
21/*
22 * contains: item:mclass(gbpe/IndirectEpgMapping)
23 */
24#include "modelgbp/gbpe/IndirectEpgMapping.hpp"
25/*
26 * contains: item:mclass(gbpe/MappingRuleSet)
27 */
28#include "modelgbp/gbpe/MappingRuleSet.hpp"
29/*
30 * contains: item:mclass(platform/Config)
31 */
32#include "modelgbp/platform/Config.hpp"
33/*
34 * contains: item:mclass(policy/Space)
35 */
36#include "modelgbp/policy/Space.hpp"
37
38namespace modelgbp {
39namespace policy {
40
42 : public opflex::modb::mointernal::MO
43{
44public:
45
49 static const opflex::modb::class_id_t CLASS_ID = 223;
50
62 static boost::optional<OF_SHARED_PTR<modelgbp::policy::Universe> > resolve(
63 opflex::ofcore::OFFramework& framework,
64 const opflex::modb::URI& uri)
65 {
66 return opflex::modb::mointernal::MO::resolve<modelgbp::policy::Universe>(framework, CLASS_ID, uri);
67 }
68
80 static boost::optional<OF_SHARED_PTR<modelgbp::policy::Universe> > resolve(
81 const opflex::modb::URI& uri)
82 {
83 return opflex::modb::mointernal::MO::resolve<modelgbp::policy::Universe>(opflex::ofcore::OFFramework::defaultInstance(), CLASS_ID, uri);
84 }
85
100 static boost::optional<OF_SHARED_PTR<modelgbp::policy::Universe> > resolve(
101 opflex::ofcore::OFFramework& framework)
102 {
103 return resolve(framework,opflex::modb::URIBuilder().addElement("PolicyUniverse").build());
104 }
105
119 static boost::optional<OF_SHARED_PTR<modelgbp::policy::Universe> > resolve(
120 )
121 {
122 return resolve(opflex::ofcore::OFFramework::defaultInstance());
123 }
124
136 boost::optional<OF_SHARED_PTR<modelgbp::gbpe::EpgMapping> > resolveGbpeEpgMapping(
137 const std::string& gbpeEpgMappingName)
138 {
139 return modelgbp::gbpe::EpgMapping::resolve(getFramework(), opflex::modb::URIBuilder(getURI()).addElement("GbpeEpgMapping").addElement(gbpeEpgMappingName).build());
140 }
141
154 OF_SHARED_PTR<modelgbp::gbpe::EpgMapping> addGbpeEpgMapping(
155 const std::string& gbpeEpgMappingName)
156 {
157 OF_SHARED_PTR<modelgbp::gbpe::EpgMapping> result = addChild<modelgbp::gbpe::EpgMapping>(
158 CLASS_ID, getURI(), 2154790922ul, 10,
159 opflex::modb::URIBuilder(getURI()).addElement("GbpeEpgMapping").addElement(gbpeEpgMappingName).build()
160 );
161 result->setName(gbpeEpgMappingName);
162 return result;
163 }
164
179 void resolveGbpeEpgMapping(/* out */ std::vector<OF_SHARED_PTR<modelgbp::gbpe::EpgMapping> >& out)
180 {
181 opflex::modb::mointernal::MO::resolveChildren<modelgbp::gbpe::EpgMapping>(
182 getFramework(), CLASS_ID, getURI(), 2154790922ul, 10, out);
183 }
184
196 boost::optional<OF_SHARED_PTR<modelgbp::gbpe::IndirectEpgMapping> > resolveGbpeIndirectEpgMapping(
197 const std::string& gbpeIndirectEpgMappingName)
198 {
199 return modelgbp::gbpe::IndirectEpgMapping::resolve(getFramework(), opflex::modb::URIBuilder(getURI()).addElement("GbpeIndirectEpgMapping").addElement(gbpeIndirectEpgMappingName).build());
200 }
201
214 OF_SHARED_PTR<modelgbp::gbpe::IndirectEpgMapping> addGbpeIndirectEpgMapping(
215 const std::string& gbpeIndirectEpgMappingName)
216 {
217 OF_SHARED_PTR<modelgbp::gbpe::IndirectEpgMapping> result = addChild<modelgbp::gbpe::IndirectEpgMapping>(
218 CLASS_ID, getURI(), 2154790926ul, 14,
219 opflex::modb::URIBuilder(getURI()).addElement("GbpeIndirectEpgMapping").addElement(gbpeIndirectEpgMappingName).build()
220 );
221 result->setName(gbpeIndirectEpgMappingName);
222 return result;
223 }
224
239 void resolveGbpeIndirectEpgMapping(/* out */ std::vector<OF_SHARED_PTR<modelgbp::gbpe::IndirectEpgMapping> >& out)
240 {
241 opflex::modb::mointernal::MO::resolveChildren<modelgbp::gbpe::IndirectEpgMapping>(
242 getFramework(), CLASS_ID, getURI(), 2154790926ul, 14, out);
243 }
244
256 boost::optional<OF_SHARED_PTR<modelgbp::gbpe::MappingRuleSet> > resolveGbpeMappingRuleSet(
257 const std::string& gbpeMappingRuleSetName)
258 {
259 return modelgbp::gbpe::MappingRuleSet::resolve(getFramework(), opflex::modb::URIBuilder(getURI()).addElement("GbpeMappingRuleSet").addElement(gbpeMappingRuleSetName).build());
260 }
261
274 OF_SHARED_PTR<modelgbp::gbpe::MappingRuleSet> addGbpeMappingRuleSet(
275 const std::string& gbpeMappingRuleSetName)
276 {
277 OF_SHARED_PTR<modelgbp::gbpe::MappingRuleSet> result = addChild<modelgbp::gbpe::MappingRuleSet>(
278 CLASS_ID, getURI(), 2154790940ul, 28,
279 opflex::modb::URIBuilder(getURI()).addElement("GbpeMappingRuleSet").addElement(gbpeMappingRuleSetName).build()
280 );
281 result->setName(gbpeMappingRuleSetName);
282 return result;
283 }
284
299 void resolveGbpeMappingRuleSet(/* out */ std::vector<OF_SHARED_PTR<modelgbp::gbpe::MappingRuleSet> >& out)
300 {
301 opflex::modb::mointernal::MO::resolveChildren<modelgbp::gbpe::MappingRuleSet>(
302 getFramework(), CLASS_ID, getURI(), 2154790940ul, 28, out);
303 }
304
316 boost::optional<OF_SHARED_PTR<modelgbp::platform::Config> > resolvePlatformConfig(
317 const std::string& platformConfigName)
318 {
319 return modelgbp::platform::Config::resolve(getFramework(), opflex::modb::URIBuilder(getURI()).addElement("PlatformConfig").addElement(platformConfigName).build());
320 }
321
334 OF_SHARED_PTR<modelgbp::platform::Config> addPlatformConfig(
335 const std::string& platformConfigName)
336 {
337 OF_SHARED_PTR<modelgbp::platform::Config> result = addChild<modelgbp::platform::Config>(
338 CLASS_ID, getURI(), 2154790963ul, 51,
339 opflex::modb::URIBuilder(getURI()).addElement("PlatformConfig").addElement(platformConfigName).build()
340 );
341 result->setName(platformConfigName);
342 return result;
343 }
344
359 void resolvePlatformConfig(/* out */ std::vector<OF_SHARED_PTR<modelgbp::platform::Config> >& out)
360 {
361 opflex::modb::mointernal::MO::resolveChildren<modelgbp::platform::Config>(
362 getFramework(), CLASS_ID, getURI(), 2154790963ul, 51, out);
363 }
364
376 boost::optional<OF_SHARED_PTR<modelgbp::policy::Space> > resolvePolicySpace(
377 const std::string& policySpaceName)
378 {
379 return modelgbp::policy::Space::resolve(getFramework(), opflex::modb::URIBuilder(getURI()).addElement("PolicySpace").addElement(policySpaceName).build());
380 }
381
394 OF_SHARED_PTR<modelgbp::policy::Space> addPolicySpace(
395 const std::string& policySpaceName)
396 {
397 OF_SHARED_PTR<modelgbp::policy::Space> result = addChild<modelgbp::policy::Space>(
398 CLASS_ID, getURI(), 2154791136ul, 224,
399 opflex::modb::URIBuilder(getURI()).addElement("PolicySpace").addElement(policySpaceName).build()
400 );
401 result->setName(policySpaceName);
402 return result;
403 }
404
419 void resolvePolicySpace(/* out */ std::vector<OF_SHARED_PTR<modelgbp::policy::Space> >& out)
420 {
421 opflex::modb::mointernal::MO::resolveChildren<modelgbp::policy::Space>(
422 getFramework(), CLASS_ID, getURI(), 2154791136ul, 224, out);
423 }
424
433 void remove()
434 {
435 getTLMutator().remove(CLASS_ID, getURI());
436 }
437
448 static void remove(opflex::ofcore::OFFramework& framework,
449 const opflex::modb::URI& uri)
450 {
451 MO::remove(framework, CLASS_ID, uri);
452 }
453
464 static void remove(const opflex::modb::URI& uri)
465 {
466 remove(opflex::ofcore::OFFramework::defaultInstance(), uri);
467 }
468
480 static void registerListener(
481 opflex::ofcore::OFFramework& framework,
482 opflex::modb::ObjectListener* listener)
483 {
484 opflex::modb::mointernal
485 ::MO::registerListener(framework, listener, CLASS_ID);
486 }
487
499 static void registerListener(
500 opflex::modb::ObjectListener* listener)
501 {
502 registerListener(opflex::ofcore::OFFramework::defaultInstance(), listener);
503 }
504
512 opflex::ofcore::OFFramework& framework,
513 opflex::modb::ObjectListener* listener)
514 {
515 opflex::modb::mointernal
516 ::MO::unregisterListener(framework, listener, CLASS_ID);
517 }
518
526 opflex::modb::ObjectListener* listener)
527 {
528 unregisterListener(opflex::ofcore::OFFramework::defaultInstance(), listener);
529 }
530
536 opflex::ofcore::OFFramework& framework,
537 const opflex::modb::URI& uri,
538 const OF_SHARED_PTR<const opflex::modb::mointernal::ObjectInstance>& oi)
539 : MO(framework, CLASS_ID, uri, oi) { }
540}; // class Universe
541
542} // namespace policy
543} // namespace modelgbp
544#endif // GI_POLICY_UNIVERSE_HPP
static boost::optional< OF_SHARED_PTR< modelgbp::gbpe::EpgMapping > > resolve(opflex::ofcore::OFFramework &framework, const opflex::modb::URI &uri)
Retrieve an instance of EpgMapping from the managed object store.
Definition EpgMapping.hpp:110
static boost::optional< OF_SHARED_PTR< modelgbp::gbpe::IndirectEpgMapping > > resolve(opflex::ofcore::OFFramework &framework, const opflex::modb::URI &uri)
Retrieve an instance of IndirectEpgMapping from the managed object store.
Definition IndirectEpgMapping.hpp:110
static boost::optional< OF_SHARED_PTR< modelgbp::gbpe::MappingRuleSet > > resolve(opflex::ofcore::OFFramework &framework, const opflex::modb::URI &uri)
Retrieve an instance of MappingRuleSet from the managed object store.
Definition MappingRuleSet.hpp:106
static boost::optional< OF_SHARED_PTR< modelgbp::platform::Config > > resolve(opflex::ofcore::OFFramework &framework, const opflex::modb::URI &uri)
Retrieve an instance of Config from the managed object store.
Definition platform/Config.hpp:310
static boost::optional< OF_SHARED_PTR< modelgbp::policy::Space > > resolve(opflex::ofcore::OFFramework &framework, const opflex::modb::URI &uri)
Retrieve an instance of Space from the managed object store.
Definition Space.hpp:134
boost::optional< OF_SHARED_PTR< modelgbp::gbpe::MappingRuleSet > > resolveGbpeMappingRuleSet(const std::string &gbpeMappingRuleSetName)
Retrieve the child object with the specified naming properties.
Definition policy/Universe.hpp:256
boost::optional< OF_SHARED_PTR< modelgbp::policy::Space > > resolvePolicySpace(const std::string &policySpaceName)
Retrieve the child object with the specified naming properties.
Definition policy/Universe.hpp:376
static void unregisterListener(opflex::ofcore::OFFramework &framework, opflex::modb::ObjectListener *listener)
Unregister a listener from updates to this class.
Definition policy/Universe.hpp:511
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 policy/Universe.hpp:535
void resolveGbpeMappingRuleSet(std::vector< OF_SHARED_PTR< modelgbp::gbpe::MappingRuleSet > > &out)
Resolve and retrieve all of the immediate children of type modelgbp::gbpe::MappingRuleSet.
Definition policy/Universe.hpp:299
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 policy/Universe.hpp:499
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 policy/Universe.hpp:480
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 policy/Universe.hpp:464
static boost::optional< OF_SHARED_PTR< modelgbp::policy::Universe > > resolve(opflex::ofcore::OFFramework &framework, const opflex::modb::URI &uri)
Retrieve an instance of Universe from the managed object store.
Definition policy/Universe.hpp:62
void resolvePolicySpace(std::vector< OF_SHARED_PTR< modelgbp::policy::Space > > &out)
Resolve and retrieve all of the immediate children of type modelgbp::policy::Space.
Definition policy/Universe.hpp:419
OF_SHARED_PTR< modelgbp::gbpe::MappingRuleSet > addGbpeMappingRuleSet(const std::string &gbpeMappingRuleSetName)
Create a new child object with the specified naming properties and make it a child of this object in ...
Definition policy/Universe.hpp:274
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 policy/Universe.hpp:448
boost::optional< OF_SHARED_PTR< modelgbp::gbpe::EpgMapping > > resolveGbpeEpgMapping(const std::string &gbpeEpgMappingName)
Retrieve the child object with the specified naming properties.
Definition policy/Universe.hpp:136
OF_SHARED_PTR< modelgbp::gbpe::EpgMapping > addGbpeEpgMapping(const std::string &gbpeEpgMappingName)
Create a new child object with the specified naming properties and make it a child of this object in ...
Definition policy/Universe.hpp:154
boost::optional< OF_SHARED_PTR< modelgbp::platform::Config > > resolvePlatformConfig(const std::string &platformConfigName)
Retrieve the child object with the specified naming properties.
Definition policy/Universe.hpp:316
void resolveGbpeIndirectEpgMapping(std::vector< OF_SHARED_PTR< modelgbp::gbpe::IndirectEpgMapping > > &out)
Resolve and retrieve all of the immediate children of type modelgbp::gbpe::IndirectEpgMapping.
Definition policy/Universe.hpp:239
OF_SHARED_PTR< modelgbp::platform::Config > addPlatformConfig(const std::string &platformConfigName)
Create a new child object with the specified naming properties and make it a child of this object in ...
Definition policy/Universe.hpp:334
OF_SHARED_PTR< modelgbp::gbpe::IndirectEpgMapping > addGbpeIndirectEpgMapping(const std::string &gbpeIndirectEpgMappingName)
Create a new child object with the specified naming properties and make it a child of this object in ...
Definition policy/Universe.hpp:214
static void unregisterListener(opflex::modb::ObjectListener *listener)
Unregister a listener from updates to this class from the default framework instance.
Definition policy/Universe.hpp:525
void remove()
Remove this instance using the currently-active mutator.
Definition policy/Universe.hpp:433
boost::optional< OF_SHARED_PTR< modelgbp::gbpe::IndirectEpgMapping > > resolveGbpeIndirectEpgMapping(const std::string &gbpeIndirectEpgMappingName)
Retrieve the child object with the specified naming properties.
Definition policy/Universe.hpp:196
static boost::optional< OF_SHARED_PTR< modelgbp::policy::Universe > > resolve(const opflex::modb::URI &uri)
Retrieve an instance of Universe from the managed object store using the default framework instance.
Definition policy/Universe.hpp:80
OF_SHARED_PTR< modelgbp::policy::Space > addPolicySpace(const std::string &policySpaceName)
Create a new child object with the specified naming properties and make it a child of this object in ...
Definition policy/Universe.hpp:394
void resolvePlatformConfig(std::vector< OF_SHARED_PTR< modelgbp::platform::Config > > &out)
Resolve and retrieve all of the immediate children of type modelgbp::platform::Config.
Definition policy/Universe.hpp:359
static const opflex::modb::class_id_t CLASS_ID
The unique class ID for Universe.
Definition policy/Universe.hpp:49
static boost::optional< OF_SHARED_PTR< modelgbp::policy::Universe > > resolve()
Retrieve an instance of Universe from the default managed object store by constructing its URI from t...
Definition policy/Universe.hpp:119
void resolveGbpeEpgMapping(std::vector< OF_SHARED_PTR< modelgbp::gbpe::EpgMapping > > &out)
Resolve and retrieve all of the immediate children of type modelgbp::gbpe::EpgMapping.
Definition policy/Universe.hpp:179
static boost::optional< OF_SHARED_PTR< modelgbp::policy::Universe > > resolve(opflex::ofcore::OFFramework &framework)
Retrieve an instance of Universe from the managed object store by constructing its URI from the path ...
Definition policy/Universe.hpp:100
SOME COPYRIGHT.
Definition OpcodeEnumT.hpp:12