|
Allolib
1.0
C++ Components For Interactive Multimedia
|
TomlLoader class. More...
#include <C:/Users/Andres/source/repos/casm_viewer/external/tinc/external/allolib/include/al/io/al_Toml.hpp>
Public Member Functions | |
| TomlLoader (const std::string &filename) | |
| void | setFile (const std::string &filename) |
| void | writeFile (std::string filename="") |
| Updates file on disk. | |
| template<typename T > | |
| void | setDefaultValue (const std::string &keyName, const T &value) |
| template<typename T > | |
| void | setDefaultValueVector (const std::string &keyName, const std::vector< T > &value) |
| template<typename T > | |
| bool | hasKey (const std::string &keyName) |
| template<typename T > | |
| void | set (const std::string &key, const T &value) |
| template<typename T > | |
| T | get (const std::string &key) |
| template<typename T > | |
| T | get (const std::string &table_key, const std::string &key) |
| double | getd (const std::string &key) |
| int64_t | geti (const std::string &key) |
| std::string | gets (const std::string &key) |
| bool | getb (const std::string &key) |
| double | getd (const std::string &table, const std::string &key) |
| int64_t | geti (const std::string &table, const std::string &key) |
| std::string | gets (const std::string &table, const std::string &key) |
| bool | getb (const std::string &table, const std::string &key) |
| template<typename T > | |
| std::vector< T > | getVector (const std::string &key) |
| template<typename T > | |
| void | setVector (const std::string &key, const std::vector< T > &vec) |
Public Attributes | |
| std::shared_ptr< cpptoml::table > | root |
| std::string | mFilename |
TomlLoader class.
Definition at line 20 of file al_Toml.hpp.