36 std::basic_istream<char>(sb)
54 std::basic_ostream<char>(sb)
61 :
std::basic_iostream<char>(sb)
80 theBuf(
std::ios::in|
std::ios::out)
82 ossimIOStream::init(&
theBuf);
110 std::streampos pos = thisPtr->tellg();
111 thisPtr->seekg(0, std::ios::end);
112 std::streampos endPos = thisPtr->tellg();
113 thisPtr->seekg(pos, std::ios::beg);
121 theBuf(inputBuf.c_str(),
std::ios::in)
123 ossimIStream::init(&
theBuf);
138 std::streampos pos = thisPtr->tellg();
139 thisPtr->seekg(0, std::ios::end);
140 std::streampos endPos = thisPtr->tellg();
141 thisPtr->seekg(pos, std::ios::beg);
160 theBuf(
std::ios::out)
162 ossimOStream::init(&
theBuf);
177 std::streampos pos = thisPtr->tellp();
178 thisPtr->seekp(0, std::ios::end);
179 std::streampos endPos = thisPtr->tellp();
180 thisPtr->seekp(pos, std::ios::beg);
204 std::ios_base::openmode mode)
216 std::basic_ifstream<char>()
221 std::basic_ifstream<char>(file, mode)
231 std::basic_ofstream<char>()
237 std::basic_ofstream<char>(name, mode)
247 std::basic_ifstream<char>(theFile =
std::_Fiopen(pFilename, mode, prot))
261 _fseeki64(theFile, off, way);
267 const off_type off(pos);
268 const fpos_t fpos = pos.seekpos();
269 seekg64(off - _FPOSOFF(fpos) + fpos, way);
273 ios_base::seekdir way)
288 ios_base::seekdir way)
302 std::ios_base::openmode mode,
304 std::basic_ofstream<char>(pFilename, mode, prot)
319 const pos_type pos = tellp();
320 const off_type off(pos);
321 const fpos_t fpos = pos.seekpos();
322 return off - _FPOSOFF(fpos) + fpos;
328 std::ios_base::openmode mode,
330 std::basic_ifstream<char>(pFilename, mode)
344 std::basic_ifstream<char>::seekg(off, way);
348 off_type off, ios_base::seekdir way)
354 std::ios_base::openmode mode,
356 std::basic_ofstream<char>(pFilename, mode)
380 while(!done&&!in.fail())
383 if(in.gcount() < 1024)
389 out.write(buf, in.gcount());
399 while(!done&&!in.fail())
402 if(in.gcount() < 1024)
408 out.write(buf, in.gcount());
420 while(!done&&!in.fail())
423 if(in.gcount() < 1024)
429 out.write(buf, in.gcount());
439 while(!done&&!in.fail())
442 if(in.gcount() < 1024)
448 out.write(buf, in.gcount());
460 while(!done&&!in.fail())
463 if(in.gcount() < 1024)
469 out.write(buf, in.gcount());
479 while(!done&&!in.fail())
482 if(in.gcount() < 1024)
488 out.write(buf, in.gcount());
498 while(!done&&!in.fail())
501 if(in.gcount() < 1024)
507 out.write(buf, in.gcount());
519 while(!done&&!in.fail())
522 if(in.gcount() < 1024)
528 out.write(buf, in.gcount());
virtual void open(const char *, int)
std::basic_fstream< char > fstream
Class for char mixed input and output file streams.
ossimIFStream64(const char *pFilename, std::ios_base::openmode mode=ios_base::in, long prot=0666)
virtual ~ossimIMemoryStream()
ossimIStream(std::streambuf *sb)
virtual ~ossimOFStream64()
ossimOStream(std::streambuf *sb)
virtual ~ossimIFStream64()
virtual ~ossimIOFStream()
ossimIMemoryStream(const ossimString &inputBuf)
void operator<<(ossimOStream &out, ossimIStream &in)
virtual ~ossimIOMemoryStream()
ossim_uint64 size() const
virtual void open(const char *, int)
unsigned long long ossim_uint64
void seekg64(off_type off, ios_base::seekdir way)
std::basic_istream< char > istream
Base class for char input streams.
ossim_uint64 size() const
ossimOFStream64(const char *pFilename, std::ios_base::openmode mode=ios_base::out, long prot=0666)
void operator>>(ossimIStream &in, ossimOStream &out)
ossim_uint64 size() const
virtual void open(const char *, int)
virtual ~ossimOMemoryStream()
ossimIOStream(std::streambuf *sb)