Mercurial > hg > aimc
annotate trunk/src/Support/ModuleTree.h @ 384:779bc83bf36c
- More inrementality
author | tomwalters |
---|---|
date | Tue, 14 Sep 2010 00:46:47 +0000 |
parents | 2f4530363f7a |
children | edcbb7769ab9 |
rev | line source |
---|---|
tomwalters@365 | 1 // Copyright 2010, Thomas Walters |
tomwalters@365 | 2 // |
tomwalters@365 | 3 // AIM-C: A C++ implementation of the Auditory Image Model |
tomwalters@365 | 4 // http://www.acousticscale.org/AIMC |
tomwalters@365 | 5 // |
tomwalters@365 | 6 // Licensed under the Apache License, Version 2.0 (the "License"); |
tomwalters@365 | 7 // you may not use this file except in compliance with the License. |
tomwalters@365 | 8 // You may obtain a copy of the License at |
tomwalters@365 | 9 // |
tomwalters@365 | 10 // http://www.apache.org/licenses/LICENSE-2.0 |
tomwalters@365 | 11 // |
tomwalters@365 | 12 // Unless required by applicable law or agreed to in writing, software |
tomwalters@365 | 13 // distributed under the License is distributed on an "AS IS" BASIS, |
tomwalters@365 | 14 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
tomwalters@365 | 15 // See the License for the specific language governing permissions and |
tomwalters@365 | 16 // limitations under the License. |
tomwalters@365 | 17 |
tomwalters@365 | 18 /*! \file |
tomwalters@365 | 19 * \brief Parse a configuration file to generate a tree of modules. |
tomwalters@365 | 20 */ |
tomwalters@365 | 21 |
tomwalters@365 | 22 /*! \author: Thomas Walters <tom@acousticscale.org> |
tomwalters@365 | 23 * \date 2010/08/08 |
tomwalters@365 | 24 * \version \$Id: $ |
tomwalters@365 | 25 */ |
tomwalters@365 | 26 |
tomwalters@365 | 27 #include <string> |
tomwalters@365 | 28 |
tomwalters@365 | 29 namespace aimc { |
tomwalters@365 | 30 using std::string; |
tomwalters@365 | 31 class ModuleTree { |
tomwalters@365 | 32 public: |
tomwalters@365 | 33 bool ParseConfigFile(const string &filename); |
tomwalters@365 | 34 bool ParseConfigText(const string &config_text); |
tomwalters@365 | 35 void set_output_filename_prefix(const string &prefix); |
tomwalters@365 | 36 string output_filename_prefix() { |
tomwalters@365 | 37 return output_filename_prefix_; |
tomwalters@365 | 38 } |
tomwalters@365 | 39 private: |
tomwalters@365 | 40 string output_filename_prefix_; |
tomwalters@365 | 41 DISALLOW_COPY_AND_ASSIGN(ModuleTree); |
tomwalters@365 | 42 }; |
tomwalters@365 | 43 } // namespace aimc |