+//-----------------------------------------------------------------------------
+// Public
+
+/**
+ * \brief Simple predicate that checks whether the given argument
+ * corresponds to the Value Representation of a \ref BinEntry .
+ * @param tested value representation to check for.
+ */
+bool VR::IsVROfBinaryRepresentable(VRKey const &tested)
+{
+ //if ( tested == GDCM_UNKNOWN)
+ //{
+ //std::cout << "---------- never used --------------" << tested
+ // << std::endl;
+ // return true;
+ //}
+
+ if ( IsVROfStringRepresentable(tested) )
+ return false;
+
+ if ( IsVROfSequence(tested) )
+ return false;
+
+ return true;
+}
+
+/**
+ * \brief Simple predicate that checks whether the given argument
+ * corresponds to the Value Representation of a \ref ValEntry
+ * but NOT a \ref BinEntry.
+ * @param tested value representation to be checked.
+ */
+bool VR::IsVROfStringRepresentable(VRKey const &tested)
+{
+
+/*
+ return tested == "AE" ||
+ tested == "AS" ||
+ tested == "CS" ||
+ tested == "DA" ||
+ tested == "DS" ||
+ tested == "IS" ||
+ tested == "LO" ||
+ tested == "LT" ||
+ tested == "PN" ||
+ tested == "SH" ||
+ tested == "SL" ||
+ tested == "SS" ||
+ tested == "ST" ||
+ tested == "TM" ||
+ tested == "UI" ||
+ tested == "UL" ||
+ tested == "US" ||
+ tested == "UT";
+*/
+ // Should be quicker
+
+ return tested != "FL" &&
+ tested != "FD" &&
+ tested != "OB" &&
+ tested != "OW" &&
+ tested != "SQ" ;
+
+}
+
+//-----------------------------------------------------------------------------
+// Protected
+
+//-----------------------------------------------------------------------------
+// Private
+
+//-----------------------------------------------------------------------------
+// Print
+/**
+ * \brief Print all
+ * @param os The output stream to be written to.
+ */
+void VR::Print(std::ostream &os)
+{
+ std::ostringstream s;
+
+ for (VRHT::iterator it = vr.begin(); it != vr.end(); ++it)
+ {
+ s << "VR : " << it->first << " = " << it->second << std::endl;
+ }
+ os << s.str();