Last change
on this file since 1537 was 1475, checked in by cs025, 24 years ago |
Updated sources with most of uninstall added
|
-
Property svn:keywords
set to
Author Date Id Revision
|
File size:
751 bytes
|
Line | |
---|
1 | #ifndef _CONFIG_H_
|
---|
2 | #define _CONFIG_H_
|
---|
3 | #include <string>
|
---|
4 | using namespace std;
|
---|
5 |
|
---|
6 | #include <stdio.h>
|
---|
7 | #include <string.h>
|
---|
8 |
|
---|
9 | #include <windows.h>
|
---|
10 |
|
---|
11 | typedef struct
|
---|
12 | { char label[32];
|
---|
13 | char data[64];
|
---|
14 | } config_item;
|
---|
15 |
|
---|
16 | typedef struct
|
---|
17 | { int count;
|
---|
18 | config_item item[1];
|
---|
19 | } config_str;
|
---|
20 |
|
---|
21 | class configureFile
|
---|
22 | {
|
---|
23 | private:
|
---|
24 | config_str * configstr;
|
---|
25 | bool valid;
|
---|
26 |
|
---|
27 | bool scan(char *buffer, unsigned int &pos, unsigned int length);
|
---|
28 | public:
|
---|
29 | configureFile(char *name);
|
---|
30 | char *filename(char *base);
|
---|
31 | bool put(char *label, char *value);
|
---|
32 | bool concat(char *label, char *buffer, unsigned int &space);
|
---|
33 | string getString(string label);
|
---|
34 | void get(char *label, char **to);
|
---|
35 | bool store(char *);
|
---|
36 | bool isValid();
|
---|
37 | ~configureFile();
|
---|
38 | };
|
---|
39 | #endif
|
---|
Note:
See
TracBrowser
for help on using the repository browser.