GenericObject.h

From Giona

Revision as of 09:25, 6 July 2007 by Rmarino (Talk | contribs)
(diff) ←Older revision | view current revision (diff) | Newer revision→ (diff)
#ifndef GENERICOBJECT_H_
#define GENERICOBJECT_H_

#define GENERIC_OBJECT_ERROR_NO 0

class GenericObject
{
	public:
		GenericObject();
		virtual ~GenericObject();
		int getLastError();
		int getAttributeNumber();
		void setName(STRING name);
		STRING getName();
		void setDescription(STRING description);
		STRING getDescription();
		STRING getAttributeValue(STRING name);
		STRING getAttributeDescription(STRING description);
		void setAttributeValue(STRING name, STRING value);
		BOOL setAttributeDescription(STRING name, STRING description);
		STRING* getAttributeNameList();
		
	private:
		STRING name;
		STRING description;
		GenericList * attributeList;
		int lastError;
		
		GenericAttribute* getAttribute(STRING name);
};

#endif /*GENERICOBJECT_H_*/

Personal tools