MAIA bb96820c
Multiphysics at AIA
|
Namespaces | |
namespace | ARRAY_ |
namespace | detail |
namespace | TABLE_ARRAY_ |
Typedefs | |
using | string_to_base_map = std::map< std::string, std::shared_ptr< base > > |
Enumerations | |
enum class | base_type { NONE , STRING , LOCAL_TIME , LOCAL_DATE , LOCAL_DATETIME , OFFSET_DATETIME , INT , FLOAT , BOOL , TABLE , ARRAY , TABLE_ARRAY } |
Base type used to store underlying data type explicitly if RTTI is disabled. More... | |
Functions | |
void | die (const std::string &reason, const std::string &file, const int line) |
void | die (const std::string &reason, const int input_line, const std::string &file, const int line) |
CPPTOML_DEPRECATED ("datetime has been renamed to offset_datetime") typedef offset_datetime datetime | |
std::ostream & | operator<< (std::ostream &os, const local_date &dt) |
std::ostream & | operator<< (std::ostream &os, const local_time <ime) |
std::ostream & | operator<< (std::ostream &os, const zone_offset &zo) |
std::ostream & | operator<< (std::ostream &os, const local_datetime &dt) |
std::ostream & | operator<< (std::ostream &os, const offset_datetime &dt) |
template<class T > | |
std::shared_ptr< typename value_traits< T >::type > | make_value (T &&val) |
std::shared_ptr< array > | make_array () |
template<class T > | |
std::shared_ptr< T > | make_element () |
std::shared_ptr< table > | make_table () |
std::shared_ptr< table_array > | make_table_array () |
template<> | |
std::shared_ptr< array > | make_element< array > () |
template<> | |
std::shared_ptr< table_array > | make_element< table_array > () |
template<class T > | |
std::enable_if<!std::is_floating_point< T >::value &&std::is_signed< T >::value, option< T > >::type | get_impl (const std::shared_ptr< base > &elem) |
template<class T > | |
std::enable_if<!std::is_same< T, MBool >::value &&std::is_unsigned< T >::value, option< T > >::type | get_impl (const std::shared_ptr< base > &elem) |
template<class T > | |
std::enable_if<!std::is_integral< T >::value||std::is_same< T, MBool >::value, option< T > >::type | get_impl (const std::shared_ptr< base > &elem) |
template<> | |
std::shared_ptr< table > | make_element< table > () |
MBool | is_number (char c) |
template<class OnError > | |
consumer< OnError > | make_consumer (std::string::iterator &it, const std::string::iterator &end, OnError &&on_error) |
std::shared_ptr< table > | parse_file (const std::string &filename) |
std::ostream & | operator<< (std::ostream &stream, const base &b) |
template<class T > | |
std::ostream & | operator<< (std::ostream &stream, const value< T > &v) |
std::ostream & | operator<< (std::ostream &stream, const table &t) |
std::ostream & | operator<< (std::ostream &stream, const table_array &t) |
std::ostream & | operator<< (std::ostream &stream, const array &a) |
typedef std::unordered_map< std::string, std::shared_ptr< base > > cpptoml::string_to_base_map |
|
strong |
Enumerator | |
---|---|
NONE | |
STRING | |
LOCAL_TIME | |
LOCAL_DATE | |
LOCAL_DATETIME | |
OFFSET_DATETIME | |
INT | |
FLOAT | |
BOOL | |
TABLE | |
ARRAY | |
TABLE_ARRAY |
Definition at line 368 of file cpptoml.h.
cpptoml::CPPTOML_DEPRECATED | ( | "datetime has been renamed to offset_datetime" | ) |
|
inline |
|
inline |
std::enable_if<!std::is_floating_point< T >::value &&std::is_signed< T >::value, option< T > >::type cpptoml::get_impl | ( | const std::shared_ptr< base > & | elem | ) |
Definition at line 1021 of file cpptoml.h.
std::enable_if<!std::is_same< T, MBool >::value &&std::is_unsigned< T >::value, option< T > >::type cpptoml::get_impl | ( | const std::shared_ptr< base > & | elem | ) |
Definition at line 1037 of file cpptoml.h.
|
inline |
|
inline |
Definition at line 873 of file cpptoml.h.
consumer< OnError > cpptoml::make_consumer | ( | std::string::iterator & | it, |
const std::string::iterator & | end, | ||
OnError && | on_error | ||
) |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
Definition at line 1417 of file cpptoml.h.
|
inline |
Definition at line 999 of file cpptoml.h.
|
inline |
Definition at line 588 of file cpptoml.h.
|
inline |
Definition at line 202 of file cpptoml.h.
|
inline |
|
inline |
Definition at line 212 of file cpptoml.h.
|
inline |
|
inline |
Definition at line 232 of file cpptoml.h.
|
inline |
Definition at line 2850 of file cpptoml.h.
|
inline |
Definition at line 2825 of file cpptoml.h.
|
inline |
Definition at line 2838 of file cpptoml.h.
|
inline |
std::ostream & cpptoml::operator<< | ( | std::ostream & | stream, |
const value< T > & | v | ||
) |
|
inline |
Utility function to parse a file as a TOML file. Returns the root table. Throws a parse_exception if the file cannot be opened.
Definition at line 2502 of file cpptoml.h.