11#ifndef GI_GBPE_MAPPINGRULESET_HPP
12#define GI_GBPE_MAPPINGRULESET_HPP
14#include <boost/optional.hpp>
15#include "opflex/modb/URIBuilder.h"
16#include "opflex/modb/mo-internal/MO.h"
20#include "modelgbp/gbpe/IndirectEpgMappingFromMappingRuleSetRTgt.hpp"
24#include "modelgbp/gbpe/AttributeMappingRule.hpp"
30 :
public opflex::modb::mointernal::MO
37 static const opflex::modb::class_id_t
CLASS_ID = 28;
52 boost::optional<const std::string&>
getName()
106 static boost::optional<OF_SHARED_PTR<modelgbp::gbpe::MappingRuleSet> >
resolve(
108 const opflex::modb::URI&
uri)
110 return opflex::modb::mointernal::MO::resolve<modelgbp::gbpe::MappingRuleSet>(
framework,
CLASS_ID,
uri);
124 static boost::optional<OF_SHARED_PTR<modelgbp::gbpe::MappingRuleSet> >
resolve(
125 const opflex::modb::URI&
uri)
127 return opflex::modb::mointernal::MO::resolve<modelgbp::gbpe::MappingRuleSet>(opflex::ofcore::OFFramework::defaultInstance(),
CLASS_ID,
uri);
146 static boost::optional<OF_SHARED_PTR<modelgbp::gbpe::MappingRuleSet> >
resolve(
168 static boost::optional<OF_SHARED_PTR<modelgbp::gbpe::MappingRuleSet> >
resolve(
230 opflex::modb::mointernal::MO::resolveChildren<modelgbp::gbpe::IndirectEpgMappingFromMappingRuleSetRTgt>(
290 opflex::modb::mointernal::MO::resolveChildren<modelgbp::gbpe::AttributeMappingRule>(
318 const opflex::modb::URI&
uri)
335 remove(opflex::ofcore::OFFramework::defaultInstance(),
uri);
392 opflex::modb::ObjectListener*
listener)
394 opflex::modb::mointernal
410 opflex::modb::ObjectListener*
listener)
423 opflex::modb::ObjectListener*
listener)
425 opflex::modb::mointernal
436 opflex::modb::ObjectListener*
listener)
447 const opflex::modb::URI&
uri,
static boost::optional< OF_SHARED_PTR< modelgbp::gbpe::AttributeMappingRule > > resolve(opflex::ofcore::OFFramework &framework, const opflex::modb::URI &uri)
Retrieve an instance of AttributeMappingRule from the managed object store.
Definition AttributeMappingRule.hpp:382
static boost::optional< OF_SHARED_PTR< modelgbp::gbpe::IndirectEpgMappingFromMappingRuleSetRTgt > > resolve(opflex::ofcore::OFFramework &framework, const opflex::modb::URI &uri)
Retrieve an instance of IndirectEpgMappingFromMappingRuleSetRTgt from the managed object store.
Definition IndirectEpgMappingFromMappingRuleSetRTgt.hpp:210
Definition MappingRuleSet.hpp:31
const std::string & getName(const std::string &defaultValue)
Get the value of name if set, otherwise the value of default passed in.
Definition MappingRuleSet.hpp:64
static void remove(const opflex::modb::URI &uri)
Remove the MappingRuleSet object with the specified URI using the currently-active mutator and the de...
Definition MappingRuleSet.hpp:333
static boost::optional< OF_SHARED_PTR< modelgbp::gbpe::MappingRuleSet > > resolve(opflex::ofcore::OFFramework &framework, const std::string &gbpeMappingRuleSetName)
Retrieve an instance of MappingRuleSet from the managed object store by constructing its URI from the...
Definition MappingRuleSet.hpp:146
bool isNameSet()
Check whether name has been set.
Definition MappingRuleSet.hpp:43
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 MappingRuleSet.hpp:409
static boost::optional< OF_SHARED_PTR< modelgbp::gbpe::MappingRuleSet > > resolve(const std::string &gbpeMappingRuleSetName)
Retrieve an instance of MappingRuleSet from the default managed object store by constructing its URI ...
Definition MappingRuleSet.hpp:168
static void remove(const std::string &gbpeMappingRuleSetName)
Remove the MappingRuleSet object with the specified path elements from the managed object store using...
Definition MappingRuleSet.hpp:373
static boost::optional< OF_SHARED_PTR< modelgbp::gbpe::MappingRuleSet > > resolve(const opflex::modb::URI &uri)
Retrieve an instance of MappingRuleSet from the managed object store using the default framework inst...
Definition MappingRuleSet.hpp:124
MappingRuleSet(opflex::ofcore::OFFramework &framework, const opflex::modb::URI &uri, const OF_SHARED_PTR< const opflex::modb::mointernal::ObjectInstance > &oi)
Construct an instance of MappingRuleSet.
Definition MappingRuleSet.hpp:445
void resolveGbpeAttributeMappingRule(std::vector< OF_SHARED_PTR< modelgbp::gbpe::AttributeMappingRule > > &out)
Resolve and retrieve all of the immediate children of type modelgbp::gbpe::AttributeMappingRule.
Definition MappingRuleSet.hpp:288
boost::optional< const std::string & > getName()
Get the value of name if it has been set.
Definition MappingRuleSet.hpp:52
static void unregisterListener(opflex::ofcore::OFFramework &framework, opflex::modb::ObjectListener *listener)
Unregister a listener from updates to this class.
Definition MappingRuleSet.hpp:421
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 MappingRuleSet.hpp:390
static void remove(opflex::ofcore::OFFramework &framework, const opflex::modb::URI &uri)
Remove the MappingRuleSet object with the specified URI using the currently-active mutator.
Definition MappingRuleSet.hpp:317
modelgbp::gbpe::MappingRuleSet & unsetName()
Unset name in the currently-active mutator.
Definition MappingRuleSet.hpp:89
void resolveGbpeIndirectEpgMappingFromMappingRuleSetRTgt(std::vector< OF_SHARED_PTR< modelgbp::gbpe::IndirectEpgMappingFromMappingRuleSetRTgt > > &out)
Resolve and retrieve all of the immediate children of type modelgbp::gbpe::IndirectEpgMappingFromMapp...
Definition MappingRuleSet.hpp:228
static const opflex::modb::class_id_t CLASS_ID
The unique class ID for MappingRuleSet.
Definition MappingRuleSet.hpp:37
modelgbp::gbpe::MappingRuleSet & setName(const std::string &newValue)
Set name to the specified value in the currently-active mutator.
Definition MappingRuleSet.hpp:77
static void unregisterListener(opflex::modb::ObjectListener *listener)
Unregister a listener from updates to this class from the default framework instance.
Definition MappingRuleSet.hpp:435
void remove()
Remove this instance using the currently-active mutator.
Definition MappingRuleSet.hpp:302
static void remove(opflex::ofcore::OFFramework &framework, const std::string &gbpeMappingRuleSetName)
Remove the MappingRuleSet object with the specified path elements from the managed object store.
Definition MappingRuleSet.hpp:352
OF_SHARED_PTR< modelgbp::gbpe::AttributeMappingRule > addGbpeAttributeMappingRule(const std::string &gbpeAttributeMappingRuleName)
Create a new child object with the specified naming properties and make it a child of this object in ...
Definition MappingRuleSet.hpp:263
boost::optional< OF_SHARED_PTR< modelgbp::gbpe::AttributeMappingRule > > resolveGbpeAttributeMappingRule(const std::string &gbpeAttributeMappingRuleName)
Retrieve the child object with the specified naming properties.
Definition MappingRuleSet.hpp:245
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
OF_SHARED_PTR< modelgbp::gbpe::IndirectEpgMappingFromMappingRuleSetRTgt > addGbpeIndirectEpgMappingFromMappingRuleSetRTgt(const std::string &gbpeIndirectEpgMappingFromMappingRuleSetRTgtSource)
Create a new child object with the specified naming properties and make it a child of this object in ...
Definition MappingRuleSet.hpp:203
boost::optional< OF_SHARED_PTR< modelgbp::gbpe::IndirectEpgMappingFromMappingRuleSetRTgt > > resolveGbpeIndirectEpgMappingFromMappingRuleSetRTgt(const std::string &gbpeIndirectEpgMappingFromMappingRuleSetRTgtSource)
Retrieve the child object with the specified naming properties.
Definition MappingRuleSet.hpp:185
SOME COPYRIGHT.
Definition OpcodeEnumT.hpp:12