comparison OrthancFramework/Sources/DicomFormat/DicomTag.cpp @ 4313:91554aecff9a

removed a friend method for better abi
author Sebastien Jodogne <s.jodogne@gmail.com>
date Mon, 09 Nov 2020 16:09:05 +0100
parents 785a2713323e
children 93c281752e7a
comparison
equal deleted inserted replaced
4312:6d49e3b6ff77 4313:91554aecff9a
118 { 118 {
119 return !(*this == other); 119 return !(*this == other);
120 } 120 }
121 121
122 122
123 std::ostream& operator<< (std::ostream& o, const DicomTag& tag) 123 std::ostream& DicomTag::FormatStream(std::ostream& o) const
124 { 124 {
125 using namespace std; 125 using namespace std;
126 ios_base::fmtflags state = o.flags(); 126 ios_base::fmtflags state = o.flags();
127 o.flags(ios::right | ios::hex); 127 o.flags(ios::right | ios::hex);
128 o << "(" << setfill('0') << setw(4) << tag.GetGroup() 128 o << "(" << setfill('0') << setw(4) << GetGroup()
129 << "," << setw(4) << tag.GetElement() << ")"; 129 << "," << setw(4) << GetElement() << ")";
130 o.flags(state); 130 o.flags(state);
131 return o; 131 return o;
132 } 132 }
133 133
134 134