GRASP rci-qed
Namespaces | Classes | Typedefs | Functions
cpptoml Namespace Reference

Namespaces

 detail
 

Classes

class  array
 
class  array_exception
 
struct  array_of_trait
 
struct  array_of_trait< array >
 
class  base
 
class  consumer
 
class  fill_guard
 
struct  is_one_of
 
struct  is_one_of< T, V >
 
struct  is_one_of< T, V, Ts... >
 
struct  local_date
 
struct  local_datetime
 
struct  local_time
 
struct  offset_datetime
 
class  option
 
class  parse_exception
 
class  parser
 
class  table
 
class  table_array
 
class  toml_writer
 
struct  valid_value
 
struct  valid_value_or_string_convertible
 
class  value
 
struct  value_accept
 
struct  value_accept< T, Ts... >
 
struct  value_accept<>
 
struct  value_traits
 
struct  value_traits< T, typename std::enable_if< !valid_value_or_string_convertible< T >::value &&!std::is_floating_point< typename std::decay< T >::type >::value &&std::is_signed< typename std::decay< T >::type >::value >::type >
 
struct  value_traits< T, typename std::enable_if< !valid_value_or_string_convertible< T >::value &&std::is_floating_point< typename std::decay< T >::type >::value >::type >
 
struct  value_traits< T, typename std::enable_if< !valid_value_or_string_convertible< T >::value &&std::is_unsigned< typename std::decay< T >::type >::value >::type >
 
struct  value_traits< T, typename std::enable_if< valid_value_or_string_convertible< T >::value >::type >
 
struct  zone_offset
 

Typedefs

using string_to_base_map = std::unordered_map< std::string, std::shared_ptr< base > >
 
typedef offset_datetime datetime
 

Functions

std::ostream & operator<< (std::ostream &os, const local_date &dt)
 
std::ostream & operator<< (std::ostream &os, const local_time &ltime)
 
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< arraymake_array ()
 
std::shared_ptr< tablemake_table ()
 
std::shared_ptr< table_arraymake_table_array (bool is_inline=false)
 
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, bool >::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, bool >::value, option< T > >::type get_impl (const std::shared_ptr< base > &elem)
 
bool is_number (char c)
 
bool is_hex (char c)
 
template<class OnError >
consumer< OnError > make_consumer (std::string::iterator &it, const std::string::iterator &end, OnError &&on_error)
 
std::shared_ptr< tableparse_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 Documentation

◆ datetime

◆ string_to_base_map

using cpptoml::string_to_base_map = typedef std::unordered_map<std::string, std::shared_ptr<base> >

Function Documentation

◆ get_impl() [1/3]

template<class T >
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)

◆ get_impl() [2/3]

template<class T >
std::enable_if<!std::is_same<T, bool>::value && std::is_unsigned<T>::value, option<T> >::type cpptoml::get_impl ( const std::shared_ptr< base > &  elem)

◆ get_impl() [3/3]

template<class T >
std::enable_if<!std::is_integral<T>::value || std::is_same<T, bool>::value, option<T> >::type cpptoml::get_impl ( const std::shared_ptr< base > &  elem)

◆ is_hex()

bool cpptoml::is_hex ( char  c)
inline
Here is the call graph for this function:
Here is the caller graph for this function:

◆ is_number()

bool cpptoml::is_number ( char  c)
inline
Here is the caller graph for this function:

◆ make_array()

std::shared_ptr< array > cpptoml::make_array ( )
inline
Here is the caller graph for this function:

◆ make_consumer()

template<class OnError >
consumer<OnError> cpptoml::make_consumer ( std::string::iterator &  it,
const std::string::iterator &  end,
OnError &&  on_error 
)
Here is the caller graph for this function:

◆ make_table()

std::shared_ptr< table > cpptoml::make_table ( )
inline
Here is the caller graph for this function:

◆ make_table_array()

std::shared_ptr< table_array > cpptoml::make_table_array ( bool  is_inline = false)
inline
Here is the caller graph for this function:

◆ make_value()

template<class T >
std::shared_ptr< typename value_traits< T >::type > cpptoml::make_value ( T &&  val)
inline
Here is the caller graph for this function:

◆ operator<<() [1/10]

std::ostream& cpptoml::operator<< ( std::ostream &  os,
const local_date dt 
)
inline

◆ operator<<() [2/10]

std::ostream& cpptoml::operator<< ( std::ostream &  os,
const local_time ltime 
)
inline

◆ operator<<() [3/10]

std::ostream& cpptoml::operator<< ( std::ostream &  os,
const zone_offset zo 
)
inline

◆ operator<<() [4/10]

std::ostream& cpptoml::operator<< ( std::ostream &  os,
const local_datetime dt 
)
inline

◆ operator<<() [5/10]

std::ostream& cpptoml::operator<< ( std::ostream &  os,
const offset_datetime dt 
)
inline

◆ operator<<() [6/10]

std::ostream& cpptoml::operator<< ( std::ostream &  stream,
const base b 
)
inline
Here is the call graph for this function:

◆ operator<<() [7/10]

template<class T >
std::ostream& cpptoml::operator<< ( std::ostream &  stream,
const value< T > &  v 
)

◆ operator<<() [8/10]

std::ostream& cpptoml::operator<< ( std::ostream &  stream,
const table t 
)
inline
Here is the call graph for this function:

◆ operator<<() [9/10]

std::ostream& cpptoml::operator<< ( std::ostream &  stream,
const table_array t 
)
inline
Here is the call graph for this function:

◆ operator<<() [10/10]

std::ostream& cpptoml::operator<< ( std::ostream &  stream,
const array a 
)
inline
Here is the call graph for this function:

◆ parse_file()

std::shared_ptr<table> cpptoml::parse_file ( const std::string &  filename)
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.

Here is the call graph for this function:
Here is the caller graph for this function: