OSSIM - Open Source Software Image Map  Version 1.9.0 (20180803)
ossimStreamFactoryBase.h
Go to the documentation of this file.
1 //*******************************************************************
2 // Copyright (C) 2005 Garrett Potts
3 //
4 // License: MIT
5 //
6 // See LICENSE.txt file in the top level directory for more details.
7 //
8 // Author: Garrett Potts
9 //
10 //*******************************************************************
11 // $Id$
12 
13 #ifndef ossimStreamFactoryBase_HEADER
14 #define ossimStreamFactoryBase_HEADER 1
15 
19 #include <ossim/base/ossimRefPtr.h>
20 #include <iosfwd>
21 #include <memory>
22 #include <string>
23 
24 class ossimFilename;
25 
26 namespace ossim
27 {
29  {
30  public:
31  virtual ~StreamFactoryBase(){}
32 
33  virtual std::shared_ptr<ossim::istream>
34  createIstream(const std::string& connectionString,
35  const ossimKeywordlist& options,
36  std::ios_base::openmode mode) const=0;
37 
38  virtual std::shared_ptr<ossim::ostream>
39  createOstream(const std::string& connectionString,
40  const ossimKeywordlist& options,
41  std::ios_base::openmode mode) const=0;
42 
43  virtual std::shared_ptr<ossim::iostream>
44  createIOstream(const std::string& connectionString,
45  const ossimKeywordlist& options,
46  std::ios_base::openmode mode) const=0;
47 
59  virtual bool exists(const std::string& connectionString,
60  bool& continueFlag) const = 0;
61  };
62 }
63 
64 #endif
Represents serializable keyword/value map.
This code was derived from https://gist.github.com/mshockwave.
Definition: Barrier.h:8
#define OSSIM_DLL