00001 #ifndef COMMANDCODERBASE_HH 00002 #define COMMANDCODERBASE_HH 00003 00004 #include <vector> 00005 #include <string> 00006 00010 class CommandCoderBase 00011 { 00012 public: 00019 virtual int createDataBlock(char *target, int tag) = 0; 00024 virtual long int * getDataBlock() = 0; 00029 virtual std::vector<std::string> getError() = 0; 00034 static CommandCoderBase* createInstance() {return instance;}; 00035 00036 private: 00038 static CommandCoderBase* instance; 00039 }; 00040 #endif