![]() |
COGS
Computer Graphics Structures library
|
Definition of required interface for derived data blocks. More...
Public Member Functions | |
| DataBlock (DataBlockIndex index) | |
| virtual DataBlockType | GetType () const =0 |
| Returns unique identifier of class. Usually class name. | |
| virtual uint8_t | GetExportVersion () const =0 |
| Version of export function. | |
| virtual bool | IsImportVersionSupported (uint8_t version) const =0 |
| Checks if specified version is supported by import function. | |
| virtual bool | Import (std::istream &in_s, uint8_t version)=0 |
| Executes import form specified stream. | |
| virtual bool | Export (std::ostream &out_s)=0 |
| Executes export to specified stream. | |
Data Fields | |
| const DataBlockIndex | INDEX |
Definition of required interface for derived data blocks.