BALL
1.4.1
|
00001 // -*- Mode: C++; tab-width: 2; -*- 00002 // vi: set ts=2: 00003 // 00004 // $Id: parameters.h,v 1.18 2005/12/23 17:01:46 amoll Exp $ 00005 // general parameter file class 00006 // 00007 00008 #ifndef BALL_FORMAT_PARAMETERS_H 00009 #define BALL_FORMAT_PARAMETERS_H 00010 00011 #ifndef BALL_FORMAT_INIFILE_H 00012 # include <BALL/FORMAT/INIFile.h> 00013 #endif 00014 00015 namespace BALL 00016 { 00024 class BALL_EXPORT Parameters 00025 { 00026 public: 00027 00028 BALL_CREATE(Parameters) 00029 00030 00033 00036 Parameters(); 00037 00040 Parameters(const String& filename); 00041 00044 Parameters(const Parameters& force_field_parameter); 00045 00048 virtual ~Parameters(); 00049 00052 virtual void clear() 00053 ; 00054 00056 00059 00062 const Parameters& operator = (const Parameters& parameters); 00063 00065 00068 00071 void setFilename(const String& filename); 00072 00075 const String& getFilename() const; 00076 00079 INIFile& getParameterFile(); 00080 00083 bool init(); 00084 00086 00089 00095 virtual bool isValid() const; 00096 00099 bool operator == (const Parameters& parameters) const; 00100 00102 00103 protected: 00104 00105 /*_ @name Protected Members 00106 */ 00107 //_@{ 00108 00109 /*_ 00110 */ 00111 bool valid_; 00112 00113 /*_ the INIFile 00114 */ 00115 INIFile INI_file_; 00116 //_@} 00117 }; 00118 } // namespace BALL 00119 00120 #endif // BALL_FORMAT_PARAMETERS_H