fw4spl
helper/DicomCodedAttribute.hpp
1 /* ***** BEGIN LICENSE BLOCK *****
2  * FW4SPL - Copyright (C) IRCAD, 2017.
3  * Distributed under the terms of the GNU Lesser General Public License (LGPL) as
4  * published by the Free Software Foundation.
5  * ****** END LICENSE BLOCK ****** */
6 
7 #ifndef __FWGDCMIO_HELPER_DICOMCODEDATTRIBUTE_HPP__
8 #define __FWGDCMIO_HELPER_DICOMCODEDATTRIBUTE_HPP__
9 
10 #include "fwGdcmIO/config.hpp"
11 #include "fwGdcmIO/container/DicomCodedAttribute.hpp"
12 
13 #include <gdcmSegment.h>
14 
15 namespace fwGdcmIO
16 {
17 
18 namespace helper
19 {
20 
24 class FWGDCMIO_CLASS_API DicomCodedAttribute
25 {
26 public:
27 
29  typedef std::vector< ::fwGdcmIO::container::DicomCodedAttribute > DicomCodedAttributeVectorType;
30 
36  FWGDCMIO_API static DicomCodedAttributeVectorType convertEntryToCodedAttribute(const std::string& entry);
37 
43  FWGDCMIO_API static ::gdcm::Segment::BasicCodedEntryVector
44  convertEntryToGDCMCodedAttribute(const std::string& entry);
45 
53  FWGDCMIO_API static bool checkAndFormatEntry(std::string& entry, bool multipleValue = false);
54 
55 };
56 
57 } // namespace helper
58 } // namespace fwGdcmIO
59 
60 #endif // __FWGDCMIO_HELPER_DICOMCODEDATTRIBUTE_HPP__
61 
The namespace fwGdcmIO contains reader, writer and helper for dicom data.
Helper class to manage DICOM coded attributes.
std::vector< ::fwGdcmIO::container::DicomCodedAttribute > DicomCodedAttributeVectorType
DicomCodedAttribute container type.