1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
/*=========================================================================
Program: GDCM (Grassroots DICOM). A DICOM library
Copyright (c) 2006-2011 Mathieu Malaterre
All rights reserved.
See Copyright.txt or http://gdcm.sourceforge.net/Copyright.html for details.
This software is distributed WITHOUT ANY WARRANTY; without even
the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
PURPOSE. See the above copyright notice for more information.
=========================================================================*/
#ifndef GDCMSEGMENTHELPER_H
#define GDCMSEGMENTHELPER_H
#include "gdcmTypes.h"
#include <string>
namespace gdcm
{
namespace SegmentHelper
{
/**
* \brief This structure defines a basic coded entry with all of its attributes.
*
* \see PS 3.3 section 8.8.
*/
struct GDCM_EXPORT BasicCodedEntry
{
/**
* \brief Constructor.
*/
BasicCodedEntry():
CV(""),
CSD(""),
CSV(""),
CM("")
{}
/**
* \brief constructor which defines type 1 attributes.
*/
BasicCodedEntry(const char * a_CV,
const char * a_CSD,
const char * a_CM):
CV(a_CV),
CSD(a_CSD),
CSV(""),
CM(a_CM)
{}
/**
* \brief constructor which defines attributes.
*/
BasicCodedEntry(const char * a_CV,
const char * a_CSD,
const char * a_CSV,
const char * a_CM):
CV(a_CV),
CSD(a_CSD),
CSV(a_CSV),
CM(a_CM)
{}
/**
* \brief Check if each attributes of the basic coded entry is defined.
*
* \param checkOptionalAttributes Check also type 1C attributes.
*/
bool IsEmpty(const bool checkOptionalAttributes = false) const;
//** Members **//
// 0008 0100 1 Code Value
std::string CV; /// Code Value attribute
// 0008 0102 1 Coding Scheme Designator
std::string CSD; /// Coding Scheme Designator attribute
// 0008 0103 1C Coding Scheme Version
std::string CSV; /// Coding Scheme Version attribute
// 0008 0104 1 Code Meaning
std::string CM; /// Code Meaning attribute
};
} // end of SegmentHelper namespace
} // end of gdcm namespace
#endif // GDCMSEGMENTHELPER_H