Provides functionality to parse a connection header and retrieve values from it. More...
#include <header.h>
Public Member Functions | |
| bool | getValue (const std::string &key, std::string &value) const |
| Get a value from a parsed header. | |
| M_stringPtr | getValues () |
| Returns a shared pointer to the internal map used. | |
| Header () | |
| bool | parse (uint8_t *buffer, uint32_t size, std::string &error_msg) |
| Parse a header out of a buffer of data. | |
| 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. | |
| ~Header () | |
Static Public Member Functions | |
| static void | write (const M_string &key_vals, boost::shared_array< uint8_t > &buffer, uint32_t &size) |
Private Attributes | |
| M_stringPtr | read_map_ |
Provides functionality to parse a connection header and retrieve values from it.
Definition at line 57 of file header.h.
| ros::Header::Header | ( | ) |
Definition at line 51 of file header.cpp.
| ros::Header::~Header | ( | ) |
Definition at line 57 of file header.cpp.
| bool ros::Header::getValue | ( | const std::string & | key, | |
| std::string & | value | |||
| ) | const |
Get a value from a parsed header.
| key | Key value | |
| value | OUT -- value corresponding to the key if there is one |
Definition at line 105 of file header.cpp.
| M_stringPtr ros::Header::getValues | ( | ) | [inline] |
| 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 67 of file header.cpp.
| 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 62 of file header.cpp.
| void ros::Header::write | ( | const M_string & | key_vals, | |
| boost::shared_array< uint8_t > & | buffer, | |||
| uint32_t & | size | |||
| ) | [static] |
Definition at line 118 of file header.cpp.
M_stringPtr ros::Header::read_map_ [private] |