GDCM
2.2.0
Main Page
Related Pages
Namespaces
Classes
Files
Examples
File List
File Members
Source
Common
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
Generated on Wed Jun 13 2012 20:40:37 for GDCM by
1.8.1