//-----------------------------------------------------------------------------
// File: Enumeration.cpp
//-----------------------------------------------------------------------------
// Project: Kactus 2
// Author: Esko Pekkarinen
// Date: 04.09.2014
//
// Description:
// Enumeration matches the ipxact:enumeration element in IP-XACT.
//-----------------------------------------------------------------------------

#include "Enumeration.h"

//-----------------------------------------------------------------------------
// Function: Enumeration::Enumeration()
//-----------------------------------------------------------------------------
Enumeration::Enumeration()
{

}

//-----------------------------------------------------------------------------
// Function: Enumeration::Enumeration()
//-----------------------------------------------------------------------------
Enumeration::Enumeration(Enumeration const& other):
value_(other.value_),
text_(other.text_),
help_(other.help_)
{

}


//-----------------------------------------------------------------------------
// Function: Enumeration::~Enumeration()
//-----------------------------------------------------------------------------
Enumeration::~Enumeration()
{

}

//-----------------------------------------------------------------------------
// Function: Enumeration::setValue()
//-----------------------------------------------------------------------------
void Enumeration::setValue(QString const& value)
{
    value_ = value;
}

//-----------------------------------------------------------------------------
// Function: Enumeration::getValue()
//-----------------------------------------------------------------------------
QString Enumeration::getValue() const
{
    return value_;
}
//-----------------------------------------------------------------------------
// Function: Enumeration::setText()
//-----------------------------------------------------------------------------
void Enumeration::setText(QString const& text)
{
    text_ = text;
}

//-----------------------------------------------------------------------------
// Function: Enumeration::getText()
//-----------------------------------------------------------------------------
QString Enumeration::getText() const
{
    return text_;
}

//-----------------------------------------------------------------------------
// Function: Enumeration::setHelp()
//-----------------------------------------------------------------------------
void Enumeration::setHelp(QString const& help)
{
    help_ = help;
}

//-----------------------------------------------------------------------------
// Function: Enumeration::getHelp()
//-----------------------------------------------------------------------------
QString Enumeration::getHelp() const
{
    return help_;
}
