1 #ifndef IOUTILITIES_NATIVE_FILE_STREAM 2 #define IOUTILITIES_NATIVE_FILE_STREAM 6 #ifdef CPP_UTILITIES_USE_NATIVE_FILE_BUFFER 17 #ifdef CPP_UTILITIES_USE_NATIVE_FILE_BUFFER 28 void open(
const std::string &path, std::ios_base::openmode openMode);
29 void openFromFileDescriptor(
int fileDescriptor, std::ios_base::openmode openMode);
31 #if !defined(__ANDROID_API__) || !defined(__ANDROID_API_N__) || (__ANDROID_API__ < __ANDROID_API_N__) 35 static std::unique_ptr<std::basic_streambuf<char>> makeFileBuffer(
const std::string &path, ios_base::openmode openMode);
36 static std::unique_ptr<std::basic_streambuf<char>> makeFileBuffer(
int fileDescriptor, ios_base::openmode openMode);
37 #ifdef PLATFORM_WINDOWS 38 static std::unique_ptr<wchar_t[]> makeWidePath(
const std::string &path);
42 void setFileBuffer(std::unique_ptr<std::basic_streambuf<char>> buffer);
44 std::unique_ptr<std::basic_streambuf<char>> m_filebuf;
45 #if !defined(__ANDROID_API__) || !defined(__ANDROID_API_N__) || (__ANDROID_API__ < __ANDROID_API_N__) 59 openFromFileDescriptor(fileDescriptor, openMode);
62 #if !defined(__ANDROID_API__) || !defined(__ANDROID_API_N__) || (__ANDROID_API__ < __ANDROID_API_N__) 68 inline FILE NativeFileStream::fileHandle()
74 #else // CPP_UTILITIES_USE_NATIVE_FILE_BUFFER 82 #endif // IOUTILITIES_NATIVE_FILE_STREAM #define CPP_UTILITIES_EXPORT
std::fstream NativeFileStream
Contains utility classes helping to read and write streams.