|
| IntegerData () |
|
| IntegerData (const std::string &name, int v) |
|
| IntegerData (int v) |
|
virtual GID::Type | GetGID () const override |
| Returns the Gorgon ID of this data object. More...
|
|
virtual void | SaveValue (Writer &writer) const override |
| Saves only the value of the data item to gorgon file. More...
|
|
virtual std::string | ToString () const override |
| Converts the contents of this data to string. More...
|
|
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 |
|
template<class T_ > |
T_ & | GetObject () const |
|
virtual void | Save (Writer &writer) const |
| Saves the data item with header information to gorgon file. More...
|
|
◆ IntegerData() [1/3]
◆ IntegerData() [2/3]
◆ IntegerData() [3/3]
◆ GetGID()
◆ Load()
DataItem * Load |
( |
std::weak_ptr< File > |
file, |
|
|
std::shared_ptr< Reader > |
reader, |
|
|
unsigned long |
totalsize |
|
) |
| |
|
static |
◆ SaveValue()
virtual void SaveValue |
( |
Writer & |
writer | ) |
const |
|
overridevirtual |
Saves only the value of the data item to gorgon file.
issizewritten controls whether the size of the object should be written for some data types (like blob and string)
Implements DataItem.
References DataImp< int >::value, and Writer::WriteInt32().
◆ ToString()
virtual std::string ToString |
( |
| ) |
const |
|
overridevirtual |
The documentation for this class was generated from the following files: