11 #ifndef GI_GBPE_L24CLASSIFIER_HPP
12 #define GI_GBPE_L24CLASSIFIER_HPP
14 #include <boost/optional.hpp>
15 #include "opflex/modb/URIBuilder.h"
16 #include "opflex/modb/mo-internal/MO.h"
20 #include "modelgbp/gbp/RuleFromClassifierRTgt.hpp"
26 :
public opflex::modb::mointernal::MO
33 static const opflex::modb::class_id_t
CLASS_ID = 31;
41 return getObjectInstance().isSet(1015812ul, opflex::modb::PropertyInfo::ENUM8);
51 return (
const uint8_t)getObjectInstance().getUInt64(1015812ul);
62 return getArpOpc().get_value_or(defaultValue);
75 getTLMutator().modify(getClassId(), getURI())->setUInt64(1015812ul, newValue);
87 getTLMutator().modify(getClassId(), getURI())->unset(1015812ul, opflex::modb::PropertyInfo::ENUM8, opflex::modb::PropertyInfo::SCALAR);
97 return getObjectInstance().isSet(1015811ul, opflex::modb::PropertyInfo::ENUM8);
107 return (
const uint8_t)getObjectInstance().getUInt64(1015811ul);
131 getTLMutator().modify(getClassId(), getURI())->setUInt64(1015811ul, newValue);
143 getTLMutator().modify(getClassId(), getURI())->unset(1015811ul, opflex::modb::PropertyInfo::ENUM8, opflex::modb::PropertyInfo::SCALAR);
153 return getObjectInstance().isSet(1015817ul, opflex::modb::PropertyInfo::U64);
163 return (uint16_t)getObjectInstance().getUInt64(1015817ul);
187 getTLMutator().modify(getClassId(), getURI())->setUInt64(1015817ul, newValue);
199 getTLMutator().modify(getClassId(), getURI())->unset(1015817ul, opflex::modb::PropertyInfo::U64, opflex::modb::PropertyInfo::SCALAR);
209 return getObjectInstance().isSet(1015818ul, opflex::modb::PropertyInfo::U64);
219 return (uint16_t)getObjectInstance().getUInt64(1015818ul);
230 return getDToPort().get_value_or(defaultValue);
243 getTLMutator().modify(getClassId(), getURI())->setUInt64(1015818ul, newValue);
255 getTLMutator().modify(getClassId(), getURI())->unset(1015818ul, opflex::modb::PropertyInfo::U64, opflex::modb::PropertyInfo::SCALAR);
265 return getObjectInstance().isSet(1015813ul, opflex::modb::PropertyInfo::ENUM16);
275 return (uint16_t)getObjectInstance().getUInt64(1015813ul);
286 return getEtherT().get_value_or(defaultValue);
299 getTLMutator().modify(getClassId(), getURI())->setUInt64(1015813ul, newValue);
311 getTLMutator().modify(getClassId(), getURI())->unset(1015813ul, opflex::modb::PropertyInfo::ENUM16, opflex::modb::PropertyInfo::SCALAR);
321 return getObjectInstance().isSet(1015809ul, opflex::modb::PropertyInfo::STRING);
331 return getObjectInstance().getString(1015809ul);
340 const std::string&
getName(
const std::string& defaultValue)
342 return getName().get_value_or(defaultValue);
355 getTLMutator().modify(getClassId(), getURI())->setString(1015809ul, newValue);
367 getTLMutator().modify(getClassId(), getURI())->unset(1015809ul, opflex::modb::PropertyInfo::STRING, opflex::modb::PropertyInfo::SCALAR);
377 return getObjectInstance().isSet(1015810ul, opflex::modb::PropertyInfo::U64);
387 return (uint32_t)getObjectInstance().getUInt64(1015810ul);
398 return getOrder().get_value_or(defaultValue);
411 getTLMutator().modify(getClassId(), getURI())->setUInt64(1015810ul, newValue);
423 getTLMutator().modify(getClassId(), getURI())->unset(1015810ul, opflex::modb::PropertyInfo::U64, opflex::modb::PropertyInfo::SCALAR);
433 return getObjectInstance().isSet(1015814ul, opflex::modb::PropertyInfo::U64);
443 return (
const uint8_t)getObjectInstance().getUInt64(1015814ul);
452 const uint8_t
getProt(
const uint8_t defaultValue)
454 return getProt().get_value_or(defaultValue);
467 getTLMutator().modify(getClassId(), getURI())->setUInt64(1015814ul, newValue);
479 getTLMutator().modify(getClassId(), getURI())->unset(1015814ul, opflex::modb::PropertyInfo::U64, opflex::modb::PropertyInfo::SCALAR);
489 return getObjectInstance().isSet(1015815ul, opflex::modb::PropertyInfo::U64);
499 return (uint16_t)getObjectInstance().getUInt64(1015815ul);
523 getTLMutator().modify(getClassId(), getURI())->setUInt64(1015815ul, newValue);
535 getTLMutator().modify(getClassId(), getURI())->unset(1015815ul, opflex::modb::PropertyInfo::U64, opflex::modb::PropertyInfo::SCALAR);
545 return getObjectInstance().isSet(1015816ul, opflex::modb::PropertyInfo::U64);
555 return (uint16_t)getObjectInstance().getUInt64(1015816ul);
566 return getSToPort().get_value_or(defaultValue);
579 getTLMutator().modify(getClassId(), getURI())->setUInt64(1015816ul, newValue);
591 getTLMutator().modify(getClassId(), getURI())->unset(1015816ul, opflex::modb::PropertyInfo::U64, opflex::modb::PropertyInfo::SCALAR);
601 return getObjectInstance().isSet(1015819ul, opflex::modb::PropertyInfo::U64);
611 return (uint32_t)getObjectInstance().getUInt64(1015819ul);
635 getTLMutator().modify(getClassId(), getURI())->setUInt64(1015819ul, newValue);
647 getTLMutator().modify(getClassId(), getURI())->unset(1015819ul, opflex::modb::PropertyInfo::U64, opflex::modb::PropertyInfo::SCALAR);
662 static boost::optional<boost::shared_ptr<modelgbp::gbpe::L24Classifier> >
resolve(
663 opflex::ofcore::OFFramework& framework,
664 const opflex::modb::URI& uri)
666 return opflex::modb::mointernal::MO::resolve<modelgbp::gbpe::L24Classifier>(framework,
CLASS_ID, uri);
680 static boost::optional<boost::shared_ptr<modelgbp::gbpe::L24Classifier> >
resolve(
681 const opflex::modb::URI& uri)
683 return opflex::modb::mointernal::MO::resolve<modelgbp::gbpe::L24Classifier>(opflex::ofcore::OFFramework::defaultInstance(),
CLASS_ID, uri);
704 static boost::optional<boost::shared_ptr<modelgbp::gbpe::L24Classifier> >
resolve(
705 opflex::ofcore::OFFramework& framework,
706 const std::string& policySpaceName,
707 const std::string& gbpeL24ClassifierName)
709 return resolve(framework,opflex::modb::URIBuilder().addElement(
"PolicyUniverse").addElement(
"PolicySpace").addElement(policySpaceName).addElement(
"GbpeL24Classifier").addElement(gbpeL24ClassifierName).build());
729 static boost::optional<boost::shared_ptr<modelgbp::gbpe::L24Classifier> >
resolve(
730 const std::string& policySpaceName,
731 const std::string& gbpeL24ClassifierName)
733 return resolve(opflex::ofcore::OFFramework::defaultInstance(),policySpaceName,gbpeL24ClassifierName);
748 const std::string& gbpRuleFromClassifierRTgtSource)
766 const std::string& gbpRuleFromClassifierRTgtSource)
768 boost::shared_ptr<modelgbp::gbp::RuleFromClassifierRTgt> result = addChild<modelgbp::gbp::RuleFromClassifierRTgt>(
769 CLASS_ID, getURI(), 2148499562ul, 106,
770 opflex::modb::URIBuilder(getURI()).addElement(
"GbpRuleFromClassifierRTgt").addElement(gbpRuleFromClassifierRTgtSource).build()
772 result->setSource(gbpRuleFromClassifierRTgtSource);
792 opflex::modb::mointernal::MO::resolveChildren<modelgbp::gbp::RuleFromClassifierRTgt>(
793 getFramework(),
CLASS_ID, getURI(), 2148499562ul, 106, out);
806 getTLMutator().remove(
CLASS_ID, getURI());
819 static void remove(opflex::ofcore::OFFramework& framework,
820 const opflex::modb::URI& uri)
822 MO::remove(framework,
CLASS_ID, uri);
835 static void remove(
const opflex::modb::URI& uri)
837 remove(opflex::ofcore::OFFramework::defaultInstance(), uri);
857 opflex::ofcore::OFFramework& framework,
858 const std::string& policySpaceName,
859 const std::string& gbpeL24ClassifierName)
861 MO::remove(framework,
CLASS_ID, opflex::modb::URIBuilder().addElement(
"PolicyUniverse").addElement(
"PolicySpace").addElement(policySpaceName).addElement(
"GbpeL24Classifier").addElement(gbpeL24ClassifierName).build());
881 const std::string& policySpaceName,
882 const std::string& gbpeL24ClassifierName)
884 remove(opflex::ofcore::OFFramework::defaultInstance(),policySpaceName,gbpeL24ClassifierName);
899 opflex::ofcore::OFFramework& framework,
900 opflex::modb::ObjectListener* listener)
902 opflex::modb::mointernal
903 ::MO::registerListener(framework, listener,
CLASS_ID);
918 opflex::modb::ObjectListener* listener)
930 opflex::ofcore::OFFramework& framework,
931 opflex::modb::ObjectListener* listener)
933 opflex::modb::mointernal
934 ::MO::unregisterListener(framework, listener,
CLASS_ID);
944 opflex::modb::ObjectListener* listener)
954 opflex::ofcore::OFFramework& framework,
955 const opflex::modb::URI& uri,
956 const boost::shared_ptr<const opflex::modb::mointernal::ObjectInstance>& oi)
957 : MO(framework,
CLASS_ID, uri, oi) { }
962 #endif // GI_GBPE_L24CLASSIFIER_HPP
modelgbp::gbpe::L24Classifier & unsetOrder()
Unset order in the currently-active mutator.
Definition: L24Classifier.hpp:421
boost::optional< const uint8_t > getConnectionTracking()
Get the value of connectionTracking if it has been set.
Definition: L24Classifier.hpp:104
modelgbp::gbpe::L24Classifier & unsetDToPort()
Unset dToPort in the currently-active mutator.
Definition: L24Classifier.hpp:253
bool isArpOpcSet()
Check whether arpOpc has been set.
Definition: L24Classifier.hpp:39
modelgbp::gbpe::L24Classifier & unsetSFromPort()
Unset sFromPort in the currently-active mutator.
Definition: L24Classifier.hpp:533
const uint8_t getProt(const uint8_t defaultValue)
Get the value of prot if set, otherwise the value of default passed in.
Definition: L24Classifier.hpp:452
boost::optional< uint32_t > getTcpFlags()
Get the value of tcpFlags if it has been set.
Definition: L24Classifier.hpp:608
static boost::optional< boost::shared_ptr< modelgbp::gbpe::L24Classifier > > resolve(const opflex::modb::URI &uri)
Retrieve an instance of L24Classifier from the managed object store using the default framework insta...
Definition: L24Classifier.hpp:680
boost::optional< uint16_t > getDToPort()
Get the value of dToPort if it has been set.
Definition: L24Classifier.hpp:216
modelgbp::gbpe::L24Classifier & setName(const std::string &newValue)
Set name to the specified value in the currently-active mutator.
Definition: L24Classifier.hpp:353
bool isSFromPortSet()
Check whether sFromPort has been set.
Definition: L24Classifier.hpp:487
boost::optional< uint32_t > getOrder()
Get the value of order if it has been set.
Definition: L24Classifier.hpp:384
bool isOrderSet()
Check whether order has been set.
Definition: L24Classifier.hpp:375
modelgbp::gbpe::L24Classifier & setDFromPort(uint16_t newValue)
Set dFromPort to the specified value in the currently-active mutator.
Definition: L24Classifier.hpp:185
modelgbp::gbpe::L24Classifier & setOrder(uint32_t newValue)
Set order to the specified value in the currently-active mutator.
Definition: L24Classifier.hpp:409
modelgbp::gbpe::L24Classifier & unsetName()
Unset name in the currently-active mutator.
Definition: L24Classifier.hpp:365
boost::optional< uint16_t > getSToPort()
Get the value of sToPort if it has been set.
Definition: L24Classifier.hpp:552
modelgbp::gbpe::L24Classifier & setArpOpc(const uint8_t newValue)
Set arpOpc to the specified value in the currently-active mutator.
Definition: L24Classifier.hpp:73
modelgbp::gbpe::L24Classifier & setSFromPort(uint16_t newValue)
Set sFromPort to the specified value in the currently-active mutator.
Definition: L24Classifier.hpp:521
Definition: L24Classifier.hpp:25
boost::optional< const std::string & > getName()
Get the value of name if it has been set.
Definition: L24Classifier.hpp:328
const uint8_t getArpOpc(const uint8_t defaultValue)
Get the value of arpOpc if set, otherwise the value of default passed in.
Definition: L24Classifier.hpp:60
bool isDToPortSet()
Check whether dToPort has been set.
Definition: L24Classifier.hpp:207
modelgbp::gbpe::L24Classifier & unsetTcpFlags()
Unset tcpFlags in the currently-active mutator.
Definition: L24Classifier.hpp:645
modelgbp::gbpe::L24Classifier & setConnectionTracking(const uint8_t newValue)
Set connectionTracking to the specified value in the currently-active mutator.
Definition: L24Classifier.hpp:129
bool isTcpFlagsSet()
Check whether tcpFlags has been set.
Definition: L24Classifier.hpp:599
static void unregisterListener(opflex::modb::ObjectListener *listener)
Unregister a listener from updates to this class from the default framework instance.
Definition: L24Classifier.hpp:943
static boost::optional< boost::shared_ptr< modelgbp::gbpe::L24Classifier > > resolve(const std::string &policySpaceName, const std::string &gbpeL24ClassifierName)
Retrieve an instance of L24Classifier from the default managed object store by constructing its URI f...
Definition: L24Classifier.hpp:729
const uint8_t getConnectionTracking(const uint8_t defaultValue)
Get the value of connectionTracking if set, otherwise the value of default passed in...
Definition: L24Classifier.hpp:116
modelgbp::gbpe::L24Classifier & setDToPort(uint16_t newValue)
Set dToPort to the specified value in the currently-active mutator.
Definition: L24Classifier.hpp:241
uint16_t getDToPort(uint16_t defaultValue)
Get the value of dToPort if set, otherwise the value of default passed in.
Definition: L24Classifier.hpp:228
static boost::optional< boost::shared_ptr< modelgbp::gbpe::L24Classifier > > resolve(opflex::ofcore::OFFramework &framework, const opflex::modb::URI &uri)
Retrieve an instance of L24Classifier from the managed object store.
Definition: L24Classifier.hpp:662
static const opflex::modb::class_id_t CLASS_ID
The unique class ID for L24Classifier.
Definition: L24Classifier.hpp:33
boost::optional< const uint8_t > getProt()
Get the value of prot if it has been set.
Definition: L24Classifier.hpp:440
boost::optional< uint16_t > getSFromPort()
Get the value of sFromPort if it has been set.
Definition: L24Classifier.hpp:496
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: L24Classifier.hpp:898
boost::optional< uint16_t > getEtherT()
Get the value of etherT if it has been set.
Definition: L24Classifier.hpp:272
modelgbp::gbpe::L24Classifier & unsetDFromPort()
Unset dFromPort in the currently-active mutator.
Definition: L24Classifier.hpp:197
bool isDFromPortSet()
Check whether dFromPort has been set.
Definition: L24Classifier.hpp:151
modelgbp::gbpe::L24Classifier & unsetSToPort()
Unset sToPort in the currently-active mutator.
Definition: L24Classifier.hpp:589
modelgbp::gbpe::L24Classifier & setTcpFlags(uint32_t newValue)
Set tcpFlags to the specified value in the currently-active mutator.
Definition: L24Classifier.hpp:633
boost::optional< uint16_t > getDFromPort()
Get the value of dFromPort if it has been set.
Definition: L24Classifier.hpp:160
modelgbp::gbpe::L24Classifier & unsetArpOpc()
Unset arpOpc in the currently-active mutator.
Definition: L24Classifier.hpp:85
static boost::optional< boost::shared_ptr< modelgbp::gbp::RuleFromClassifierRTgt > > resolve(opflex::ofcore::OFFramework &framework, const opflex::modb::URI &uri)
Retrieve an instance of RuleFromClassifierRTgt from the managed object store.
Definition: RuleFromClassifierRTgt.hpp:210
modelgbp::gbpe::L24Classifier & unsetProt()
Unset prot in the currently-active mutator.
Definition: L24Classifier.hpp:477
L24Classifier(opflex::ofcore::OFFramework &framework, const opflex::modb::URI &uri, const boost::shared_ptr< const opflex::modb::mointernal::ObjectInstance > &oi)
Construct an instance of L24Classifier.
Definition: L24Classifier.hpp:953
uint16_t getSFromPort(uint16_t defaultValue)
Get the value of sFromPort if set, otherwise the value of default passed in.
Definition: L24Classifier.hpp:508
modelgbp::gbpe::L24Classifier & setProt(const uint8_t newValue)
Set prot to the specified value in the currently-active mutator.
Definition: L24Classifier.hpp:465
uint32_t getOrder(uint32_t defaultValue)
Get the value of order if set, otherwise the value of default passed in.
Definition: L24Classifier.hpp:396
boost::shared_ptr< modelgbp::gbp::RuleFromClassifierRTgt > addGbpRuleFromClassifierRTgt(const std::string &gbpRuleFromClassifierRTgtSource)
Create a new child object with the specified naming properties and make it a child of this object in ...
Definition: L24Classifier.hpp:765
static boost::optional< boost::shared_ptr< modelgbp::gbpe::L24Classifier > > resolve(opflex::ofcore::OFFramework &framework, const std::string &policySpaceName, const std::string &gbpeL24ClassifierName)
Retrieve an instance of L24Classifier from the managed object store by constructing its URI from the ...
Definition: L24Classifier.hpp:704
uint32_t getTcpFlags(uint32_t defaultValue)
Get the value of tcpFlags if set, otherwise the value of default passed in.
Definition: L24Classifier.hpp:620
static void unregisterListener(opflex::ofcore::OFFramework &framework, opflex::modb::ObjectListener *listener)
Unregister a listener from updates to this class.
Definition: L24Classifier.hpp:929
uint16_t getSToPort(uint16_t defaultValue)
Get the value of sToPort if set, otherwise the value of default passed in.
Definition: L24Classifier.hpp:564
void resolveGbpRuleFromClassifierRTgt(std::vector< boost::shared_ptr< modelgbp::gbp::RuleFromClassifierRTgt > > &out)
Resolve and retrieve all of the immediate children of type modelgbp::gbp::RuleFromClassifierRTgt.
Definition: L24Classifier.hpp:790
modelgbp::gbpe::L24Classifier & setEtherT(uint16_t newValue)
Set etherT to the specified value in the currently-active mutator.
Definition: L24Classifier.hpp:297
boost::optional< boost::shared_ptr< modelgbp::gbp::RuleFromClassifierRTgt > > resolveGbpRuleFromClassifierRTgt(const std::string &gbpRuleFromClassifierRTgtSource)
Retrieve the child object with the specified naming properties.
Definition: L24Classifier.hpp:747
bool isConnectionTrackingSet()
Check whether connectionTracking has been set.
Definition: L24Classifier.hpp:95
modelgbp::gbpe::L24Classifier & unsetConnectionTracking()
Unset connectionTracking in the currently-active mutator.
Definition: L24Classifier.hpp:141
uint16_t getDFromPort(uint16_t defaultValue)
Get the value of dFromPort if set, otherwise the value of default passed in.
Definition: L24Classifier.hpp:172
bool isEtherTSet()
Check whether etherT has been set.
Definition: L24Classifier.hpp:263
modelgbp::gbpe::L24Classifier & setSToPort(uint16_t newValue)
Set sToPort to the specified value in the currently-active mutator.
Definition: L24Classifier.hpp:577
bool isProtSet()
Check whether prot has been set.
Definition: L24Classifier.hpp:431
boost::optional< const uint8_t > getArpOpc()
Get the value of arpOpc if it has been set.
Definition: L24Classifier.hpp:48
bool isSToPortSet()
Check whether sToPort has been set.
Definition: L24Classifier.hpp:543
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: L24Classifier.hpp:917
bool isNameSet()
Check whether name has been set.
Definition: L24Classifier.hpp:319
modelgbp::gbpe::L24Classifier & unsetEtherT()
Unset etherT in the currently-active mutator.
Definition: L24Classifier.hpp:309
const std::string & getName(const std::string &defaultValue)
Get the value of name if set, otherwise the value of default passed in.
Definition: L24Classifier.hpp:340
uint16_t getEtherT(uint16_t defaultValue)
Get the value of etherT if set, otherwise the value of default passed in.
Definition: L24Classifier.hpp:284