libqi-api  2.0.6.8
/home/opennao/work/master/sdk/libqi/qi/iocolor.hpp
Go to the documentation of this file.
00001 /*
00002 ** Author(s):
00003 **  - Cedric GESTES <gestes@aldebaran-robotics.com>
00004 **
00005 ** Copyright (C) 2013 Aldebaran Robotics
00006 */
00007 
00008 #ifndef _QI_IOCOLOR_HPP_
00009 #define _QI_IOCOLOR_HPP_
00010 
00011 #include <qi/api.hpp>
00012 #include <ostream>
00013 
00014 namespace qi {
00015 
00016   enum StreamColor {
00017     //no color
00018     StreamColor_None      = 0,
00019 
00020     //attributes control
00021     StreamColor_Reset     = 1,
00022     StreamColor_Bold      = 2,
00023     StreamColor_Faint     = 3,
00024     StreamColor_Standout  = 4,
00025     StreamColor_Underline = 5,
00026     StreamColor_Blink     = 6,
00027     StreamColor_Overline  = 7,
00028 
00029     //light colors
00030     StreamColor_Black     = 8,
00031     StreamColor_DarkRed   = 9,
00032     StreamColor_DarkGreen = 10,
00033     StreamColor_Brown     = 11,
00034     StreamColor_DarkBlue  = 12,
00035     StreamColor_Purple    = 13,
00036     StreamColor_Teal      = 14,
00037     StreamColor_LightGray = 15,
00038 
00039     //dark colors
00040     StreamColor_DarkGray  = 16,
00041     StreamColor_Red       = 17,
00042     StreamColor_Green     = 18,
00043     StreamColor_Yellow    = 19,
00044     StreamColor_Blue      = 20,
00045     StreamColor_Fuchsia   = 21,
00046     StreamColor_Turquoise = 22,
00047     StreamColor_White     = 23,
00048   };
00049 }
00050 
00051 namespace std {
00052   QI_API std::ostream& operator<<(std::ostream& os, qi::StreamColor col);
00053 }
00054 
00055 #endif  // _QI_IOCOLOR_HPP_
00056 
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines