MAIA bb96820c
Multiphysics at AIA
|
#include <cpptoml.h>
Public Member Functions | |
parser (std::istream &stream) | |
parser & | operator= (const parser &parser)=delete |
std::shared_ptr< table > | parse () |
Private Types | |
enum class | parse_type { STRING = 1 , LOCAL_TIME , LOCAL_DATE , LOCAL_DATETIME , OFFSET_DATETIME , INT , FLOAT , BOOL , ARRAY , INLINE_TABLE } |
Private Member Functions | |
__declspec (noreturn) __attribute__((noreturn)) void throw_parse_exception(const std | |
void | parse_table (std::string::iterator &it, const std::string::iterator &end, table *&curr_table) |
void | parse_single_table (std::string::iterator &it, const std::string::iterator &end, table *&curr_table) |
void | parse_table_array (std::string::iterator &it, const std::string::iterator &end, table *&curr_table) |
void | parse_key_value (std::string::iterator &it, std::string::iterator &end, table *curr_table) |
template<class KeyEndFinder , class KeyPartHandler > | |
std::string | parse_key (std::string::iterator &it, const std::string::iterator &end, KeyEndFinder &&key_end, KeyPartHandler &&key_part_handler) |
std::string | parse_simple_key (std::string::iterator &it, const std::string::iterator &end) |
std::string | parse_bare_key (std::string::iterator &it, const std::string::iterator &end) |
std::shared_ptr< base > | parse_value (std::string::iterator &it, std::string::iterator &end) |
parse_type | determine_value_type (const std::string::iterator &it, const std::string::iterator &end) |
std::shared_ptr< value< std::string > > | parse_string (std::string::iterator &it, std::string::iterator &end) |
std::shared_ptr< value< std::string > > | parse_multiline_string (std::string::iterator &it, std::string::iterator &end, char delim) |
std::string | string_literal (std::string::iterator &it, const std::string::iterator &end, char delim) |
std::string | parse_escape_code (std::string::iterator &it, const std::string::iterator &end) |
std::string | parse_unicode (std::string::iterator &it, const std::string::iterator &end) |
uint32_t | parse_hex (std::string::iterator &it, const std::string::iterator &end, uint32_t place) |
std::shared_ptr< base > | parse_number (std::string::iterator &it, const std::string::iterator &end) |
std::shared_ptr< value< int64_t > > | parse_int (std::string::iterator &it, const std::string::iterator &end) |
std::shared_ptr< value< double > > | parse_float (std::string::iterator &it, const std::string::iterator &end) |
std::shared_ptr< value< MBool > > | parse_bool (std::string::iterator &it, const std::string::iterator &end) |
local_time | read_time (std::string::iterator &it, const std::string::iterator &end) |
std::shared_ptr< value< local_time > > | parse_time (std::string::iterator &it, const std::string::iterator &end) |
std::shared_ptr< base > | parse_date (std::string::iterator &it, const std::string::iterator &end) |
std::shared_ptr< base > | parse_array (std::string::iterator &it, std::string::iterator &end) |
template<class Value > | |
std::shared_ptr< array > | parse_value_array (std::string::iterator &it, std::string::iterator &end) |
template<class Object , class Function > | |
std::shared_ptr< Object > | parse_object_array (Function &&fun, char delim, std::string::iterator &it, std::string::iterator &end) |
std::shared_ptr< table > | parse_inline_table (std::string::iterator &it, std::string::iterator &end) |
void | skip_whitespace_and_comments (std::string::iterator &start, std::string::iterator &end) |
void | eol_or_comment (const std::string::iterator &it, const std::string::iterator &end) |
Static Private Member Functions | |
static parse_type | determine_number_type (const std::string::iterator &it, const std::string::iterator &end) |
static MBool | is_hex (char c) |
static uint32_t | hex_to_digit (char c) |
static std::string::iterator | find_end_of_number (std::string::iterator it, std::string::iterator end) |
static std::string::iterator | find_end_of_date (std::string::iterator it, std::string::iterator end) |
static std::string::iterator | find_end_of_time (std::string::iterator it, std::string::iterator end) |
static void | consume_whitespace (std::string::iterator &it, const std::string::iterator &end) |
static void | consume_backwards_whitespace (std::string::iterator &back, const std::string::iterator &front) |
static MBool | is_time (const std::string::iterator &it, const std::string::iterator &end) |
static option< parse_type > | date_type (const std::string::iterator &it, const std::string::iterator &end) |
Private Attributes | |
std::istream & | input_ |
std::string | line_ |
std::size_t | line_number_ = 0 |
|
strongprivate |
Enumerator | |
---|---|
STRING | |
LOCAL_TIME | |
LOCAL_DATE | |
LOCAL_DATETIME | |
OFFSET_DATETIME | |
INT | |
FLOAT | |
BOOL | |
ARRAY | |
INLINE_TABLE |
Definition at line 1835 of file cpptoml.h.
|
inlineexplicit |
|
inlineprivate |
|
inlinestaticprivate |
|
inlinestaticprivate |
|
inlinestaticprivate |
Definition at line 2470 of file cpptoml.h.
|
inlinestaticprivate |
Definition at line 1895 of file cpptoml.h.
|
inlineprivate |
Definition at line 1873 of file cpptoml.h.
|
inlineprivate |
|
inlinestaticprivate |
|
inlinestaticprivate |
|
inlinestaticprivate |
|
inlinestaticprivate |
|
inlinestaticprivate |
|
inlinestaticprivate |
|
inline |
Parses the stream this parser was created on until EOF.
parse_exception | if there are errors in parsing |
Definition at line 1561 of file cpptoml.h.
|
inlineprivate |
Definition at line 2325 of file cpptoml.h.
|
inlineprivate |
Definition at line 1808 of file cpptoml.h.
|
inlineprivate |
Definition at line 2218 of file cpptoml.h.
|
inlineprivate |
Definition at line 2280 of file cpptoml.h.
|
inlineprivate |
Definition at line 2019 of file cpptoml.h.
|
inlineprivate |
Definition at line 2197 of file cpptoml.h.
|
inlineprivate |
Definition at line 2098 of file cpptoml.h.
|
inlineprivate |
Definition at line 2412 of file cpptoml.h.
|
inlineprivate |
Definition at line 2178 of file cpptoml.h.
|
inlineprivate |
Definition at line 1765 of file cpptoml.h.
|
inlineprivate |
Definition at line 1733 of file cpptoml.h.
|
inlineprivate |
Definition at line 1929 of file cpptoml.h.
|
inlineprivate |
Definition at line 2118 of file cpptoml.h.
|
inlineprivate |
Definition at line 2390 of file cpptoml.h.
|
inlineprivate |
Definition at line 1793 of file cpptoml.h.
|
inlineprivate |
Definition at line 1604 of file cpptoml.h.
|
inlineprivate |
Definition at line 1911 of file cpptoml.h.
|
inlineprivate |
Definition at line 1594 of file cpptoml.h.
|
inlineprivate |
Definition at line 1667 of file cpptoml.h.
|
inlineprivate |
|
inlineprivate |
Definition at line 2046 of file cpptoml.h.
|
inlineprivate |
Definition at line 1848 of file cpptoml.h.
|
inlineprivate |
Definition at line 2372 of file cpptoml.h.
|
inlineprivate |
Definition at line 2249 of file cpptoml.h.
|
inlineprivate |
Definition at line 2431 of file cpptoml.h.
|
inlineprivate |
Definition at line 2001 of file cpptoml.h.