XJ music engine
1.9.6
In-game runtime engine for XJ music.
|
#include <ConfigParser.h>
Public Member Functions | |
ConfigSingleValue ()=default | |
ConfigSingleValue (const std::variant< std::string, int, float, bool > &value) | |
std::string | getString () const |
float | getFloat () const |
int | getInt () const |
bool | getBool () const |
bool | operator== (const ConfigSingleValue &other) const |
bool | operator!= (const ConfigSingleValue &other) const |
![]() | |
virtual | ~ConfigValue ()=default |
A single value in a HOCON configuration
|
default |
|
explicit |
Construct a ConfigSingleValue from a string, int, float, or bool
value | from which to construct the ConfigSingleValue |
bool ConfigSingleValue::getBool | ( | ) | const |
Get a bool value from a ConfigSingleValue
float ConfigSingleValue::getFloat | ( | ) | const |
Get a float value from a ConfigSingleValue
int ConfigSingleValue::getInt | ( | ) | const |
Get an integer value from a ConfigSingleValue
std::string ConfigSingleValue::getString | ( | ) | const |
Get a string value from a ConfigSingleValue
bool ConfigSingleValue::operator!= | ( | const ConfigSingleValue & | other | ) | const |
Compare two ConfigSingleValue for inequality
other | The ConfigSingleValue to compare |
bool ConfigSingleValue::operator== | ( | const ConfigSingleValue & | other | ) | const |
Compare two ConfigSingleValue for equality
other | The ConfigSingleValue to compare |