Last change
on this file since 39 was
39,
checked in by Sam Hocevar, 15 years ago
|
- Fix almost 2,000 warnings by using proper "const" keywords where needed.
|
File size:
609 bytes
|
Line | |
---|
1 | #ifndef __PROPERTY_HPP_ |
---|
2 | #define __PROPERTY_HPP_ |
---|
3 | |
---|
4 | class property; |
---|
5 | class property_manager |
---|
6 | { |
---|
7 | property *first; |
---|
8 | property *find(char const *name); |
---|
9 | public : |
---|
10 | property_manager() { first=0; } |
---|
11 | void load(char const *filename); |
---|
12 | void save(char const *filename); |
---|
13 | |
---|
14 | int getd(char const *name, int def) { return (int)get(name,def); } |
---|
15 | int get(char const *name, int def); |
---|
16 | char const *get(char const *name, char const *def); |
---|
17 | |
---|
18 | void setd(char const *name, int def) { set(name,def); } |
---|
19 | void set(char const *name, double def); |
---|
20 | void set(char const *name, char const *def); |
---|
21 | ~property_manager(); |
---|
22 | } ; |
---|
23 | |
---|
24 | |
---|
25 | #endif |
---|
Note: See
TracBrowser
for help on using the repository browser.