00001
00002
00003
00004
00005
00006
00007
00008 #ifndef _SK_IO_DATAINPUT_
00009 #define _SK_IO_DATAINPUT_
00010
00011 #include <sk/util/Object.h>
00012 #include <vector>
00013
00014 namespace sk {
00015 namespace io {
00016 class DataInput
00017 : public virtual sk::util::Object
00018 {
00019 public:
00021 virtual int readInt() = 0;
00022
00024 virtual long long readLong() = 0;
00025
00027 virtual short readShort() = 0;
00028
00030 virtual char readChar() = 0;
00031
00033 virtual double readDouble() = 0;
00034
00036 virtual float readFloat() = 0;
00037
00040 virtual int skipBytes(int number) = 0;
00041
00043 virtual const sk::util::String readLine() = 0;
00044
00048 virtual std::vector<char>& readFully(std::vector<char>& buffer, int number) = 0;
00049
00052 virtual std::vector<char> readFully(int number) = 0;
00053 };
00054 }
00055 }
00056
00057 #endif