XJ music engine  1.9.6
In-game runtime engine for XJ music.
Public Member Functions | List of all members
XJ::ConfigSingleValue Class Referencefinal

#include <ConfigParser.h>

Inheritance diagram for XJ::ConfigSingleValue:
XJ::ConfigValue

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
 
- Public Member Functions inherited from XJ::ConfigValue
virtual ~ConfigValue ()=default
 

Detailed Description

A single value in a HOCON configuration

Constructor & Destructor Documentation

◆ ConfigSingleValue() [1/2]

XJ::ConfigSingleValue::ConfigSingleValue ( )
default

◆ ConfigSingleValue() [2/2]

ConfigSingleValue::ConfigSingleValue ( const std::variant< std::string, int, float, bool > &  value)
explicit

Construct a ConfigSingleValue from a string, int, float, or bool

Parameters
valuefrom which to construct the ConfigSingleValue

Member Function Documentation

◆ getBool()

bool ConfigSingleValue::getBool ( ) const

Get a bool value from a ConfigSingleValue

Returns
The bool value

◆ getFloat()

float ConfigSingleValue::getFloat ( ) const

Get a float value from a ConfigSingleValue

Returns
The float value

◆ getInt()

int ConfigSingleValue::getInt ( ) const

Get an integer value from a ConfigSingleValue

Returns
The integer value

◆ getString()

std::string ConfigSingleValue::getString ( ) const

Get a string value from a ConfigSingleValue

Returns
The string value

◆ operator!=()

bool ConfigSingleValue::operator!= ( const ConfigSingleValue other) const

Compare two ConfigSingleValue for inequality

Parameters
otherThe ConfigSingleValue to compare
Returns
true if inequal

◆ operator==()

bool ConfigSingleValue::operator== ( const ConfigSingleValue other) const

Compare two ConfigSingleValue for equality

Parameters
otherThe ConfigSingleValue to compare
Returns
true if equal

The documentation for this class was generated from the following files: