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

Represents string data. More...

#include <data.h>

Inheritance diagram for etm::data::String:
etm::ArgData

Public Member Functions

 String (const std::string &str) noexcept
 Construct a String from a string. 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 string data.

Constructor & Destructor Documentation

◆ String()

etm::data::String::String ( const std::string &  str)
noexcept

Construct a String from a string.

Parameters
[in]strThe string

Member Function Documentation

◆ getBool()

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

The best representation of the parameter as a boolean.

Returns
The parameter's bool value

Implements etm::ArgData.

◆ getFloat()

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

The best representation of the parameter as a float.

Returns
The parameter's float value

Implements etm::ArgData.

◆ getInt()

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