From Giona
/*
* GenericAttribute.cpp
* ====================
*
* This class represents the implementation of a Generic Attribute.
*/
#include "bool.h"
#include "mytypes.h"
#include "GenericAttribute.h"
/*
* Constructor
*/
GenericAttribute::GenericAttribute()
{
this->name = EMPTY_STRING;
this->value = EMPTY_STRING;
this->description = EMPTY_STRING;
}
/*
* Destructor
*/
GenericAttribute::~GenericAttribute()
{
}
/*
* Sets the name of the attribute
*/
void GenericAttribute::setName(STRING name)
{
this->name = name;
}
/*
* Returns the name of the attribute
*/
STRING GenericAttribute::getName()
{
return this->name;
}
/*
* Sets the value of the attribute
*/
void GenericAttribute::setValue(STRING value)
{
this->value = value;
}
/*
* Returns the value of the attribute
*/
STRING GenericAttribute::getValue()
{
return this->value;
}
/*
* Sets the description of the attribute
*/
void GenericAttribute::setDescription(STRING description)
{
this->description = description;
}
/*
* Returns the description of the attribute
*/
STRING GenericAttribute::getDescription()
{
return this->description;
}