OSSIM - Open Source Software Image Map  Version 1.9.0 (20180803)
ossimStreamReaderInterface.h
Go to the documentation of this file.
1 //----------------------------------------------------------------------------
2 // File: ossimStreamReaderInterface.h
3 //
4 // License: MIT
5 //
6 // See LICENSE.txt file in the top level directory for more details.
7 //
8 // Description: Class interface ossimMetadataInterface.
9 //
10 // Has pure virtual "open" method that derived classes must
11 // implement to be concrete.
12 //
13 //----------------------------------------------------------------------------
14 // $Id$
15 
16 #ifndef ossimStreamReaderInterface_HEADER
17 #define ossimStreamReaderInterface_HEADER 1
18 
19 #include <ossim/base/ossimIosFwd.h>
20 #include <memory>
21 #include <string>
22 
25 {
26 public:
27 
30 
33 
40  virtual bool open( std::shared_ptr<ossim::istream>& str,
41  const std::string& connectionString ) = 0;
42 
43 #if 0
44  virtual bool open( std::istream* str,
45  std::streamoff restartPosition,
46  bool youOwnIt ) = 0;
47 #endif
48 };
49 
50 #endif /* #ifndef ossimStreamReaderInterface_HEADER */
virtual ~ossimStreamReaderInterface()
virtual destructor.
ossimStreamReaderInterface()
default constructor
std::basic_istream< char > istream
Base class for char input streams.
Definition: ossimIosFwd.h:20
virtual bool open(std::shared_ptr< ossim::istream > &str, const std::string &connectionString)=0
Pure virtual open method that takes a stream.