Listing 2: ColoredText class.

#ifndef __COLOREDTEXT_H__
#define __COLOREDTEXT_H__
#include "XMLBase.h"

class ColoredText: public XMLBase
{
public:
   /// Overloaded save parameters and settings
   bool writeXML(ParamIO& outXML, const std::string& absolutePath = "");
   /// Overloaded load parameters and settings
   bool readXML(ParamIO& inXML, const std::string& absolutePath = "");
   std::string _text;        // The text
   int _red, _green, _blue;  // RGB colors
   std::string _fontName;    // font name
   double _fontSize;         // font size
};
#endif