1 #ifndef IOUTILITIES_NATIVE_FILE_STREAM 2 #define IOUTILITIES_NATIVE_FILE_STREAM 12 # include <ext/stdio_filebuf.h> 17 #if !defined(PLATFORM_MINGW) || !defined(CPP_UTILITIES_USE_NATIVE_FILE_BUFFER) 30 void open(
const std::string &path, std::ios_base::openmode flags);
34 std::unique_ptr<__gnu_cxx::stdio_filebuf<char> > m_filebuf;
35 std::__c_file m_cfile;
38 inline bool NativeFileStream::is_open()
const 40 return m_filebuf && m_filebuf->is_open();
47 #endif // IOUTILITIES_NATIVE_FILE_STREAM Contains utility classes helping to read and write streams.
std::fstream NativeFileStream
#define CPP_UTILITIES_EXPORT
Marks the symbol to be exported by the c++utilities library.