GDCM 2.2.1

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

- File List
- File Members

gdcmSegmentHelper.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 GDCMSEGMENTHELPER_H
15 #define GDCMSEGMENTHELPER_H
16
17 #include <string>
18
19 namespace gdcm
20 {
21
22 namespace SegmentHelper
23 {
24
30 struct BasicCodedEntry
31 {
35 BasicCodedEntry():
36 CV(""),
37 CSD(""),
38 CSV(""),
39 CM("")
40 {}
41
45 BasicCodedEntry(const char * a_CV,
46 const char * a_CSD,
47 const char * a_CM):
48 CV(a_CV),
49 CSD(a_CSD),
50 CSV(""),
51 CM(a_CM)
52 {}
53
57 BasicCodedEntry(const char * a_CV,
58 const char * a_CSD,
59 const char * a_CSV,
60 const char * a_CM):
61 CV(a_CV),
62 CSD(a_CSD),
63 CSV(a_CSV),
64 CM(a_CM)
65 {}
66
72 bool IsEmpty(const bool checkOptionalAttributes = false) const;
73
74
75 //** Members **//
76 // 0008 0100 1 Code Value
77 std::string CV;
78 // 0008 0102 1 Coding Scheme Designator
79 std::string CSD;
80 // 0008 0103 1C Coding Scheme Version
81 std::string CSV;
82 // 0008 0104 1 Code Meaning
83 std::string CM;
84 };
85
86 } // end of SegmentHelper namespace
87
88 } // end of gdcm namespace
89
90 #endif // GDCMSEGMENTHELPER_H