comparison Core/DicomFormat/DicomTag.cpp @ 35:f6d12037f886

full json vs. simplified json
author Sebastien Jodogne <s.jodogne@gmail.com>
date Thu, 30 Aug 2012 12:24:31 +0200
parents 3959d33612cc
children a15e90e5d6fc
comparison
equal deleted inserted replaced
34:96e57b863dd9 35:f6d12037f886
22 22
23 #include "../PalantirException.h" 23 #include "../PalantirException.h"
24 24
25 #include <iostream> 25 #include <iostream>
26 #include <iomanip> 26 #include <iomanip>
27 #include <stdio.h>
27 28
28 namespace Palantir 29 namespace Palantir
29 { 30 {
30 bool DicomTag::operator< (const DicomTag& other) const 31 bool DicomTag::operator< (const DicomTag& other) const
31 { 32 {
49 o.flags(state); 50 o.flags(state);
50 return o; 51 return o;
51 } 52 }
52 53
53 54
55 std::string DicomTag::Format() const
56 {
57 char b[16];
58 sprintf(b, "%04x,%04x", group_, element_);
59 return std::string(b);
60 }
61
62
54 const DicomTag DicomTag::ACCESSION_NUMBER = DicomTag(0x0008, 0x0050); 63 const DicomTag DicomTag::ACCESSION_NUMBER = DicomTag(0x0008, 0x0050);
55 const DicomTag DicomTag::IMAGE_INDEX = DicomTag(0x0054, 0x1330); 64 const DicomTag DicomTag::IMAGE_INDEX = DicomTag(0x0054, 0x1330);
56 const DicomTag DicomTag::INSTANCE_UID = DicomTag(0x0008, 0x0018); 65 const DicomTag DicomTag::INSTANCE_UID = DicomTag(0x0008, 0x0018);
57 const DicomTag DicomTag::NUMBER_OF_SLICES = DicomTag(0x0054, 0x0081); 66 const DicomTag DicomTag::NUMBER_OF_SLICES = DicomTag(0x0054, 0x0081);
58 const DicomTag DicomTag::PATIENT_ID = DicomTag(0x0010, 0x0020); 67 const DicomTag DicomTag::PATIENT_ID = DicomTag(0x0010, 0x0020);