comparison OrthancFramework/Sources/DicomFormat/DicomElement.h @ 4297:785a2713323e

abi continued
author Sebastien Jodogne <s.jodogne@gmail.com>
date Thu, 05 Nov 2020 17:20:49 +0100
parents bf7b9edf6b81
children d9473bd5ed43
comparison
equal deleted inserted replaced
4296:3b70a2e6a06c 4297:785a2713323e
34 DicomValue* value_; 34 DicomValue* value_;
35 35
36 public: 36 public:
37 DicomElement(uint16_t group, 37 DicomElement(uint16_t group,
38 uint16_t element, 38 uint16_t element,
39 const DicomValue& value) : 39 const DicomValue& value);
40 tag_(group, element),
41 value_(value.Clone())
42 {
43 }
44 40
45 DicomElement(const DicomTag& tag, 41 DicomElement(const DicomTag& tag,
46 const DicomValue& value) : 42 const DicomValue& value);
47 tag_(tag),
48 value_(value.Clone())
49 {
50 }
51 43
52 ~DicomElement() 44 ~DicomElement();
53 {
54 delete value_;
55 }
56 45
57 const DicomTag& GetTag() const 46 const DicomTag& GetTag() const;
58 {
59 return tag_;
60 }
61 47
62 const DicomValue& GetValue() const 48 const DicomValue& GetValue() const;
63 {
64 return *value_;
65 }
66 49
67 uint16_t GetTagGroup() const 50 uint16_t GetTagGroup() const;
68 {
69 return tag_.GetGroup();
70 }
71 51
72 uint16_t GetTagElement() const 52 uint16_t GetTagElement() const;
73 {
74 return tag_.GetElement();
75 }
76 53
77 bool operator< (const DicomElement& other) const 54 bool operator< (const DicomElement& other) const;
78 {
79 return GetTag() < other.GetTag();
80 }
81 }; 55 };
82 } 56 }