#include <cfile.h>

Public Member Functions | |
| virtual | ~CFile () |
| Default dtor (virtual). | |
| virtual void | read (std::ifstream &in)=0 |
| Pure virtual method (interface). Should read data from filestream. | |
| virtual void | write (std::ofstream &out)=0 |
| Pure virtual method (interface). Should write data to filestream. | |
| virtual void | callFunc (const std::string &func, const std::list< std::string > ¶ms)=0 |
| Pure virtual method (interface). Should delegate the function and its parameters to the correct internal method. | |
| bool | supportsType (const std::string &type) |
| Check if filetype is supported by this implementation. | |
Protected Attributes | |
| std::set< std::string > | m_types |
Classes | |
| class | FileError |
| Exception thrown by implemententations of CFile. More... | |
In order for CScriptparser to determine which instance of CFile supports which filetype, every implemententation need to insert their filetypes to the member m_types in their constructor.
On error throw FileError.
| virtual CFile::~CFile | ( | ) | [inline, virtual] |
Default dtor (virtual).
| - |
| none |
| virtual void CFile::read | ( | std::ifstream & | in | ) | [pure virtual] |
Pure virtual method (interface). Should read data from filestream.
| in | filestream to read data from |
| FileError |
Implemented in CBitmap, CPixmap, and CWindowsBitmap.
| virtual void CFile::write | ( | std::ofstream & | out | ) | [pure virtual] |
Pure virtual method (interface). Should write data to filestream.
| out | filestream to write data to |
| FileError |
Implemented in CBitmap, CPixmap, and CWindowsBitmap.
| virtual void CFile::callFunc | ( | const std::string & | func, | |
| const std::list< std::string > & | params | |||
| ) | [pure virtual] |
| bool CFile::supportsType | ( | const std::string & | type | ) | [inline] |
Check if filetype is supported by this implementation.
| type | filetype |
| none |
std::set<std::string> CFile::m_types [protected] |
set of filetypes suppported by this implementation
1.5.3