00001
00002
00003
00004
00005
00006
00007
00008 #ifndef INPUTSTREAM_H
00009 #define INPUTSTREAM_H
00010
00011
00012
00013 #include "AnnotatorCommApi.h"
00014 #include "IOException.h"
00015
00016
00017
00018 namespace annotatorcomm
00019 {
00020
00024 class ANNCOMM_API InputStream
00025 {
00026 public:
00033 virtual uint32_t available() throw(IOException) = 0;
00034
00041 virtual int32_t read() throw(IOException) = 0;
00042
00053 virtual uint32_t read(uint8_t* buffer, uint32_t offset, uint32_t length) throw(IOException) = 0;
00054 };
00055
00056 }
00057
00058
00059
00060 #endif