owlps/owlps-positioning/src/outputfilemedium.hh

23 lines
496 B
C++

#ifndef _OWLPS_POSITIONING_OUTPUTFILEMEDIUM_HH_
#define _OWLPS_POSITIONING_OUTPUTFILEMEDIUM_HH_
#include <string>
#include <fstream>
/// Super-class of all classes that write things to a file
class OutputFileMedium
{
private:
std::string file_name ;
std::ofstream file ;
protected:
bool write_string_to_file(const std::string &text) ;
public:
OutputFileMedium(const std::string &_file_name) ;
virtual ~OutputFileMedium(void) ;
} ;
#endif // _OWLPS_POSITIONING_OUTPUTFILEMEDIUM_HH_