1 #include <vector> 2 #include <string> 3 4 #include "inireader.hxx" 5 6 namespace transex3{ 7 8 class Treeconfig 9 { 10 11 private: 12 INIreader inireader; 13 INImap map; 14 bool has_config_file; 15 void getCurrentDir( string& dir ); 16 bool isConfigFilePresent(); 17 18 public: 19 20 Treeconfig() : has_config_file( false ) { parseConfig(); } 21 // read the config file, returns true in case a config file had been found 22 bool parseConfig(); 23 // returns a string vector containing all active repositories, returns true in case we are deep inside 24 // of a source tree. This could affect the behavour of the tool 25 bool getActiveRepositories( vector<string>& active_repos); 26 }; 27 28 } 29