|
using | LoaderFn = std::function< DataItem *(std::weak_ptr< File > file, std::shared_ptr< Reader > reader, unsigned long totalsize)> |
|
|
virtual | ~DataItem () |
|
template<class T_ > |
T_ | Get () const |
| Returns the contents of this data item to the requested type; use GetObject in order to get resource objects. More...
|
|
template<> |
int | Get () const |
|
template<> |
float | Get () const |
|
virtual GID::Type | GetGID () const =0 |
| Returns the Gorgon ID of this data object. More...
|
|
template<class T_ > |
T_ & | GetObject () const |
|
virtual void | Save (Writer &writer) const |
| Saves the data item with header information to gorgon file. More...
|
|
virtual void | SaveValue (Writer &writer) const =0 |
| Saves only the value of the data item to gorgon file. More...
|
|
virtual std::string | ToString () const =0 |
| Converts the contents of this data to string. More...
|
|
◆ LoaderFn
◆ ~DataItem()
◆ Get() [1/3]
Returns the contents of this data item to the requested type; use GetObject in order to get resource objects.
◆ Get() [2/3]
◆ Get() [3/3]
◆ GetGID()
◆ GetObject()
◆ InitializeLoaders()
void InitializeLoaders |
( |
| ) |
|
|
static |
This function will initialize data loaders.
References Gorgon::Resource::GID::Data_Bounds, Gorgon::Resource::GID::Data_Float, Gorgon::Resource::GID::Data_Int, Gorgon::Resource::GID::Data_Margin, Gorgon::Resource::GID::Data_Object, Gorgon::Resource::GID::Data_Point, Gorgon::Resource::GID::Data_Pointf, Gorgon::Resource::GID::Data_Rectangle, Gorgon::Resource::GID::Data_Size, Gorgon::Resource::GID::Data_Text, DataItem::DataLoaders, IntegerData::Load(), FloatData::Load(), TextData::Load(), PointData::Load(), PointfData::Load(), SizeData::Load(), RectangleData::Load(), BoundsData::Load(), MarginData::Load(), and ObjectData::Load().
◆ Save()
virtual void Save |
( |
Writer & |
writer | ) |
const |
|
virtual |
◆ SaveValue()
virtual void SaveValue |
( |
Writer & |
writer | ) |
const |
|
pure virtual |
◆ ToString()
virtual std::string ToString |
( |
| ) |
const |
|
pure virtual |
◆ DataLoaders
Data loaders that all data containing classes would use to load their children.
◆ Name
The name of the data item.
The documentation for this class was generated from the following files: