GDCM 3.2.1

gdcmTerminal.h
Go to the documentation of this file.
1/*=========================================================================
2
3 Program: GDCM (Grassroots DICOM). A DICOM library
4
5 Copyright (c) 2006-2011 Mathieu Malaterre
6 All rights reserved.
7 See Copyright.txt or http://gdcm.sourceforge.net/Copyright.html for details.
8
9 This software is distributed WITHOUT ANY WARRANTY; without even
10 the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
11 PURPOSE. See the above copyright notice for more information.
12
13=========================================================================*/
14#ifndef GDCMTERMINAL_H
15#define GDCMTERMINAL_H
16
17#include "gdcmTypes.h"
18
19
20 namespace gdcm
21{
28//-----------------------------------------------------------------------------
29
30 namespace terminal
31{
32 typedef enum
33 {
34 CONSOLE = 0,
35 VT100
36 } Mode;
37 typedef enum
38 {
39 black = 0,
40 red,
41 green,
42 yellow, // brown ??
43 blue,
44 magenta,
45 cyan,
46 white
47 } Color;
48 typedef enum
49 {
50 reset = 0,
51 bright = 1, // bold
52 dim = 2,
53 underline = 3,
54 blink = 5,
55 reverse = 7,
56 hidden = 8
57 } Attribute;
58 GDCM_EXPORT std::string setattribute( Attribute att );
59 GDCM_EXPORT std::string setfgcolor( Color c );
60 GDCM_EXPORT std::string setbgcolor( Color c );
61 GDCM_EXPORT void setmode( Mode m);
62}
63
64} // end namespace gdcm
65//-----------------------------------------------------------------------------
66#endif //GDCMTERMINAL_H
gdcm::Attribute
Attribute class This class use template metaprograming tricks to let the user know when the template ...
Definition gdcmAttribute.h:86
gdcmTypes.h
GDCM_EXPORT
#define GDCM_EXPORT
Definition gdcmWin32.h:34
gdcm::terminal
Class for Terminal.
Definition gdcmTerminal.h:31
gdcm::terminal::setattribute
GDCM_EXPORT std::string setattribute(Attribute att)
gdcm::terminal::setbgcolor
GDCM_EXPORT std::string setbgcolor(Color c)
gdcm::terminal::setfgcolor
GDCM_EXPORT std::string setfgcolor(Color c)
gdcm::terminal::setmode
GDCM_EXPORT void setmode(Mode m)
gdcm::terminal::Color
Color
Definition gdcmTerminal.h:38
gdcm::terminal::magenta
@ magenta
Definition gdcmTerminal.h:44
gdcm::terminal::green
@ green
Definition gdcmTerminal.h:41
gdcm::terminal::blue
@ blue
Definition gdcmTerminal.h:43
gdcm::terminal::white
@ white
Definition gdcmTerminal.h:46
gdcm::terminal::cyan
@ cyan
Definition gdcmTerminal.h:45
gdcm::terminal::red
@ red
Definition gdcmTerminal.h:40
gdcm::terminal::black
@ black
Definition gdcmTerminal.h:39
gdcm::terminal::yellow
@ yellow
Definition gdcmTerminal.h:42
gdcm::terminal::Attribute
Attribute
Definition gdcmTerminal.h:49
gdcm::terminal::underline
@ underline
Definition gdcmTerminal.h:53
gdcm::terminal::reset
@ reset
Definition gdcmTerminal.h:50
gdcm::terminal::dim
@ dim
Definition gdcmTerminal.h:52
gdcm::terminal::bright
@ bright
Definition gdcmTerminal.h:51
gdcm::terminal::reverse
@ reverse
Definition gdcmTerminal.h:55
gdcm::terminal::hidden
@ hidden
Definition gdcmTerminal.h:56
gdcm::terminal::blink
@ blink
Definition gdcmTerminal.h:54
gdcm::terminal::Mode
Mode
Definition gdcmTerminal.h:33
gdcm::terminal::CONSOLE
@ CONSOLE
Definition gdcmTerminal.h:34
gdcm::terminal::VT100
@ VT100
Definition gdcmTerminal.h:35
gdcm
Definition gdcmASN1.h:21