#ifndef __PROPERTY_HPP #define __PROPERTY_HPP class PropertyList { public: PropertyList(); ~PropertyList(); int insert(const char *propname, int type, const char *value); int queryValue(const char *propname, int maxbuf, char *buf); int queryType(const char *propname); int setValue(const char *propname, const char *value); void remove(const char *propname); private: struct entry { char *name; unsiged char namesum; int type; char *value; entry *next; }; entry *firstEntry; static unsigned char sumname(const char *s); }; #endif