Gorgon Game Engine
ExchangeData Class Referenceabstract

Base object for data to be exchanged. More...

Inheritance diagram for ExchangeData:
[legend]

Public Member Functions

virtual ~ExchangeData ()
 
virtual std::string Name () const =0
 Should return the name of the data type. More...
 
virtual std::string Text () const
 Should return the textual representation of the data. A datatype can simply return its typename. More...
 
virtual Resource::GID::Type Type () const =0
 Should return the type id of the data. More...
 

Detailed Description

Base object for data to be exchanged.

This object should be type casted to derived type to access stored data. Name could be used to show the data type.

Constructor & Destructor Documentation

◆ ~ExchangeData()

virtual ~ExchangeData ( )
virtual

Member Function Documentation

◆ Name()

virtual std::string Name ( ) const
pure virtual

Should return the name of the data type.

Implemented in FileData, and TextData.

◆ Text()

virtual std::string Text ( ) const
virtual

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

Reimplemented in FileData, and TextData.

References ExchangeData::Name().

◆ Type()

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

Should return the type id of the data.

Implemented in FileData, and TextData.


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