Etermal
Embeddable Terminal and shell for OpenGL
Public Member Functions | List of all members
etm::ArgData Class Referenceabstract

An abstract class representing a parameter of indeterminate data type. More...

#include <ArgData.h>

Inheritance diagram for etm::ArgData:
etm::data::Boolean etm::data::Float etm::data::Integer etm::data::String

Public Member Functions

virtual std::string getString () noexcept=0
 The best representation of the parameter as a string. More...
 
virtual bool getBool () noexcept=0
 The best representation of the parameter as a boolean. More...
 
virtual int getInt () noexcept=0
 The best representation of the parameter as an integer. More...
 
virtual float getFloat () noexcept=0
 The best representation of the parameter as a float. More...
 

Detailed Description

An abstract class representing a parameter of indeterminate data type.

See also
data
ArgFilter

Member Function Documentation

◆ getBool()

virtual bool etm::ArgData::getBool ( )
pure virtualnoexcept

The best representation of the parameter as a boolean.

Returns
The parameter's bool value

Implemented in etm::data::Float, etm::data::Integer, etm::data::Boolean, and etm::data::String.

◆ getFloat()

virtual float etm::ArgData::getFloat ( )
pure virtualnoexcept

The best representation of the parameter as a float.

Returns
The parameter's float value

Implemented in etm::data::Float, etm::data::Integer, etm::data::Boolean, and etm::data::String.

◆ getInt()

virtual int etm::ArgData::getInt ( )
pure virtualnoexcept

The best representation of the parameter as an integer.

Returns
The parameter's int value

Implemented in etm::data::Float, etm::data::Integer, etm::data::Boolean, and etm::data::String.

◆ getString()

virtual std::string etm::ArgData::getString ( )
pure virtualnoexcept

The best representation of the parameter as a string.

Returns
The parameter's string value

Implemented in etm::data::Float, etm::data::Integer, etm::data::Boolean, and etm::data::String.


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