GDCM  2.2.0
gdcmSegmentHelper.h
Go to the documentation of this file.
00001 /*=========================================================================
00002 
00003   Program: GDCM (Grassroots DICOM). A DICOM library
00004 
00005   Copyright (c) 2006-2011 Mathieu Malaterre
00006   All rights reserved.
00007   See Copyright.txt or http://gdcm.sourceforge.net/Copyright.html for details.
00008 
00009      This software is distributed WITHOUT ANY WARRANTY; without even
00010      the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
00011      PURPOSE.  See the above copyright notice for more information.
00012 
00013 =========================================================================*/
00014 #ifndef GDCMSEGMENTHELPER_H
00015 #define GDCMSEGMENTHELPER_H
00016 
00017 #include <string>
00018 
00019 namespace gdcm
00020 {
00021 
00022 namespace SegmentHelper
00023 {
00024 
00030 struct BasicCodedEntry
00031 {
00035   BasicCodedEntry():
00036     CV(""),
00037     CSD(""),
00038     CSV(""),
00039     CM("")
00040   {}
00041 
00045   BasicCodedEntry(const char * a_CV,
00046                   const char * a_CSD,
00047                   const char * a_CM):
00048     CV(a_CV),
00049     CSD(a_CSD),
00050     CSV(""),
00051     CM(a_CM)
00052   {}
00053 
00057   BasicCodedEntry(const char * a_CV,
00058                   const char * a_CSD,
00059                   const char * a_CSV,
00060                   const char * a_CM):
00061     CV(a_CV),
00062     CSD(a_CSD),
00063     CSV(a_CSV),
00064     CM(a_CM)
00065   {}
00066 
00072   bool IsEmpty(const bool checkOptionalAttributes = false) const;
00073 
00074 
00075   //**      Members     **//
00076   // 0008 0100 1   Code Value
00077   std::string CV;   
00078   // 0008 0102 1   Coding Scheme Designator
00079   std::string CSD;  
00080   // 0008 0103 1C  Coding Scheme Version
00081   std::string CSV;  
00082   // 0008 0104 1   Code Meaning
00083   std::string CM;   
00084 };
00085 
00086 } // end of SegmentHelper namespace
00087 
00088 } // end of gdcm namespace
00089 
00090 #endif // GDCMSEGMENTHELPER_H

Generated on Sun Jun 3 2012 14:19:46 for GDCM by doxygen 1.8.0
SourceForge.net Logo