![]() |
undoStudio
The IDE of the undoRT ecosystem
|
Functions | |
| std::string | getString (const std::string &file, const std::string §ion, const std::string &key, const std::string &def="") |
| Read a string. | |
| int | getInt (const std::string &file, const std::string §ion, const std::string &key, int def) |
| Read an integer. | |
| std::vector< std::string > | getList (const std::string &file, const std::string §ion, const std::string &key) |
| Read every value of a key, in the order they appear. | |
| void | setString (const std::string &file, const std::string §ion, const std::string &key, const std::string &value) |
| Store a string, keeping the rest of the file as it is. | |
| void | setInt (const std::string &file, const std::string §ion, const std::string &key, int value) |
| Store an integer. | |
| void | setList (const std::string &file, const std::string §ion, const std::string &key, const std::vector< std::string > &values) |
| Replace every value of a key, keeping the rest of the file as it is. | |
Variables | |
| const char *const | kCoreFile = "undoStudio.ini" |
| The file the core keeps its own state in. | |
| int undoStudio::core::settings::getInt | ( | const std::string & | file, |
| const std::string & | section, | ||
| const std::string & | key, | ||
| int | def | ||
| ) |
Read an integer.
| file | File to read |
| section | Section to look in |
| key | Key to look for |
| def | Value to return when it is not there or is not a number |
| std::vector< std::string > undoStudio::core::settings::getList | ( | const std::string & | file, |
| const std::string & | section, | ||
| const std::string & | key | ||
| ) |
Read every value of a key, in the order they appear.
| file | File to read |
| section | Section to look in |
| key | Key to collect |
| std::string undoStudio::core::settings::getString | ( | const std::string & | file, |
| const std::string & | section, | ||
| const std::string & | key, | ||
| const std::string & | def = "" |
||
| ) |
Read a string.
| file | File to read |
| section | Section to look in |
| key | Key to look for |
| def | Value to return when it is not there |
| void undoStudio::core::settings::setInt | ( | const std::string & | file, |
| const std::string & | section, | ||
| const std::string & | key, | ||
| int | value | ||
| ) |
Store an integer.
| file | File to write |
| section | Section to write into |
| key | Key to write |
| value | Value to store |
| void undoStudio::core::settings::setList | ( | const std::string & | file, |
| const std::string & | section, | ||
| const std::string & | key, | ||
| const std::vector< std::string > & | values | ||
| ) |
Replace every value of a key, keeping the rest of the file as it is.
| file | File to write |
| section | Section to write into |
| key | Key to write |
| values | Values to store, in order |
| void undoStudio::core::settings::setString | ( | const std::string & | file, |
| const std::string & | section, | ||
| const std::string & | key, | ||
| const std::string & | value | ||
| ) |
Store a string, keeping the rest of the file as it is.
| file | File to write |
| section | Section to write into, created if it is not there |
| key | Key to write |
| value | Value to store |
| const char *const undoStudio::core::settings::kCoreFile = "undoStudio.ini" |
The file the core keeps its own state in.