String struct

Wrapper class for string.

Base classes

struct Generic
Generic is used to capture type string and the following primitives: double, integer, bool. Once captured, it has methods to convert to the appropriate type. Currently only getDouble() and getString() are implemented. Generic is not instantiable and is used for polymorphic behaviors. Only sub-classes can be constructed.

Constructors, destructors, conversion operators

String(std::string data)
Construct a new String object.

Public functions

auto type() const -> GenericType virtual
Returns data type.

Public variables

std::string data

Function documentation

String::String(std::string data)

Construct a new String object.

Parameters
data

GenericType String::type() const virtual

Returns data type.

Returns enum STRING.