00001 #ifndef HELPMODULE_HPP_
00002 #define HELPMODULE_HPP_
00003
00004 #include "../OptFrameModule.hpp"
00005
00006 template<class R, class M>
00007 class HelpModule : public OptFrameModule<R,M>
00008 {
00009 public:
00010 string id()
00011 {
00012 return "help";
00013 }
00014 string usage()
00015 {
00016 return "help";
00017 }
00018
00019 void run(vector<OptFrameModule<R,M>*> all_modules, HeuristicFactory<R,M>*, map<string,string>* dictionary, string)
00020 {
00021 cout << "Available modules are:" << endl;
00022 for(int i=0;i<all_modules.size();i++)
00023 cout << all_modules[i]->id() << endl;
00024 cout << "Type 'usage module_name' to learn how to use the module." << endl;
00025 }
00026
00027 };
00028
00029 #endif