MAIA bb96820c
Multiphysics at AIA
|
#include <cpptoml.h>
Public Member Functions | |
toml_writer (std::ostream &s, std::string indent_space="\t") | |
template<class T > | |
void | visit (const value< T > &v, MBool=false) |
void | visit (const table &t, MBool in_array=false) |
void | visit (const array &a, MBool=false) |
void | visit (const table_array &t, MBool=false) |
Static Public Member Functions | |
static std::string | escape_string (const std::string &str) |
Protected Member Functions | |
void | write (const value< std::string > &v) |
void | write (const value< double > &v) |
template<class T > | |
std::enable_if< is_one_of< T, int64_t, local_date, local_time, local_datetime, offset_datetime >::value >::type | write (const value< T > &v) |
void | write (const value< MBool > &v) |
void | write_table_header (MBool in_array=false) |
void | write_table_item_header (const base &b) |
Private Member Functions | |
void | indent () |
template<class T > | |
void | write (const T &v) |
void | endline () |
Private Attributes | |
std::ostream & | stream_ |
const std::string | indent_ |
std::vector< std::string > | path_ |
MBool | has_naked_endline_ |
Writer that can be passed to accept() functions of cpptoml objects and will output valid TOML to a stream.
|
inlineexplicit |
Construct a toml_writer that will write to the given stream
Definition at line 2574 of file cpptoml.h.
|
inlineprivate |
|
inlinestatic |
Escape a string for output.
Definition at line 2662 of file cpptoml.h.
|
inlineprivate |
Output an array element of the TOML tree
Output a table element of the TOML tree
Definition at line 2591 of file cpptoml.h.
|
inline |
|
inlineprivate |
Write a value out to the stream.
|
inlineprotected |
|
inlineprotected |
Write out a string.
|
inlineprotected |
Write out an integer, local_date, local_time, local_datetime, or offset_datetime.
|
inlineprotected |
Write out the header of a table.
|
inlineprotected |
Write out the identifier for an item in a table.
Definition at line 2770 of file cpptoml.h.
|
private |