gdcmTerminal.h

Go to the documentation of this file.
00001 /*=========================================================================
00002 
00003   Program: GDCM (Grassroots DICOM). A DICOM library
00004   Module:  $URL$
00005 
00006   Copyright (c) 2006-2010 Mathieu Malaterre
00007   All rights reserved.
00008   See Copyright.txt or http://gdcm.sourceforge.net/Copyright.html for details.
00009 
00010      This software is distributed WITHOUT ANY WARRANTY; without even
00011      the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
00012      PURPOSE.  See the above copyright notice for more information.
00013 
00014 =========================================================================*/
00015 #ifndef GDCMTERMINAL_H
00016 #define GDCMTERMINAL_H
00017 
00018 #include "gdcmTypes.h"
00019 
00020 
00021 namespace gdcm
00022 {
00029 //-----------------------------------------------------------------------------
00030 
00031 namespace terminal
00032 {
00033   typedef enum
00034     {
00035     CONSOLE = 0,
00036     VT100
00037     } Mode;
00038   typedef enum
00039     {
00040     black = 0,
00041     red,
00042     green,
00043     yellow, // brown ??
00044     blue,
00045     magenta,
00046     cyan,
00047     white
00048     } Color;
00049   typedef enum
00050     {
00051     reset     = 0,
00052     bright    = 1, // bold
00053     dim       = 2,
00054     underline = 3,
00055     blink     = 5,
00056     reverse   = 7,
00057     hidden    = 8
00058     } Attribute;
00059   GDCM_EXPORT std::string setattribute( Attribute att );
00060   GDCM_EXPORT std::string setfgcolor( Color c );
00061   GDCM_EXPORT std::string setbgcolor( Color c );
00062   GDCM_EXPORT void setmode( Mode m);
00063 }
00064 
00065 } // end namespace gdcm
00066 //-----------------------------------------------------------------------------
00067 #endif //GDCMTERMINAL_H

Generated on Sat Dec 4 2010 08:58:48 for GDCM by doxygen 1.7.2
SourceForge.net Logo