GenericObject.h
From Giona
(Difference between revisions)
Line 34: | Line 34: | ||
</pre> | </pre> | ||
- | + | [[Il database Object Oriented Generico|BACK]] | |
[[Category:Codice Sorgente]] | [[Category:Codice Sorgente]] |
Revision as of 12:17, 13 December 2007
#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_*/