8 #ifndef COFMETERFEATURES_H_
9 #define COFMETERFEATURES_H_ 1
11 #include "rofl/common/cmemory.h"
12 #include "rofl/common/openflow/openflow.h"
13 #include "rofl/common/openflow/openflow_rofl_exceptions.h"
29 uint8_t of_version = 0,
30 uint8_t *buf = (uint8_t*)0,
41 uint32_t capabilities,
92 pack(uint8_t *buf,
size_t buflen);
98 unpack(uint8_t *buf,
size_t buflen);
106 set_version(uint8_t of_version) { this->of_version = of_version; };
112 get_version()
const {
return of_version; };
118 set_max_meter(uint32_t max_meter) { this->max_meter = max_meter; };
124 get_max_meter()
const {
return max_meter; };
130 set_band_types(uint32_t band_types) { this->band_types = band_types; };
136 get_band_types()
const {
return band_types; };
142 set_capabilities(uint32_t capabilities) { this->capabilities = capabilities; };
148 get_capabilities()
const {
return capabilities; };
154 set_max_bands(uint8_t max_bands) { this->max_bands = max_bands; };
160 get_max_bands()
const {
return max_bands; };
166 set_max_color(uint8_t max_color) { this->max_color = max_color; };
172 get_max_color()
const {
return max_color; };
179 os <<
indent(0) <<
"<cofmeter_features_reply ofp-version: " << (int)r.get_version() <<
" >" << std::endl;
181 os <<
indent(2) <<
"<max-meter: 0x" << (
unsigned int)r.get_max_meter() <<
" >" << std::endl;
182 os <<
indent(2) <<
"<band-types: 0x" << (
unsigned int)r.get_band_types() <<
" >" << std::endl;
183 os <<
indent(2) <<
"<capabilities: 0x" << (
unsigned int)r.get_capabilities() <<
" >" << std::endl;
184 os <<
indent(2) <<
"<max-bands: 0x" << (
unsigned int)r.get_max_bands() <<
" >" << std::endl;
185 os <<
indent(2) <<
"<max-color: 0x" << (
unsigned int)r.get_max_color() <<
" >" << std::endl;
195 uint32_t capabilities;
Definition: cofmeterfeatures.h:22
Definition: cofmeterfeatures.h:18
Definition: cofmeterfeatures.h:20
Definition: cofmeterfeatures.h:19
Definition: croflexception.h:27