Provides functionality to parse a connection header and retrieve values from it.
More...
#include <header.h>
|
bool | getValue (const std::string &key, std::string &value) const |
| Get a value from a parsed header. More...
|
|
M_stringPtr | getValues () |
| Returns a shared pointer to the internal map used. More...
|
|
| Header () |
|
bool | parse (const boost::shared_array< uint8_t > &buffer, uint32_t size, std::string &error_msg) |
| Parse a header out of a buffer of data. More...
|
|
bool | parse (uint8_t *buffer, uint32_t size, std::string &error_msg) |
| Parse a header out of a buffer of data. More...
|
|
| ~Header () |
|
|
static void | write (const M_string &key_vals, boost::shared_array< uint8_t > &buffer, uint32_t &size) |
|
Provides functionality to parse a connection header and retrieve values from it.
Definition at line 52 of file header.h.
◆ Header()
◆ ~Header()
◆ getValue()
bool ros::Header::getValue |
( |
const std::string & |
key, |
|
|
std::string & |
value |
|
) |
| const |
Get a value from a parsed header.
- Parameters
-
key | Key value |
value | OUT – value corresponding to the key if there is one |
- Returns
- Returns true if the header had the specified key in it
Definition at line 118 of file header.cpp.
◆ getValues()
Returns a shared pointer to the internal map used.
Definition at line 68 of file header.h.
◆ parse() [1/2]
bool ros::Header::parse |
( |
const boost::shared_array< uint8_t > & |
buffer, |
|
|
uint32_t |
size, |
|
|
std::string & |
error_msg |
|
) |
| |
Parse a header out of a buffer of data.
Definition at line 72 of file header.cpp.
◆ parse() [2/2]
bool ros::Header::parse |
( |
uint8_t * |
buffer, |
|
|
uint32_t |
size, |
|
|
std::string & |
error_msg |
|
) |
| |
Parse a header out of a buffer of data.
Definition at line 77 of file header.cpp.
◆ write()
void ros::Header::write |
( |
const M_string & |
key_vals, |
|
|
boost::shared_array< uint8_t > & |
buffer, |
|
|
uint32_t & |
size |
|
) |
| |
|
static |
◆ read_map_
The documentation for this class was generated from the following files: