- Author
- Alexander Sherikov
- Copyright
- 2019 Alexander Sherikov, Licensed under the Apache License, Version 2.0. (see LICENSE or http://www.apache.org/licenses/LICENSE-2.0)
Definition in file writer.h.
Go to the source code of this file.
#include <string>
#include <vector>
#include <utility>
#include <boost/lexical_cast.hpp>
◆ ARILES2_BASIC_TYPE
#define ARILES2_BASIC_TYPE |
( |
|
type | ) |
|
Value: void writeElement(
const type &element,
const Parameters &) \
{ \
expand(); \
if (initialize_structure_) \
{ \
NameValuePairHandler<t_NameValuePair>::name((*name_value_pairs_)[index_]) = back().node_; \
if (back().isArray()) \
{ \
NameValuePairHandler<t_NameValuePair>::name((*name_value_pairs_)[index_]) += "_"; \
NameValuePairHandler<t_NameValuePair>::name((*name_value_pairs_)[index_]) += \
boost::lexical_cast<std::string>(back().index_); \
} \
} \
NameValuePairHandler<t_NameValuePair>::value((*name_value_pairs_)[index_]) = element; \
++index_; \
}
visitor::Parameters Parameters
Definition at line 223 of file writer.h.