00001 //----------------------------------------------------------- 00002 // Copyright Christian Arnault LAL-Orsay CNRS 00003 // arnault@lal.in2p3.fr 00004 // See the complete license in cmt_license.txt "http://www.cecill.info". 00005 //----------------------------------------------------------- 00006 00007 #ifndef __cmt_install_area_h__ 00008 #define __cmt_install_area_h__ 00009 00010 class CmtInstallPathPattern 00011 { 00012 public: 00013 cmt_string m_name; 00014 cmt_string m_definition; 00015 }; 00016 00017 class CmtInstallAreaMgr 00018 { 00019 public: 00020 static CmtInstallAreaMgr& instance (); 00021 00022 public: 00023 void setup_current_installarea (); 00024 void setup (); 00025 void config () const; 00026 const cmt_string& get_installarea () const; 00027 00028 private: 00029 cmt_string build_current_installarea () const; 00030 00031 cmt_vector <CmtInstallPathPattern> m_patterns; 00032 cmt_string m_installarea; 00033 }; 00034 00035 #endif