OpenCOVER
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
18namespace opencover
19{
20class COVEREXPORT coVRIOReader : public virtual coVRIOBase
21{
22public:
24 virtual ~coVRIOReader();
25
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
98protected:
99 std::list<std::string> supportedReadFileTypes;
100 std::list<std::string> supportedReadFileExtensions;
101};
102}
103#endif // COVRIOREADER_H
Definition: ARToolKit.h:33
Definition: coVRIOBase.h:18
Definition: coVRIOReader.h:21
IOStatus
Definition: coVRIOReader.h:27
@ Loading
Definition: coVRIOReader.h:29
@ Finished
Definition: coVRIOReader.h:30
virtual bool unload(osg::Node *node)
virtual bool isReader() const
Definition: coVRIOReader.h:93
virtual IOStatus loadPart(const std::string &location, osg::Group *group=0)
virtual const std::list< std::string > & getSupportedReadFileExtensions() const
virtual bool inLoading() const =0
std::list< std::string > supportedReadFileTypes
Definition: coVRIOReader.h:99
virtual bool canLoadParts() const =0
virtual const std::list< std::string > & getSupportedReadMimeTypes() const
virtual osg::Node * getLoaded()
virtual osg::Node * load(const std::string &location, osg::Group *group=0)=0
virtual bool canUnload() const =0
std::list< std::string > supportedReadFileExtensions
Definition: coVRIOReader.h:100