Go to the documentation of this file. 1 #ifndef ED_IO_JSON_WRITER_H_
2 #define ED_IO_JSON_WRITER_H_
32 out_ <<
"\"" << name <<
"\":{";
52 out_ <<
"\"" << key <<
"\":" << f;
61 out_ <<
"\"" << key <<
"\":" << i;
70 out_ <<
"\"" << key <<
"\":\"" << s <<
"\"";
79 out_ <<
"\"" << key <<
"\":" << d;
88 out_ <<
"\"" << key <<
"\":[";
93 for(
unsigned int i = 1; i < size; ++i)
104 out_ <<
"\"" << key <<
"\":[";
109 for(
unsigned int i = 1; i < size; ++i)
110 out_ <<
"," << is[i];
120 out_ <<
"\"" << key <<
"\":[";
124 out_ <<
"\"" << ss[0] <<
"\"";
125 for(
unsigned int i = 1; i < size; ++i)
126 out_ <<
"\"" << ss[i] <<
"\"";
136 out_ <<
"\"" << key <<
"\":[";
void writeValue(const std::string &key, const float *fs, std::size_t size)
void writeArray(const std::string &key)
void writeValue(const std::string &key, float f)
void writeValue(const std::string &key, int i)
void writeGroup(const std::string &name)
void writeValue(const std::string &key, double d)
void writeValue(const std::string &key, const std::string *ss, std::size_t size)
JSONWriter(std::ostream &out)
std::vector< char > type_stack_
void writeValue(const std::string &key, const std::string &s)
void writeValue(const std::string &key, const int *is, std::size_t size)