|
solarpowerlog trunk
|
00001 /* 00002 * IFormater.h 00003 * 00004 * Created on: Jan 4, 2010 00005 * Author: tobi 00006 */ 00007 00008 #ifndef IFORMATER_H_ 00009 #define IFORMATER_H_ 00010 00011 #include <string> 00012 #include <vector> 00013 00020 class IFormater 00021 { 00022 public: 00023 static IFormater* Factory(const std::string &spec); 00024 00035 virtual bool Format(const std::string &what, std::string &store, 00036 const std::vector<std::string> ¶meters) = 0; 00037 00038 virtual ~IFormater() 00039 { 00040 } 00041 00042 protected: 00043 IFormater() 00044 { 00045 } 00046 00047 }; 00048 00049 #endif /* IFORMATER_H_ */