propertyInfo.h

Go to the documentation of this file.
00001 #ifndef PROPERTY_INFO_H
00002 #define PROPERTY_INFO_H
00003 
00013 #include <fstream>
00014 #include <string>
00015 
00016 
00020 class PropertyInfo {
00021   bool before_read;
00022   std::string file_name;
00023   std::fstream fd;
00024   bool read_fail;
00025 
00026   bool firstRead(void);
00027   virtual void evaluate(void) = 0;
00028 
00029 public:
00030   PropertyInfo(void);
00031   virtual ~PropertyInfo(void);
00032 
00039   bool load(const char* fname, const char* path[]);
00040 
00044   void save(void);
00045 
00049   void value(int* int_num, const char* key, int def_num = 0);
00050 
00054   void value(std::string& str, const char* key, const char* def_str = "");
00055 };
00056 
00057 #endif /* !PROPERTY_INFO_H */
00058 

Generated on Mon Apr 13 22:52:05 2009 by  doxygen 1.5.7.1