00001 #ifndef OnlineFactory_H 00002 #define OnlineFactory_H 00003 00004 #include "OnlineLearning.h" 00005 #include "LearningFactory.h" 00006 00007 #include <string> 00008 00009 using std::string; 00010 00018 class OnlineFactory : public LearningFactory { 00019 00020 public: 00021 OnlineFactory( const string& name ) : LearningFactory( name ) {}; 00022 virtual LearningAlgorithm * build ( const TopolParams& arg ) 00023 { return new OnlineLearning( arg ); }; 00024 }; 00025 00026 #endif