OSSIM - Open Source Software Image Map  Version 1.9.0 (20180803)
ossimWebResponse.cpp
Go to the documentation of this file.
2 
3 RTTI_DEF1(ossimWebResponse, "ossimWebResponse" , ossimObject);
4 
5 
7 {
8  std::istream* input = getInputStream();
9 
10  if(input)
11  {
12  input->seekg(0, std::ios::beg);
13  char buf[1024];
14  while(!input->eof()&&input->good())
15  {
16  input->read(buf, 1024);
17  int gcount = input->gcount();
18  if(gcount)
19  {
20  buffer.insert(buffer.end(), buf , buf + gcount);
21  }
22  }
23  }
24 }
RTTI_DEF1(ossimWebResponse, "ossimWebResponse", ossimObject)
virtual std::istream * getInputStream()=0
This might have to change in the future if we start doing other protocols such as ftp scp...
std::basic_istream< char > istream
Base class for char input streams.
Definition: ossimIosFwd.h:20
void copyAllDataFromInputStream(ByteBuffer &buffer)
std::vector< char > ByteBuffer