comparison src/Support/ModuleTree.h @ 120:89e4facffd93

- Module tree
author tomwalters
date Sun, 17 Oct 2010 02:42:12 +0000
parents 077c7ecc2d5f
children 3cdaa81c3aca
comparison
equal deleted inserted replaced
119:9d880fb93c39 120:89e4facffd93
26 26
27 #include <boost/scoped_ptr.hpp> 27 #include <boost/scoped_ptr.hpp>
28 #include <hash_map> 28 #include <hash_map>
29 #include <string> 29 #include <string>
30 30
31 #include "Support/Parameters.h"
32
33 namespace aimc { 31 namespace aimc {
34 using std::string; 32 using std::string;
33 class Module;
34 class Parameters;
35
35 class ModuleTree { 36 class ModuleTree {
36 public: 37 public:
37 bool ParseConfigFile(const string &filename); 38 bool ParseConfigFile(const string &filename);
38 bool ParseConfigText(const string &config_text); 39 bool ParseConfigText(const string &config_text);
39 string GetFullConfig() 40 string GetFullConfig()
42 } 43 }
43 string output_filename_prefix() { 44 string output_filename_prefix() {
44 return output_filename_prefix_; 45 return output_filename_prefix_;
45 } 46 }
46 private: 47 private:
47 Paramters parameters_; 48 Paramters config_;
48 string output_filename_prefix_; 49 string output_filename_prefix_;
49 hash_map<string, scoped_ptr<Module> > modules_; 50 hash_map<string, scoped_ptr<Module> > modules_;
51 hash_map<string, scoped_ptr<Parameters> > parameters_;
50 string root_name_; 52 string root_name_;
51 DISALLOW_COPY_AND_ASSIGN(ModuleTree); 53 DISALLOW_COPY_AND_ASSIGN(ModuleTree);
52 }; 54 };
53 } // namespace aimc 55 } // namespace aimc