#include <grammar_common.h>
Convert byte to number according to the FIPA definition
Definition at line 254 of file grammar_common.h.
| std::string convertToNumberTokenImpl::convert |
( |
char |
lowerbyte | ) |
const |
|
inline |
Definition at line 283 of file grammar_common.h.
291 case 0x00:
return "";
292 case 0x01:
return "0";
293 case 0x02:
return "1";
294 case 0x03:
return "2";
295 case 0x04:
return "3";
296 case 0x05:
return "4";
297 case 0x06:
return "5";
298 case 0x07:
return "6";
299 case 0x08:
return "7";
300 case 0x09:
return "8";
301 case 0x0a:
return "9";
302 case 0x0c:
return "+";
303 case 0x0d:
return "E";
304 case 0x0e:
return "-";
305 case 0x0f:
return ".";
template<typename T >
| result_type convertToNumberTokenImpl::operator() |
( |
T |
arg | ) |
const |
|
inline |
Definition at line 265 of file grammar_common.h.
270 char highbytes = arg;
271 char lowerbytes = arg;
277 std::string tmp =
convert(highbytes);
280 return std::string(tmp);
std::string convert(char lowerbyte) const
The documentation for this struct was generated from the following file:
- /build/rock-master-18.09-multiagent-fipa-acl-0.20180914/src/message_parser/grammar/grammar_common.h