|
Source-highlight Library
|
Simple map for colors (maps a color constant string to the corresponding color of the output format) More...
#include <colormap.h>


Public Member Functions | |
| void | setDefault (const string &d) |
| Sets the default color. | |
| const string | getColor (const string &key) |
| const string | toString () const |
| Returns a string representation of the map. | |
Public Attributes | |
| K | keys |
| STL member. | |
| T | elements |
| STL member. | |
Protected Attributes | |
| string | default_color |
| when no color corresponds to the requested one | |
Simple map for colors (maps a color constant string to the corresponding color of the output format)
| const string srchilite::ColorMap::getColor | ( | const string & | key | ) | [inline] |
| key | the color we're looking for |
| void srchilite::ColorMap::setDefault | ( | const string & | d | ) | [inline] |
Sets the default color.
| d | the default color |