ManaPlus
Public Types | Public Member Functions
VariableData Class Referenceabstract

#include <variabledata.h>

Inheritance diagram for VariableData:
BoolData FloatData IntData StringData

Public Types

enum  DataType {
  DATA_NONE = 0 , DATA_INT , DATA_STRING , DATA_FLOAT ,
  DATA_BOOL
}
 

Public Member Functions

 VariableData ()
 
virtual ~VariableData ()
 
virtual int getType () const =0
 

Detailed Description

Definition at line 30 of file variabledata.h.

Member Enumeration Documentation

◆ DataType

Enumerator
DATA_NONE 
DATA_INT 
DATA_STRING 
DATA_FLOAT 
DATA_BOOL 

Definition at line 33 of file variabledata.h.

34  {
35  DATA_NONE = 0,
36  DATA_INT,
38  DATA_FLOAT,
39  DATA_BOOL
40  };

Constructor & Destructor Documentation

◆ VariableData()

VariableData::VariableData ( )
inline

Definition at line 42 of file variabledata.h.

43  { }

◆ ~VariableData()

virtual VariableData::~VariableData ( )
inlinevirtual

Definition at line 47 of file variabledata.h.

48  {}

Member Function Documentation

◆ getType()

virtual int VariableData::getType ( ) const
pure virtual

Implemented in BoolData, FloatData, StringData, and IntData.


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