00001
00002
00003
00004
00005
00006
00007
00008 #ifndef FTD2XXINPUTSTREAM_H
00009 #define FTD2XXINPUTSTREAM_H
00010
00011
00012
00013 #include "AnnotatorCommApi.h"
00014 #include "FTD2XX.h"
00015 #include "InputStream.h"
00016
00017
00018
00019 namespace annotatorcomm
00020 {
00021
00022 namespace ftd2xx
00023 {
00024
00028 class ANNCOMM_API FTD2XXInputStream : public InputStream
00029 {
00030 public:
00036 FTD2XXInputStream(FTD2XX* ftd2xx);
00037
00041 virtual ~FTD2XXInputStream();
00042
00049 virtual uint32_t available() throw(IOException);
00050
00057 virtual int32_t read() throw(IOException);
00058
00069 virtual uint32_t read(uint8_t* buffer, uint32_t offset, uint32_t length) throw(IOException);
00070
00071 private:
00075 FTD2XX* ftd2xx;
00076 };
00077
00078 }
00079
00080 }
00081
00082
00083
00084 #endif