83 class ifstrstream :
public std::basic_istream<char, std::char_traits<char>> {
86 using char_type = char;
87 using int_type = std::char_traits<char>::int_type;
88 using pos_type = std::char_traits<char>::pos_type;
89 using off_type = std::char_traits<char>::off_type;
90 using traits_type = std::char_traits<char>;
92 using _Basic_ios = std::basic_ios<char, std::char_traits<char>>;
93 using _Base = std::basic_istream<char, std::char_traits<char>>;
94 using _Buf = std::basic_streambuf<char, std::char_traits<char>>;
95 using _StringBuf = std::basic_stringbuf<char, std::char_traits<char>>;
96 using _FileBuf = std::basic_filebuf<char, std::char_traits<char>>;
98 static const int FileNotExists = -1;
99 static const int FileIOError = -2;
113 std::ios_base::openmode mode = std::ios_base::in,
114 bool checkFilename =
false);
132 void open(
const char* filename,
133 std::ios_base::openmode mode = std::ios_base::in,
134 bool checkFilename =
false);
170 bool internalOpen(
const char* filename, std::ios_base::openmode mode,
173 _StringBuf internalStringBuf_;
174 _FileBuf internalFileBuf_;
void open(const char *filename, std::ios_base::openmode mode=std::ios_base::in, bool checkFilename=false)
Opens a file and associates a buffer with the specified file to perform the i/o operations (single mo...