00001 //*****************************************************************************// 00002 // // 00003 // Copyright (c) 2001 // 00004 // INRIA // 00005 // 54600 VILLERS LES NANCY // 00006 // France // 00007 // // 00008 //*****************************************************************************// 00009 // // 00010 // *** NOTICE OF PROPRIETARY INFORMATION *** // 00011 // // 00012 // The information contained in this file is considered proprietary and the // 00013 // exclusive property of INRIA. This information may not be disclosed, // 00014 // duplicated or used, in whole or in part, for any purpose whatsoever // 00015 // without express written authorization from INRIA // 00016 // // 00017 //*****************************************************************************// 00018 00019 00020 #ifndef QC_FILES_H_ 00021 #define QC_FILES_H_ 00022 00023 00024 #include <iostream> 00025 #include <string> 00026 #include <map> 00027 00028 #include "QCCommon.hpp" 00029 00030 00031 00037 class QCFiles 00038 { 00039 00040 friend class QCReader; 00041 00043 public: 00044 00048 QCFiles (void); 00049 00053 ~QCFiles (void); 00054 00055 00059 const string& getGeneralFile (void) const { return this->_generalFile; }; 00060 00061 00065 const std::string & getParameterFile (void) const { return this->_parameterFile; }; 00066 std::string parameterFile (void) const { return this->_parameterFile; }; 00067 std::string & parameterFile (void) { return this->_parameterFile; }; 00068 00069 00074 const std::string & getAtomsFile (void) const { return this->_atomsFile; }; 00075 std::string atomsFile (void) const { return this->_atomsFile; }; 00076 std::string & atomsFile (void) { return this->_atomsFile; }; 00077 00078 00082 const std::string & getResultFile (void) const { return this->_resultFile; }; 00083 std::string resultFile (void) const { return this->_resultFile; }; 00084 std::string & resultFile (void) { return this->_resultFile; }; 00085 00086 00090 const std::string& getPartitionFile (void) const { return this->_partitionFile; }; 00091 std::string partitionFile (void) const { return this->_partitionFile; }; 00092 std::string & partitionFile (void) { return this->_partitionFile; }; 00093 00097 const std::string& getDensityFile (void) const { return this->_densityFile; }; 00098 00099 00101 protected: 00102 00103 00105 private: 00106 00110 std::map<std::string, std::string *>& getMap (void) { return _refs; }; 00111 00112 00114 public: 00115 protected: 00116 private: 00120 std::string _generalFile; 00124 std::string _parameterFile; 00128 std::string _atomsFile; 00132 std::string _resultFile; 00136 std::string _partitionFile; 00140 std::string _densityFile; 00144 std::map<std::string, std::string *> _refs; 00145 00146 }; 00147 00148 00152 extern ostream& 00153 operator << (ostream& out, const QCFiles& files); 00154 00155 00156 #endif // QC_FILES_H_