solarpowerlog trunk
/home/tobi/workspace/solarpowerlog/src/Inverters/DummyInverter/CInverterFactoryDummy.cpp
Go to the documentation of this file.
00001 /*
00002  * CInverterFactoryDummy.cpp
00003  *
00004  *  Created on: 17.07.2011
00005  *      Author: tobi
00006  */
00007 
00008 #ifdef HAVE_CONFIG_H
00009 #include "config.h"
00010 #include "porting.h"
00011 #endif
00012 
00013 #ifdef HAVE_INV_DUMMY
00014 
00015 #include "Inverters/DummyInverter/CInverterFactoryDummy.h"
00016 #include "Inverters/DummyInverter/CInverterDummy.h"
00017 
00018 CInverterFactoryDummy::CInverterFactoryDummy()
00019 {
00020 }
00021 
00022 CInverterFactoryDummy::~CInverterFactoryDummy()
00023 {
00024 }
00025 
00026 IInverterBase *CInverterFactoryDummy::Factory(const string & type,
00027           const string & name, const string & configurationpath)
00028 {
00029      // As this is a dummy, we are not picky and return a object on any model...
00030      return new CInverterDummy(name, configurationpath);
00031 }
00032 
00033 const string & CInverterFactoryDummy::GetSupportedModels() const
00034 {
00035      return "Dummy-Inverter: accepts any model";
00036 }
00037 
00038 #endif /* HAVE_INV_DUMMY */