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

Represents floating point data. More...

#include <data.h>

Inheritance diagram for etm::data::Float:
etm::ArgData

Public Member Functions

 Float (float value) noexcept
 Constructs a new object. 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 floating point data.

Constructor & Destructor Documentation

◆ Float()

etm::data::Float::Float ( float  value)
noexcept

Constructs a new object.

Parameters
[in]valueThe data

Member Function Documentation

◆ getBool()

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

The best representation of the parameter as a boolean.

Returns
The parameter's bool value

Implements etm::ArgData.

◆ getFloat()

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

The best representation of the parameter as a float.

Returns
The parameter's float value

Implements etm::ArgData.

◆ getInt()

int etm::data::Float::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::Float::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: