11#ifndef GI_GBPE_FLOODCONTEXT_HPP
12#define GI_GBPE_FLOODCONTEXT_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 = 41;
37 return getObjectInstance().isSet(1343489ul, opflex::modb::PropertyInfo::STRING);
47 return getObjectInstance().getString(1343489ul);
71 getTLMutator().modify(getClassId(), getURI())->setString(1343489ul, newValue);
83 getTLMutator().modify(getClassId(), getURI())->unset(1343489ul, opflex::modb::PropertyInfo::STRING, opflex::modb::PropertyInfo::SCALAR);
98 static boost::optional<OF_SHARED_PTR<modelgbp::gbpe::FloodContext> >
resolve(
99 opflex::ofcore::OFFramework& framework,
100 const opflex::modb::URI& uri)
102 return opflex::modb::mointernal::MO::resolve<modelgbp::gbpe::FloodContext>(framework,
CLASS_ID, uri);
116 static boost::optional<OF_SHARED_PTR<modelgbp::gbpe::FloodContext> >
resolve(
117 const opflex::modb::URI& uri)
119 return opflex::modb::mointernal::MO::resolve<modelgbp::gbpe::FloodContext>(opflex::ofcore::OFFramework::defaultInstance(),
CLASS_ID, uri);
140 static boost::optional<OF_SHARED_PTR<modelgbp::gbpe::FloodContext> >
resolve(
141 opflex::ofcore::OFFramework& framework,
142 const std::string& policySpaceName,
143 const std::string& gbpFloodDomainName)
145 return resolve(framework,opflex::modb::URIBuilder().addElement(
"PolicyUniverse").addElement(
"PolicySpace").addElement(policySpaceName).addElement(
"GbpFloodDomain").addElement(gbpFloodDomainName).addElement(
"GbpeFloodContext").build());
165 static boost::optional<OF_SHARED_PTR<modelgbp::gbpe::FloodContext> >
resolve(
166 const std::string& policySpaceName,
167 const std::string& gbpFloodDomainName)
169 return resolve(opflex::ofcore::OFFramework::defaultInstance(),policySpaceName,gbpFloodDomainName);
182 getTLMutator().remove(
CLASS_ID, getURI());
195 static void remove(opflex::ofcore::OFFramework& framework,
196 const opflex::modb::URI& uri)
198 MO::remove(framework,
CLASS_ID, uri);
211 static void remove(
const opflex::modb::URI& uri)
213 remove(opflex::ofcore::OFFramework::defaultInstance(), uri);
233 opflex::ofcore::OFFramework& framework,
234 const std::string& policySpaceName,
235 const std::string& gbpFloodDomainName)
237 MO::remove(framework,
CLASS_ID, opflex::modb::URIBuilder().addElement(
"PolicyUniverse").addElement(
"PolicySpace").addElement(policySpaceName).addElement(
"GbpFloodDomain").addElement(gbpFloodDomainName).addElement(
"GbpeFloodContext").build());
257 const std::string& policySpaceName,
258 const std::string& gbpFloodDomainName)
260 remove(opflex::ofcore::OFFramework::defaultInstance(),policySpaceName,gbpFloodDomainName);
275 opflex::ofcore::OFFramework& framework,
276 opflex::modb::ObjectListener* listener)
278 opflex::modb::mointernal
279 ::MO::registerListener(framework, listener,
CLASS_ID);
294 opflex::modb::ObjectListener* listener)
306 opflex::ofcore::OFFramework& framework,
307 opflex::modb::ObjectListener* listener)
309 opflex::modb::mointernal
310 ::MO::unregisterListener(framework, listener,
CLASS_ID);
320 opflex::modb::ObjectListener* listener)
330 opflex::ofcore::OFFramework& framework,
331 const opflex::modb::URI& uri,
332 const OF_SHARED_PTR<const opflex::modb::mointernal::ObjectInstance>& oi)
333 : MO(framework,
CLASS_ID, uri, oi) { }
Definition FloodContext.hpp:23
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 FloodContext.hpp:293
modelgbp::gbpe::FloodContext & unsetMulticastGroupIP()
Unset multicastGroupIP in the currently-active mutator.
Definition FloodContext.hpp:81
boost::optional< const std::string & > getMulticastGroupIP()
Get the value of multicastGroupIP if it has been set.
Definition FloodContext.hpp:44
static void remove(const std::string &policySpaceName, const std::string &gbpFloodDomainName)
Remove the FloodContext object with the specified path elements from the managed object store using t...
Definition FloodContext.hpp:256
static void remove(opflex::ofcore::OFFramework &framework, const opflex::modb::URI &uri)
Remove the FloodContext object with the specified URI using the currently-active mutator.
Definition FloodContext.hpp:195
static void remove(opflex::ofcore::OFFramework &framework, const std::string &policySpaceName, const std::string &gbpFloodDomainName)
Remove the FloodContext object with the specified path elements from the managed object store.
Definition FloodContext.hpp:232
static boost::optional< OF_SHARED_PTR< modelgbp::gbpe::FloodContext > > resolve(const std::string &policySpaceName, const std::string &gbpFloodDomainName)
Retrieve an instance of FloodContext from the default managed object store by constructing its URI fr...
Definition FloodContext.hpp:165
static const opflex::modb::class_id_t CLASS_ID
The unique class ID for FloodContext.
Definition FloodContext.hpp:29
static boost::optional< OF_SHARED_PTR< modelgbp::gbpe::FloodContext > > resolve(opflex::ofcore::OFFramework &framework, const opflex::modb::URI &uri)
Retrieve an instance of FloodContext from the managed object store.
Definition FloodContext.hpp:98
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 FloodContext.hpp:274
void remove()
Remove this instance using the currently-active mutator.
Definition FloodContext.hpp:180
FloodContext(opflex::ofcore::OFFramework &framework, const opflex::modb::URI &uri, const OF_SHARED_PTR< const opflex::modb::mointernal::ObjectInstance > &oi)
Construct an instance of FloodContext.
Definition FloodContext.hpp:329
const std::string & getMulticastGroupIP(const std::string &defaultValue)
Get the value of multicastGroupIP if set, otherwise the value of default passed in.
Definition FloodContext.hpp:56
static void unregisterListener(opflex::modb::ObjectListener *listener)
Unregister a listener from updates to this class from the default framework instance.
Definition FloodContext.hpp:319
static boost::optional< OF_SHARED_PTR< modelgbp::gbpe::FloodContext > > resolve(opflex::ofcore::OFFramework &framework, const std::string &policySpaceName, const std::string &gbpFloodDomainName)
Retrieve an instance of FloodContext from the managed object store by constructing its URI from the p...
Definition FloodContext.hpp:140
static void remove(const opflex::modb::URI &uri)
Remove the FloodContext object with the specified URI using the currently-active mutator and the defa...
Definition FloodContext.hpp:211
static boost::optional< OF_SHARED_PTR< modelgbp::gbpe::FloodContext > > resolve(const opflex::modb::URI &uri)
Retrieve an instance of FloodContext from the managed object store using the default framework instan...
Definition FloodContext.hpp:116
bool isMulticastGroupIPSet()
Check whether multicastGroupIP has been set.
Definition FloodContext.hpp:35
static void unregisterListener(opflex::ofcore::OFFramework &framework, opflex::modb::ObjectListener *listener)
Unregister a listener from updates to this class.
Definition FloodContext.hpp:305
modelgbp::gbpe::FloodContext & setMulticastGroupIP(const std::string &newValue)
Set multicastGroupIP to the specified value in the currently-active mutator.
Definition FloodContext.hpp:69
SOME COPYRIGHT.
Definition OpcodeEnumT.hpp:12