Mercurial > hg > aimc
comparison src/Support/ModuleTree.h @ 114:077c7ecc2d5f
- Module tree support - ongoing work
author | tomwalters |
---|---|
date | Tue, 28 Sep 2010 23:52:31 +0000 |
parents | bee31e7ebf4b |
children | 89e4facffd93 |
comparison
equal
deleted
inserted
replaced
113:9d12efd43513 | 114:077c7ecc2d5f |
---|---|
22 /*! \author: Thomas Walters <tom@acousticscale.org> | 22 /*! \author: Thomas Walters <tom@acousticscale.org> |
23 * \date 2010/08/08 | 23 * \date 2010/08/08 |
24 * \version \$Id: $ | 24 * \version \$Id: $ |
25 */ | 25 */ |
26 | 26 |
27 #include <boost/scoped_ptr.hpp> | |
28 #include <hash_map> | |
27 #include <string> | 29 #include <string> |
30 | |
31 #include "Support/Parameters.h" | |
28 | 32 |
29 namespace aimc { | 33 namespace aimc { |
30 using std::string; | 34 using std::string; |
31 class ModuleTree { | 35 class ModuleTree { |
32 public: | 36 public: |
33 bool ParseConfigFile(const string &filename); | 37 bool ParseConfigFile(const string &filename); |
34 bool ParseConfigText(const string &config_text); | 38 bool ParseConfigText(const string &config_text); |
35 void set_output_filename_prefix(const string &prefix); | 39 string GetFullConfig() |
40 void set_output_filename_prefix(const string &prefix) { | |
41 output_filename_prefix_ = prefix; | |
42 } | |
36 string output_filename_prefix() { | 43 string output_filename_prefix() { |
37 return output_filename_prefix_; | 44 return output_filename_prefix_; |
38 } | 45 } |
39 private: | 46 private: |
47 Paramters parameters_; | |
40 string output_filename_prefix_; | 48 string output_filename_prefix_; |
49 hash_map<string, scoped_ptr<Module> > modules_; | |
50 string root_name_; | |
41 DISALLOW_COPY_AND_ASSIGN(ModuleTree); | 51 DISALLOW_COPY_AND_ASSIGN(ModuleTree); |
42 }; | 52 }; |
43 } // namespace aimc | 53 } // namespace aimc |