#include <ParserNode.h>
|
template<typename T > |
decltype(auto) | operator() (T t) |
|
template<>
struct Parser::DefaultValidate< IntLiteral >
Definition at line 2208 of file ParserNode.h.
Definition at line 2210 of file ParserNode.h.
2211 const std::string property_name(boost::to_upper_copy<std::string>(*t->get_name()));
2212 if (!dynamic_cast<const IntLiteral*>(t->get_value())) {
2213 throw std::runtime_error(property_name +
" must be an integer literal.");
2215 const auto val =
static_cast<const IntLiteral*
>(t->get_value())->get_intval();
2221 if (val <= 0 && property_name !=
"FRAGMENT_SIZE") {
2222 throw std::runtime_error(property_name +
" must be a positive number.");
The documentation for this struct was generated from the following file:
- /home/jenkins-slave/workspace/core-os-doxygen/Parser/ParserNode.h