Radium Engine
1.5.0
|
#include <IO/deprecated/FileManager.hpp>
Public Types | |
enum | LogEntryType { LogEntry_Normal , LogEntry_Warning , LogEntry_Error } |
ENUM. | |
Public Member Functions | |
FileManager ()=default | |
CONSTRUCTOR. | |
virtual | ~FileManager ()=default |
DESTRUCTOR. | |
bool | load (const std::string &filename, DATA &data, const bool SAVE_LOG_FILE=false) |
INTERFACE. | |
bool | save (const std::string &filename, const DATA &data, const bool SAVE_LOG_FILE=false) |
std::string | log () const |
LOG. | |
Protected Member Functions | |
void | addLogEntry (const std::string &text) |
LOG. | |
void | addLogWarningEntry (const std::string &text) |
void | addLogErrorEntry (const std::string &text) |
void | addLogEntry (const std::string &text, const LogEntryType type) |
virtual std::string | fileExtension () const =0 |
INTERFACE. | |
virtual bool | importData (std::istream &file, DATA &data)=0 |
virtual bool | exportData (std::ostream &file, const DATA &data)=0 |
The class FileManager gives the base common interface for handling loading/storing data from/to files.
Definition at line 18 of file FileManager.hpp.