XJ music engine
1.9.6
In-game runtime engine for XJ music.
|
#include <ConfigParser.h>
Public Member Functions | |
unsigned long | size () const |
ConfigSingleValue | atSingle (const std::string &index) |
std::vector< ConfigSingleValue > | atList (const std::string &index) |
void | set (const std::string &key, const std::variant< ConfigSingleValue, std::vector< ConfigSingleValue >> &value) |
std::map< std::string, std::variant< ConfigSingleValue, std::vector< ConfigSingleValue > > > | asMapOfSingleOrList () |
std::map< std::string, std::variant< std::string, std::vector< std::string > > > | asMapOfStringsOrListsOfStrings () const |
bool | operator== (const ConfigObjectValue &other) const |
bool | operator!= (const ConfigObjectValue &other) const |
![]() | |
virtual | ~ConfigValue ()=default |
An object value in a HOCON configuration
std::map< std::string, std::variant< ConfigSingleValue, std::vector< ConfigSingleValue > > > ConfigObjectValue::asMapOfSingleOrList | ( | ) |
Get the object as a map of strings to strings
std::map< std::string, std::variant< std::string, std::vector< std::string > > > ConfigObjectValue::asMapOfStringsOrListsOfStrings | ( | ) | const |
Get the object as a map of strings to strings
std::vector< ConfigSingleValue > ConfigObjectValue::atList | ( | const std::string & | index | ) |
Get a list of single values from the object
index | at which to get the value |
ConfigSingleValue ConfigObjectValue::atSingle | ( | const std::string & | index | ) |
Get a single value from the object
index | at which to get the value |
bool ConfigObjectValue::operator!= | ( | const ConfigObjectValue & | other | ) | const |
Compare two ConfigObjectValue for inquality
other | The ConfigObjectValue to compare |
bool ConfigObjectValue::operator== | ( | const ConfigObjectValue & | other | ) | const |
Compare two ConfigObjectValue for equality
other | The ConfigObjectValue to compare |
void ConfigObjectValue::set | ( | const std::string & | key, |
const std::variant< ConfigSingleValue, std::vector< ConfigSingleValue >> & | value | ||
) |
Set a value at a key in the object
key | at which to set the value |
value | The value to set |
unsigned long ConfigObjectValue::size | ( | ) | const |
Get the size of the object