GenericObject.h

From Giona

Revision as of 12:17, 13 December 2007 by Rmarino (Talk | contribs)
#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_*/

BACK

Personal tools