GDCM 3.2.1

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 "gdcmTypes.h"
18
19#include <string>
20
21 namespace gdcm
22{
23
24 namespace SegmentHelper
25{
26
32 struct GDCM_EXPORT BasicCodedEntry
33{
37 BasicCodedEntry():
38 CV(""),
39 CSD(""),
40 CSV(""),
41 CM("")
42 {}
43
47 BasicCodedEntry(const char * a_CV,
48 const char * a_CSD,
49 const char * a_CM):
50 CV(a_CV),
51 CSD(a_CSD),
52 CSV(""),
53 CM(a_CM)
54 {}
55
59 BasicCodedEntry(const char * a_CV,
60 const char * a_CSD,
61 const char * a_CSV,
62 const char * a_CM):
63 CV(a_CV),
64 CSD(a_CSD),
65 CSV(a_CSV),
66 CM(a_CM)
67 {}
68
74 bool IsEmpty(const bool checkOptionalAttributes = false) const;
75
76
77 //** Members **//
78 // 0008 0100 1 Code Value
79 std::string CV;
80 // 0008 0102 1 Coding Scheme Designator
81 std::string CSD;
82 // 0008 0103 1C Coding Scheme Version
83 std::string CSV;
84 // 0008 0104 1 Code Meaning
85 std::string CM;
86};
87
88} // end of SegmentHelper namespace
89
90} // end of gdcm namespace
91
92#endif // GDCMSEGMENTHELPER_H
gdcmTypes.h
GDCM_EXPORT
#define GDCM_EXPORT
Definition gdcmWin32.h:34
gdcm::SegmentHelper
Definition gdcmSegmentHelper.h:25
gdcm
Definition gdcmASN1.h:21
gdcm::SegmentHelper::BasicCodedEntry::CSV
std::string CSV
Coding Scheme Designator attribute.
Definition gdcmSegmentHelper.h:83
gdcm::SegmentHelper::BasicCodedEntry::BasicCodedEntry
BasicCodedEntry()
Constructor.
Definition gdcmSegmentHelper.h:37
gdcm::SegmentHelper::BasicCodedEntry::BasicCodedEntry
BasicCodedEntry(const char *a_CV, const char *a_CSD, const char *a_CSV, const char *a_CM)
constructor which defines attributes.
Definition gdcmSegmentHelper.h:59
gdcm::SegmentHelper::BasicCodedEntry::IsEmpty
bool IsEmpty(const bool checkOptionalAttributes=false) const
Check if each attributes of the basic coded entry is defined.
gdcm::SegmentHelper::BasicCodedEntry::CV
std::string CV
Definition gdcmSegmentHelper.h:79
gdcm::SegmentHelper::BasicCodedEntry::BasicCodedEntry
BasicCodedEntry(const char *a_CV, const char *a_CSD, const char *a_CM)
constructor which defines type 1 attributes.
Definition gdcmSegmentHelper.h:47
gdcm::SegmentHelper::BasicCodedEntry::CM
std::string CM
Coding Scheme Version attribute.
Definition gdcmSegmentHelper.h:85
gdcm::SegmentHelper::BasicCodedEntry::CSD
std::string CSD
Code Value attribute.
Definition gdcmSegmentHelper.h:81