OpenCOVER
coVRIOBase.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 COVRIOBASE_H
9#define COVRIOBASE_H
10
11#include <string>
12
13#include <util/coExport.h>
14
15namespace opencover
16{
17class COVEREXPORT coVRIOBase
18{
19public:
21 virtual ~coVRIOBase();
22
23 float getIOProgress() const;
24
28 virtual bool abortIO() = 0;
29
34 virtual std::string getIOHandlerName() const = 0;
35
40 virtual bool isReader() const
41 {
42 return false;
43 }
44
49 virtual bool isWriter() const
50 {
51 return false;
52 }
53
54protected:
55 void setIOProgress(float progress);
56
57private:
58 float progress;
59};
60}
61#endif // COVRIOBASE_H
Definition: ARToolKit.h:33
Definition: coVRIOBase.h:18
virtual bool abortIO()=0
virtual bool isWriter() const
Definition: coVRIOBase.h:49
float getIOProgress() const
void setIOProgress(float progress)
virtual std::string getIOHandlerName() const =0
virtual bool isReader() const
Definition: coVRIOBase.h:40