8 #ifndef COFGROUPDESCSTATS_H_
9 #define COFGROUPDESCSTATS_H_ 1
11 #include "../cmemory.h"
13 #include "openflow_rofl_exceptions.h"
14 #include "cofbuckets.h"
40 uint8_t of_version = 0);
84 pack(uint8_t *buf,
size_t buflen);
90 unpack(uint8_t *buf,
size_t buflen);
106 get_version()
const {
return of_version; };
112 get_group_type()
const {
return type; };
118 get_group_id()
const {
return group_id; };
124 get_buckets() {
return buckets; };
130 set_version(uint8_t of_version) { this->of_version = of_version; };
136 set_group_type(uint8_t type) { this->type = type; };
142 set_group_id(uint32_t group_id) { this->group_id = group_id; };
148 set_buckets(
cofbuckets const& buckets) { this->buckets = buckets; };
154 set_buckets() {
return buckets; };
160 get_buckets()
const {
return buckets; };
166 os <<
indent(0) <<
"<cofgroup_desc_stats_reply >" << std::endl;
167 os <<
indent(2) <<
"<type: " << (int)group_desc_stats_reply.get_group_type() <<
" >" << std::endl;
168 os <<
indent(2) <<
"<group-id: " << group_desc_stats_reply.get_group_id() <<
" >" << std::endl;
170 os << group_desc_stats_reply.buckets;
Definition: cofbuckets.h:28
Definition: cofgroupdescstats.h:20
Definition: cofgroupdescstats.h:23
Definition: cofgroupdescstats.h:21
Definition: cofgroupdescstats.h:19
Definition: croflexception.h:27