Typedefs | |
| using | tmlnode = toml::node_view< toml::node > |
Functions | |
| template<typename T > | |
| T | readValue (const toml::node_view< toml::node > &node) |
| read value from a toml node More... | |
| template<typename T > | |
| T | readValue (const toml::node_view< toml::node > &node, T default_value) |
| read value from a toml node More... | |
| template<typename T > | |
| T | readValue (toml::table *table, std::string key, T default_value) |
| Read value from toml table. More... | |
| template<typename T > | |
| T | readValue (toml::table *table, std::string key) |
| Read value from toml table. More... | |
| template<typename T > | |
| std::vector< T > | readVec (const toml::node_view< toml::node > &node) |
| load a 1-D std::vector from a toml array More... | |
| template<typename T > | |
| std::vector< T > | readVec (const toml::node_view< toml::node > &node, const std::vector< T > &default_vec) |
| load a 1-D std::vector from a toml array with default value More... | |
| template<typename T > | |
| std::vector< T > | readVec (toml::table *table, std::string key) |
| load a 1-D std::vector from a toml array More... | |
| template<typename T > | |
| std::vector< T > | readVec (toml::table *table, std::string key, const std::vector< T > &default_vec) |
| load a 1-D std::vector from a toml array, with default value More... | |
| using tml::tmlnode = typedef toml::node_view<toml::node> |
| T tml::readValue | ( | const toml::node_view< toml::node > & | node | ) |
read value from a toml node
read intergral value from a toml node
read floating point value from a toml node
| T | data type |
| node |
| T tml::readValue | ( | const toml::node_view< toml::node > & | node, |
| T | default_value | ||
| ) |
read value from a toml node
| T | data type |
| node | |
| default_value |
| T tml::readValue | ( | toml::table * | table, |
| std::string | key | ||
| ) |
Read value from toml table.
| data | type |
| table | toml table |
| key | keyname |
| T tml::readValue | ( | toml::table * | table, |
| std::string | key, | ||
| T | default_value | ||
| ) |
Read value from toml table.
| data | type |
| table | toml table |
| key | keyname |
| default_value | the return is assigned as the default_value if the key is not defined in toml |
| std::vector<T> tml::readVec | ( | const toml::node_view< toml::node > & | node | ) |
load a 1-D std::vector from a toml array
| T | typename |
| table | the toml table |
| key | the key that contains an array |
| std::vector<T> tml::readVec | ( | const toml::node_view< toml::node > & | node, |
| const std::vector< T > & | default_vec | ||
| ) |
load a 1-D std::vector from a toml array with default value
| T | typename |
| table | the toml table |
| key | the key that contains an array |
| default_vec | defulat vector if reading is failed |
| std::vector<T> tml::readVec | ( | toml::table * | table, |
| std::string | key | ||
| ) |
load a 1-D std::vector from a toml array
| T | typename |
| table | the toml table |
| key | the key that contains an array |
| std::vector<T> tml::readVec | ( | toml::table * | table, |
| std::string | key, | ||
| const std::vector< T > & | default_vec | ||
| ) |
load a 1-D std::vector from a toml array, with default value
| T | typename |
| table | the toml table |
| key | the key that contains an array |
| default_vec | default vector |