Radium Engine  1.5.0
Ra::IO::FileManager< DATA, Binary > Class Template Referenceabstract

#include <IO/deprecated/FileManager.hpp>

+ Inheritance diagram for Ra::IO::FileManager< DATA, Binary >:
+ Collaboration diagram for Ra::IO::FileManager< DATA, Binary >:

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
 

Detailed Description

template<typename DATA, bool Binary = false>
class Ra::IO::FileManager< DATA, Binary >

The class FileManager gives the base common interface for handling loading/storing data from/to files.

Warning
will be removed once integration of file saving is done in new IO, see https://github.com/STORM-IRIT/Radium-Engine/issues/362
Todo:
reimplement in IO
Deprecated:
see https://github.com/STORM-IRIT/Radium-Engine/issues/362

Definition at line 18 of file FileManager.hpp.


The documentation for this class was generated from the following file: