blob: 9e5097c6dc85b977033565718af0dee08064bf5a [file] [log] [blame] [raw]
/***************************************************************************
options.cpp
-------------------
begin : Sun Dec 23 2001
copyright : (C) 2001, 2002 by Roland Riegel
email : support@roland-riegel.de
***************************************************************************/
/***************************************************************************
* *
* This program is free software; you can redistribute it and/or modify *
* it under the terms of the GNU General Public License as published by *
* the Free Software Foundation; either version 2 of the License, or *
* (at your option) any later version. *
* *
***************************************************************************/
template<class T>
Option<T>::Option()
{
}
template<class T>
Option<T>::Option( T new_value )
{
m_value = new_value;
}
template<class T>
Option<T>::Option( T new_value, string new_description = "" )
{
setDescription( new_description );
m_value = new_value;
}
template<class T>
Option<T>::~Option()
{
}
template<class T>
Option<T>::operator T() const
{
return m_value;
}
template<class T>
void Option<T>::setDescription( string new_description )
{
m_description = new_description;
}
template<class T>
string Option<T>::getDescription()
{
return m_description;
}