Gorgon Game Engine
TextData Class Reference

Stores text data for data exchange. More...

Inheritance diagram for TextData:
[legend]

Public Member Functions

 TextData (std::string text="")
 
std::string GetText () const
 Returns the text in this data. More...
 
virtual std::string Name () const override
 Should return the name of the data type. More...
 
void SetText (std::string value)
 Changes the text in this data. More...
 
virtual std::string Text () const override
 Should return the textual representation of the data. A datatype can simply return its typename. More...
 
virtual Resource::GID::Type Type () const override
 Should return the type id of the data. More...
 
- Public Member Functions inherited from ExchangeData
virtual ~ExchangeData ()
 

Detailed Description

Stores text data for data exchange.

Constructor & Destructor Documentation

◆ TextData()

TextData ( std::string  text = "")
explicit

Member Function Documentation

◆ GetText()

std::string GetText ( ) const

Returns the text in this data.

◆ Name()

virtual std::string Name ( ) const
overridevirtual

Should return the name of the data type.

Implements ExchangeData.

◆ SetText()

void SetText ( std::string  value)

Changes the text in this data.

◆ Text()

virtual std::string Text ( ) const
overridevirtual

Should return the textual representation of the data. A datatype can simply return its typename.

Reimplemented from ExchangeData.

◆ Type()

virtual Resource::GID::Type Type ( ) const
overridevirtual

Should return the type id of the data.

Implements ExchangeData.

References Gorgon::Resource::GID::Text.


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