#include <grammar_common.h>
|
| template<typename T > |
| boost::uint32_t | operator() (T arg) const |
| |
Definition at line 465 of file grammar_common.h.
template<typename T >
| boost::uint32_t convertStringToNumberImpl::operator() |
( |
T |
arg | ) |
const |
|
inline |
Definition at line 475 of file grammar_common.h.
477 std::string number(arg.begin(),arg.begin() + strlen(arg.c_str()));
479 return boost::lexical_cast<boost::uint32_t>(number);
480 }
catch(
const std::bad_cast& e)
482 LOG_ERROR(
"ConvertString failed: '%s'", arg.c_str());
483 LOG_ERROR(
"String_size: '%d'", arg.size());
484 LOG_ERROR(
"String_length: '%d'", strlen(arg.c_str()));
485 std::string msg =
"ConvertStringToNumber failed for '" + number +
"' " + std::string(e.what());
486 throw std::runtime_error(msg);
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