GenericAttribute.cpp

From Giona

(Difference between revisions)
Line 7: Line 7:
  */
  */
-
#include "bool.h"
+
#include "gionaTypes.h"
-
#include "mytypes.h"
+
#include "GenericAttribute.h"
#include "GenericAttribute.h"
Line 75: Line 74:
return this->description;
return this->description;
}
}
-
 
</pre>
</pre>
-
 
+
[[Il database Object Oriented Generico|BACK]]
[[Category:Codice Sorgente]]
[[Category:Codice Sorgente]]

Revision as of 12:01, 13 December 2007

/*
 * GenericAttribute.cpp
 * ====================
 * 
 * This class represents the implementation of a Generic Attribute.
 */

#include "gionaTypes.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;
}

BACK

Personal tools