8 #ifndef COFHELLOELEMS_H_
9 #define COFHELLOELEMS_H_
14 #include "rofl/common/openflow/cofhelloelem.h"
15 #include "rofl/common/openflow/cofhelloelemversionbitmap.h"
16 #include "rofl/common/logging.h"
26 public std::map<uint8_t, cofhello_elem*>
30 typedef std::map<uint8_t, cofhello_elem*>::iterator iterator;
31 typedef std::map<uint8_t, cofhello_elem*>::const_iterator const_iterator;
33 typedef std::map<uint8_t, cofhello_elem*>::reverse_iterator reverse_iterator;
34 typedef std::map<uint8_t, cofhello_elem*>::const_reverse_iterator const_reverse_iterator;
53 uint8_t *buf,
size_t buflen);
80 unpack(uint8_t *buf,
size_t buflen);
86 pack(uint8_t* buf,
size_t buflen);
106 add_hello_elem_versionbitmap();
112 set_hello_elem_versionbitmap();
118 get_hello_elem_versionbitmap();
124 drop_hello_elem_versionbitmap();
130 has_hello_elem_versionbitmap();
145 os <<
indent(0) <<
"<cofhelloelems #elems:" << (int)elems.size() <<
146 " length:" << (int)elems.length() <<
" >" << std::endl;
148 for (cofhelloelems::const_iterator
149 it = elems.begin(); it != elems.end(); ++it) {
151 switch (elem.get_type()) {
152 case openflow13::OFPHET_VERSIONBITMAP: {
Definition: cofhelloelems.h:23
Definition: cofhelloelems.h:21
Definition: cofhelloelemversionbitmap.h:22
Definition: cofhelloelems.h:22
Definition: cofhelloelems.h:25
C++ abstraction for malloc'ed memory areas.
Definition: cmemory.h:44
Definition: cofhelloelem.h:21
Definition: croflexception.h:27