Debian Codegraph @

samples/qtrecompress/conf.h

raw
1 #ifndef CONF_H
2 #define CONF_H
3
4 #include "avm_stl.h"
5 #include "avm_map.h"
6
7 #include <stdlib.h>
8
9 class ReadConfig
10 {
11 avm::avm_map<avm::string, avm::string> _map;
12 public:
13 ReadConfig(const char* fn);
14 ~ReadConfig(){}
15 double getDouble(const avm::string& key) const;
16 int getInt(const avm::string& key) const;
17 const char* getString(const avm::string& key) const;
18 };
19
20 class WriteConfig
21 {
22 avm::avm_map<avm::string, avm::string> _map;
23 void* fh;
24 public:
25 WriteConfig(const char* fn);
26 ~WriteConfig();
27 void add(const avm::string& key, const avm::string& value);
28 void add(const avm::string& key, int value);
29 void add(const avm::string& key, double value);
30 };
31
32 #endif // CONF_H