Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- namespace
- {
- const std::string COLOR = "\x03";
- const std::string BOLD = "\x2";
- const std::string ULINE = "\x1f";
- const std::string WHITE = "00";
- const std::string BLACK = "01";
- const std::string DARK_BLUE = "02";
- const std::string GREEN = "03";
- const std::string RED = "04";
- const std::string MAROON = "05";
- const std::string PURPLE = "06";
- const std::string ORANGE = "07";
- const std::string YELLOW = "08";
- const std::string LIME_GREEN = "09";
- const std::string TEAL = "10";
- const std::string CYAN = "11";
- const std::string BLUE = "12";
- const std::string PINK = "13";
- const std::string GREY = "14";
- const std::string LIGHT_GREY = "15";
- class Msg
- {
- public:
- std::string buffer;
- template< typename T >
- msg& operator << ( const T& t )
- {
- std::stringstream ss;
- ss << buffer << t;
- buffer = ss.str();
- return ( * this );
- }
- operator std::string()
- {
- return buffer;
- }
- };
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement