source: abuse/trunk/src/include/property.hpp @ 43

Last change on this file since 43 was 39, checked in by Sam Hocevar, 14 years ago
  • Fix almost 2,000 warnings by using proper "const" keywords where needed.
File size: 609 bytes
RevLine 
[2]1#ifndef __PROPERTY_HPP_
2#define __PROPERTY_HPP_
3
4class property;
5class property_manager
6{
7  property *first;
[39]8  property *find(char const *name);
[2]9  public :
10  property_manager() { first=0; }
[39]11  void load(char const *filename);
12  void save(char const *filename);
[2]13 
[39]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);
[2]17
[39]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);
[2]21  ~property_manager();
22} ;
23
24
25#endif
Note: See TracBrowser for help on using the repository browser.