OpenCOVER
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
coVRIOReader.h
Go to the documentation of this file.
1 /* This file is part of COVISE.
2 
3  You can use it under the terms of the GNU Lesser General Public License
4  version 2.1 or later, see lgpl-2.1.txt.
5 
6  * License: LGPL 2+ */
7 
8 #ifndef COVRIOREADER_H
9 #define COVRIOREADER_H
10 
11 #include <osg/Node>
12 
13 #include <list>
14 #include <string>
15 
16 #include <cover/coVRIOBase.h>
17 
18 namespace opencover
19 {
20 class COVEREXPORT coVRIOReader : public virtual coVRIOBase
21 {
22 public:
23  coVRIOReader();
24  virtual ~coVRIOReader();
25 
26  enum IOStatus
27  {
28  Idle = 0x00,
31  Failed
32  };
33 
41  virtual osg::Node *load(const std::string &location, osg::Group *group = 0) = 0;
42 
50  virtual bool canLoadParts() const = 0;
51 
56  virtual bool canUnload() const = 0;
57 
62  virtual bool inLoading() const = 0;
63 
75  virtual IOStatus loadPart(const std::string &location, osg::Group *group = 0);
76 
81  virtual osg::Node *getLoaded();
82 
88  virtual bool unload(osg::Node *node);
89 
90  virtual const std::list<std::string> &getSupportedReadMimeTypes() const;
91  virtual const std::list<std::string> &getSupportedReadFileExtensions() const;
92 
93  virtual bool isReader() const
94  {
95  return true;
96  }
97 
98 protected:
99  std::list<std::string> supportedReadFileTypes;
100  std::list<std::string> supportedReadFileExtensions;
101 };
102 }
103 #endif // COVRIOREADER_H
Definition: coVRIOReader.h:20
std::list< std::string > supportedReadFileTypes
Definition: coVRIOReader.h:99
Definition: coVRIOReader.h:29
std::list< std::string > supportedReadFileExtensions
Definition: coVRIOReader.h:100
virtual bool isReader() const
Definition: coVRIOReader.h:93
Definition: coVRIOReader.h:30
Definition: coVRIOBase.h:17
IOStatus
Definition: coVRIOReader.h:26