23 #ifndef JSON_TO_STORAGE_HH_
24 #define JSON_TO_STORAGE_HH_
62 <<
"Reference at address "
63 << EI_ErrorAddress::qval <<
" has wrong type, should by string.");
65 <<
"Error in input file: " << EI_JsonFile::qval <<
"\nReference {REF=\"" << EI_RefStr::val <<
"\"} at address " << EI_RefAddress::qval <<
" not found.\n"
66 <<
"failed to follow at address: " << EI_ErrorAddress::qval <<
" because " << EI_Specification::val);
78 const Node *
down(
unsigned int index);
79 const Node *
down(
const string& key);
94 inline const Node *
head()
const
101 {
return nodes_.size() - 1; }
118 void output(ostream &stream)
const;
179 DECLARE_INPUT_EXCEPTION( ExcInputError, <<
"Error in input file: " << EI_File::qval <<
" at address: " << EI_ErrorAddress::qval <<
"\n"
180 << EI_Specification::val <<
"\n"
181 <<
"JSON type: " << EI_JSON_Type::qval <<
"\n"
182 <<
"Expected type:\n" << EI_InputType::val );
189 << EI_JSONLine::val <<
" : col " << EI_JSONColumn::val
190 <<
" ; reason: " << EI_JSONReason::val <<
"\n" );
195 << EI_RecordName::val <<
" record.\n " << EI_InputErrorMessage::val <<
"\n" );
299 auto tmp_root_type =
static_cast<const typename T::InputType &
>(*root_type_);
300 return T( addr, tmp_root_type );