///////////////////////////////////////////////////////////
///////////////// Have an itch? Scratch it! ///////////////
///////////////////////// SCRATCH /////////////////////////
///////////////////// A MUD Server ////////////////////
///////////////////// By: Jared Devall ////////////////////
///////////////////// Thanks: ////////////////////
///////////////////// DIKU/Merc/ROM ////////////////////
///////////////////// Aetas/Deus Gang ////////////////////
///////////////////// Beej ////////////////////
///////////////////////////////////////////////////////////
#ifndef __COLORTABLE_H
#define __COLORTABLE_H
#include <map>
#include <string>
class ColorTable {
public:
static const std::string &Substitute( char );
static const char COLOR_ESCAPE;
static const char COLOR_CLEAR;
private:
typedef std::map<char, std::string> ColorMap;
static ColorTable _instance;
ColorMap _colormap;
ColorTable(); // ColorTable is a singleton.
};
#endif // _COLORTABLE_H