CommandCoderBase.h

Go to the documentation of this file.
00001 // -*- mode: C++ -*- 
00002 //
00003 // Copyright (C) 2006 Christian Holm Christensen <cholm@nbi.dk>
00004 //
00005 // This library is free software; you can redistribute it and/or
00006 // modify it under the terms of the GNU Lesser General Public License
00007 // as published by the Free Software Foundation; either version 2.1
00008 // of the License, or (at your option) any later version.
00009 //
00010 // This library is distributed in the hope that it will be useful,
00011 // but WITHOUT ANY WARRANTY; without even the implied warranty of
00012 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00013 // Lesser General Public License for more details.
00014 //
00015 // You should have received a copy of the GNU Lesser General Public
00016 // License along with this library; if not, write to the Free
00017 // Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
00018 // 02111-1307 USA
00019 //
00025 #ifndef RCUCONF_COMMANDCODERBASE_H
00026 #define RCUCONF_COMMANDCODERBASE_H
00027 #ifndef __VECTOR__
00028 # include <vector>
00029 #endif
00030 #ifndef __STRING__
00031 # include <string>
00032 #endif
00033 
00038 class CommandCoderBase
00039 {
00040 public:
00047   virtual int createDataBlock(char *target, int tag) = 0;
00052   virtual long int * getDataBlock() = 0;
00057   virtual std::vector<std::string> getError() = 0;
00062   static CommandCoderBase* createInstance() {return instance;};
00063 
00065   virtual ~CommandCoderBase() {}
00066 private:
00068   static CommandCoderBase* instance;
00069 };
00070 
00071 #endif
00072 //
00073 // EOF
00074 // 
Top of page Last update Fri Apr 27 01:54:15 2007
Copyright © 2004 Christian Holm Created by DoxyGen 1.3.5