BlankMat 0.1.0
Free open-source 3D texture creation application
Loading...
Searching...
No Matches
IWritable Class Referenceabstract
Inheritance diagram for IWritable:

Public Member Functions

virtual unsigned int WriteCount ()=0
 Returns the number of elements that will be written as part of the object.
 
virtual void Read (const std::string &scope, std::ifstream &file, bool clear)=0
 Reads this item from the file.
 
virtual void Write (std::ofstream &file)=0
 Writes this item to the file.
 
virtual void Clear ()=0
 Clears this object.
 

Member Function Documentation

◆ Clear()

◆ Read()

virtual void IWritable::Read ( const std::string &  scope,
std::ifstream &  file,
bool  clear 
)
pure virtual

Reads this item from the file.

Parameters
scopeScope to read in
fileFile to read from
clearWhether to overwrite the contents of the item

Implemented in IContainer< T >, IContainer< Camera >, IContainer< IEntity >, IContainer< Light >, IContainer< Material >, IContainer< Mesh >, IContainer< Shader >, IContainer< Texture >, and Node.

◆ Write()

virtual void IWritable::Write ( std::ofstream &  file)
pure virtual

◆ WriteCount()

virtual unsigned int IWritable::WriteCount ( )
pure virtual

Returns the number of elements that will be written as part of the object.

Returns
Number of elements to be written

Implemented in Node, IContainer< T >, IContainer< Camera >, IContainer< IEntity >, IContainer< Light >, IContainer< Material >, IContainer< Mesh >, IContainer< Shader >, and IContainer< Texture >.