/** * @file TextFile.h * @date created on Jan 13, 2010 * @author Oliver Rudolph */ #ifndef TEXTFILE_H_ #define TEXTFILE_H_ // Dr.Etchy #include "../../include/common.h" #include "File.h" #include "CompressionType.h" // MS Windows DLL handling #if defined(_WIN32) || defined(__WIN32__) || defined(WIN32) #if _MSC_VER > 1000 #pragma once #endif #if defined(IO_DLL) #define DLLSPEC __declspec(dllexport) #else #define DLLSPEC __declspec(dllimport) #endif #else // for other OS #define DLLSPEC #endif namespace dretchy { namespace io { class DLLSPEC TextFile : public File { private: CompressionType compression_; public: TextFile(const text_t &filename); TextFile(const text_t &filename, const text_t &content); TextFile(const text_t &filename, const CompressionType zipper); TextFile(const text_t &filename, const text_t &content, const CompressionType zipper); TextFile(const text_t &filename, const DeviceDataType type); TextFile(const text_t &filename, const DeviceDataType type, const text_t &content); TextFile(const text_t &filename, const DeviceDataType type, const CompressionType zipper); TextFile(const text_t &filename, const DeviceDataType type, const text_t &content, const CompressionType zipper); void read(); void write() const; }; } // namespace io } // namespace dretchy #ifdef DLLSPEC #undef DLLSPEC #endif #endif /* TEXTFILE_H_ */