GenericAttribute.cpp
From Giona
(Difference between revisions)
Line 7: | Line 7: | ||
*/ | */ | ||
- | |||
#include "GenericAttribute.h" | #include "GenericAttribute.h" | ||
Revision as of 12:19, 13 December 2007
/* * GenericAttribute.cpp * ==================== * * This class represents the implementation of a Generic Attribute. */ #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; }