ManaPlus
Public Member Functions | Private Attributes
StringData Class Reference

#include <variabledata.h>

Inheritance diagram for StringData:
VariableData

Public Member Functions

 StringData (const std::string &value)
 
const std::string & getData () const
 
int getType () const
 
- Public Member Functions inherited from VariableData
 VariableData ()
 
virtual ~VariableData ()
 

Private Attributes

std::string mData
 

Additional Inherited Members

- Public Types inherited from VariableData
enum  DataType {
  DATA_NONE = 0 , DATA_INT , DATA_STRING , DATA_FLOAT ,
  DATA_BOOL
}
 

Detailed Description

Definition at line 73 of file variabledata.h.

Constructor & Destructor Documentation

◆ StringData()

StringData::StringData ( const std::string &  value)
inlineexplicit

Definition at line 76 of file variabledata.h.

76  :
77  VariableData(),
78  mData(value)
79  { }
std::string mData
Definition: variabledata.h:90

Member Function Documentation

◆ getData()

const std::string& StringData::getData ( ) const
inline

Definition at line 83 of file variabledata.h.

84  { return mData; }

References PlayerInfo::mData.

◆ getType()

int StringData::getType ( ) const
inlinevirtual

Implements VariableData.

Definition at line 86 of file variabledata.h.

87  { return DATA_STRING; }

References VariableData::DATA_STRING.

Field Documentation

◆ mData

std::string StringData::mData
private

Definition at line 90 of file variabledata.h.


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