Ariles
Classes | Namespaces | Macros
reader.cpp File Reference

Detailed Description

Author
Alexander Sherikov

Definition in file reader.cpp.

Go to the source code of this file.

#include <ariles/visitors/rapidjson.h>
#include "common.h"

Classes

class  ariles::ns_rapidjson::impl::Reader
 

Namespaces

 ariles
 
 ariles::ns_rapidjson
 
 ariles::ns_rapidjson::impl
 

Macros

#define ARILES_BASIC_TYPE(type)
 
#define ARILES_BASIC_TYPE(type)
 

Macro Definition Documentation

◆ ARILES_BASIC_TYPE [1/2]

#define ARILES_BASIC_TYPE (   type)
Value:
void Reader::readElement(type &element) \
{ \
int64_t tmp_value = impl_->getRawNode().GetInt64(); \
ARILES_ASSERT( \
tmp_value <= std::numeric_limits<type>::max() && tmp_value >= std::numeric_limits<type>::min(), \
"Value is out of range."); \
element = static_cast<type>(tmp_value); \
}

Definition at line 211 of file reader.cpp.

◆ ARILES_BASIC_TYPE [2/2]

#define ARILES_BASIC_TYPE (   type)
Value:
void Reader::readElement(type &element) \
{ \
uint64_t tmp_value = impl_->getRawNode().GetUint64(); \
ARILES_ASSERT(tmp_value <= std::numeric_limits<type>::max(), "Value is too large."); \
element = static_cast<type>(tmp_value); \
}

Definition at line 211 of file reader.cpp.