+/**
+ * \ingroup gdcmDict
+ * \brief Print all the dictionary entries contained in this dictionary.
+ * Entries will be sorted by the name of the dictionary entries.
+ * @param os The output stream to be written to.
+ */
+void gdcmDict::PrintByName(std::ostream& os) {
+ for (TagNameHT::iterator tag = NameHt.begin(); tag != NameHt.end(); ++tag){
+ os << "Tag : ";
+ os << tag->second->GetName() << ",";
+ os << tag->second->GetVR() << ", ";
+ os << tag->second->GetFourth() << ", ";
+ os << "(" << std::hex << tag->second->GetGroup() << ',';
+ os << std::hex << tag->second->GetElement() << ") = " << dec << std::endl;
+ }
+}