|
Bela
Real-time, ultra-low-latency audio and sensor processing system for BeagleBone Black
|
Functions | |
| std::string | readValue (const std::string &path, const std::string &key) |
| std::string | readValueFromString (const std::string &str, const std::string &key) |
| int | writeValue (const std::string &file, const std::string &key, const std::string &value, IoUtils::Mode mode=IoUtils::TRUNCATE) |
Utilities to read and write config files with one KEY=VALUE pair per lin.
| std::string ConfigFileUtils::readValue | ( | const std::string & | path, |
| const std::string & | key ) |
Read the value corresponding to key from path.
| path | path to the file to read from. |
| key | the key to find. |
key was not found. | std::string ConfigFileUtils::readValueFromString | ( | const std::string & | str, |
| const std::string & | key ) |
Read the value corresponding to key from the string in str.
| str | the string the parse. |
| key | the key to find. |
key was not found. | int ConfigFileUtils::writeValue | ( | const std::string & | file, |
| const std::string & | key, | ||
| const std::string & | value, | ||
| IoUtils::Mode | mode = IoUtils::TRUNCATE ) |
Write the key-value pair to path.
| path | path to the file to write. |
| key | the key |
| value | the value |
| mode | whether to truncate or append to the path. |