GenericAttribute.h

From Giona

Revision as of 16:56, 13 December 2007 by Rmarino (Talk | contribs)
(diff) ←Older revision | view current revision (diff) | Newer revision→ (diff)
#ifndef GENERICATTRIBUTE_H_
#define GENERICATTRIBUTE_H_

#include <cstring>
#include "gionaTypes.h"
#include "Debug.h"

class GenericAttribute
{
public:
	
	static const int ERROR_NO = 0;
	static const int ERROR_NULL_PARAMETER = 1;
	static const int ERROR_EMPTY_STRING = 2;
	
	GenericAttribute();
	virtual ~GenericAttribute();
	
	bool setName(STRING name);
	STRING getName();
	bool setValue(STRING value);
	STRING getValue();
	bool setDescription(STRING description);
	STRING getDescription();
	
	int getLastError();
	
private:
	STRING name;
	STRING value;
	STRING description;
	int lastError;
};

#endif /*GENERICATTRIBUTE_H_*/

BACK

Personal tools