gdcmSegmentHelper.h
Go to the documentation of this file.
/*=========================================================================
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
{
struct GDCM_EXPORT BasicCodedEntry
{
BasicCodedEntry():
CV(""),
CSD(""),
CSV(""),
CM("")
{}
BasicCodedEntry(const char * a_CV,
const char * a_CSD,
const char * a_CM):
CV(a_CV),
CSD(a_CSD),
CSV(""),
CM(a_CM)
{}
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)
{}
bool IsEmpty(const bool checkOptionalAttributes = false) const;
//** Members **//
// 0008 0100 1 Code Value
std::string CV;
// 0008 0102 1 Coding Scheme Designator
std::string CSD;
// 0008 0103 1C Coding Scheme Version
std::string CSV;
// 0008 0104 1 Code Meaning
std::string CM;
};
} // end of SegmentHelper namespace
} // end of gdcm namespace
#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