00001
00002
00003
00004
00005
00006
00007
00008 #ifndef _SK_IO_DATAOUTPUT_
00009 #define _SK_IO_DATAOUTPUT_
00010
00011 #include <sk/util/Object.h>
00012 #include <vector>
00013 #include <string>
00014
00015 namespace sk {
00016 namespace io {
00017 class DataOutput
00018 : public virtual sk::util::Object
00019 {
00020 public:
00023 virtual void writeInt(int value) = 0;
00024
00027 virtual void writeLong(long long value) = 0;
00028
00031 virtual void writeShort(short value) = 0;
00032
00035 virtual void writeDouble(double value) = 0;
00036
00039 virtual void writeFloat(float value) = 0;
00040
00043 virtual void writeChar(char value) = 0;
00044
00046 virtual void writeChars(const std::string& value) = 0;
00047
00049 virtual void writeFully(const std::vector<char>& value) = 0;
00050 };
00051 }
00052 }
00053
00054 #endif