Changeset 1539 for trunk/gsinstaller/configFile.h
- Timestamp:
- 2000-09-12T13:36:44+12:00 (24 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/gsinstaller/configFile.h
r1475 r1539 2 2 #define _CONFIG_H_ 3 3 #include <string> 4 5 // use the standard namespace 6 #if !defined (GSDL_NAMESPACE_BROKEN) 7 #if defined(GSDL_USE_OBJECTSPACE) 8 using namespace ospace::std; 9 #else 4 10 using namespace std; 11 #endif 12 #endif 5 13 6 14 #include <stdio.h> … … 10 18 11 19 typedef struct 12 { char label[32]; 13 char data[64]; 20 { 21 char label[32]; 22 char data[64]; 14 23 } config_item; 15 24 16 25 typedef struct 17 { int count; 26 { 27 int count; 18 28 config_item item[1]; 19 29 } config_str; … … 21 31 class configureFile 22 32 { 23 24 config_str *configstr;25 33 private: 34 config_str *configstr; 35 bool valid; 26 36 27 28 29 30 31 32 33 34 35 36 37 37 bool scan(char *buffer, unsigned int &pos, unsigned int length); 38 public: 39 configureFile(char *name); 40 char *filename(char *base); 41 bool put(char *label, char *value); 42 bool concat(char *label, char *buffer, unsigned int &space); 43 string getString(string label); 44 void get(char *label, char **to); 45 bool store(char *); 46 bool isValid(); 47 ~configureFile(); 38 48 }; 39 49 #endif
Note:
See TracChangeset
for help on using the changeset viewer.