source: abuse/tags/pd/abuse/inc/property.hpp @ 49

Last change on this file since 49 was 49, checked in by Sam Hocevar, 11 years ago
  • Imported original public domain release, for future reference.
File size: 544 bytes
Line 
1#ifndef __PROPERTY_HPP_
2#define __PROPERTY_HPP_
3
4class property;
5class property_manager
6{
7  property *first;
8  property *find(char *name);
9  public :
10  property_manager() { first=0; }
11  void load(char *filename);
12  void save(char *filename);
13 
14  int getd(char *name, int def) { return (int)get(name,def); }
15  double get(char *name, double def);
16  char  *get(char *name, char *def);
17
18  void setd(char *name, int def) { set(name,def); }
19  void set(char *name, double def);
20  void set(char *name, char *def);
21  ~property_manager();
22} ;
23
24
25#endif
Note: See TracBrowser for help on using the repository browser.