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;
98 static boost::optional<OF_SHARED_PTR<modelgbp::gbpe::FloodContext> >
resolve(
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(
165 static boost::optional<OF_SHARED_PTR<modelgbp::gbpe::FloodContext> >
resolve(
196 const opflex::modb::URI&
uri)
213 remove(opflex::ofcore::OFFramework::defaultInstance(),
uri);
276 opflex::modb::ObjectListener*
listener)
278 opflex::modb::mointernal
294 opflex::modb::ObjectListener*
listener)
307 opflex::modb::ObjectListener*
listener)
309 opflex::modb::mointernal
320 opflex::modb::ObjectListener*
listener)
331 const opflex::modb::URI&
uri,
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