25 #include <boost/shared_ptr.hpp>
30 using std::ostringstream;
58 const_iterator it = find(key);
70 for (const_iterator it = begin(); it != end(); ++it)
71 s <<
"[" << it->first <<
"]=" << it->second <<
"\n";
72 s <<
"default=" << default_color;
string default_color
when no color corresponds to the requested one
Definition: colormap.h:41
C++ class: doctemplate.h.
Definition: bufferedoutput.cpp:13
const string toString() const
Returns a string representation of the map.
Definition: colormap.h:68
const string getColor(const string &key)
Definition: colormap.h:57
boost::shared_ptr< ColorMap > ColorMapPtr
shared pointer for ColorMap
Definition: colormap.h:78
void setDefault(const string &d)
Sets the default color.
Definition: colormap.h:48
Simple map for colors (maps a color constant string to the corresponding color of the output format) ...
Definition: colormap.h:38