Etermal
Embeddable Terminal and shell for OpenGL
Public Member Functions | List of all members
etm::data::Boolean Class Reference

Represents boolean data. More...

#include <data.h>

Inheritance diagram for etm::data::Boolean:
etm::ArgData

Public Member Functions

 Boolean (bool flag) noexcept
 Construct a Boolean from a boolean flag. More...
 
std::string getString () noexcept override
 The best representation of the parameter as a string. More...
 
bool getBool () noexcept override
 The best representation of the parameter as a boolean. More...
 
int getInt () noexcept override
 The best representation of the parameter as an integer. More...
 
float getFloat () noexcept override
 The best representation of the parameter as a float. More...
 

Detailed Description

Represents boolean data.

Constructor & Destructor Documentation

◆ Boolean()

etm::data::Boolean::Boolean ( bool  flag)
noexcept

Construct a Boolean from a boolean flag.

Parameters
[in]flagThe flag

Member Function Documentation

◆ getBool()

bool etm::data::Boolean::getBool ( )
overridevirtualnoexcept

The best representation of the parameter as a boolean.

Returns
The parameter's bool value

Implements etm::ArgData.

◆ getFloat()

float etm::data::Boolean::getFloat ( )
overridevirtualnoexcept

The best representation of the parameter as a float.

Returns
The parameter's float value

Implements etm::ArgData.

◆ getInt()

int etm::data::Boolean::getInt ( )
overridevirtualnoexcept

The best representation of the parameter as an integer.

Returns
The parameter's int value

Implements etm::ArgData.

◆ getString()

std::string etm::data::Boolean::getString ( )
overridevirtualnoexcept

The best representation of the parameter as a string.

Returns
The parameter's string value

Implements etm::ArgData.


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