|
solarpowerlog trunk
|
00001 /* 00002 * IFormater.cpp 00003 * 00004 * Created on: Jan 4, 2010 00005 * Author: tobi 00006 */ 00007 00008 #include "DataFilters/HTMLWriter/formatter/IFormater.h" 00009 #include "DataFilters/HTMLWriter/formatter/CFormaterWebRootStrip.h" 00010 #include "DataFilters/HTMLWriter/formatter/CFormatterSearchCSVEntry.h" 00011 00012 IFormater *IFormater::Factory(const std::string &spec) 00013 { 00014 if (spec == "stripwebroot") { 00015 return new CFormaterWebRootStrip(); 00016 } 00017 00018 if (spec == "searchcvsentry") { 00019 return new CFormatterSearchCSVEntry(); 00020 } 00021 return NULL; 00022 }