GDCM 2.2.0

- Main Page
- Related Pages
- Namespaces
- Classes
- Files
- Directories
- Examples

- File List
- File Members

gdcmTerminal.h
Go to the documentation of this file.

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