/** * @module cdisplay * @author Guenther Neuwirth (0626638), Manuel Mausz (0728348) * @brief Abstract template class for displays * @date 26.05.2009 */ #ifndef CDISPLAY_H #define CDISPLAY_H 1 /** * @class CDisplay * * Abstract template class for displays */ template class CDisplay { public: /** * @method CDisplay * @brief Default ctor * @param name name of display * @return - * @globalvars none * @exception none * @pre none * @post none */ CDisplay(std::string name) : m_name(name) {} /** * @method ~CDisplay * @brief Default dtor * @param - * @return - * @globalvars none * @exception none * @pre none * @post none */ virtual ~CDisplay() {} /** * @method getName * @brief returns name of display * @param - * @return name of display * @globalvars none * @exception none * @pre none * @post none */ virtual const std::string& getName() { return m_name; } /** * @method display * @brief prints value to display * @param value value to display * @return - * @globalvars none * @exception none * @pre none * @post none */ virtual void display(const T &value) = 0; protected: /* members */ /** name of display */ std::string m_name; }; #endif /* vim: set et sw=2 ts=2: */