]> Creatis software - gdcm.git/blobdiff - src/gdcmElValSet.cxx
Adding :
[gdcm.git] / src / gdcmElValSet.cxx
index 2d15a1793801eaed1367ae58766cbe35e135664a..db65110c41e5fc6839227524b0794e84d7248394 100644 (file)
@@ -34,6 +34,19 @@ void gdcmElValSet::Add(gdcmElValue * newElValue) {
        NameHt[newElValue->GetName()] = newElValue;
 }
 
+
+/**
+ * \ingroup gdcmElValSet
+ * \brief   Checks if a given Dicom element exists
+ * \        within a ElValSet
+ * @param     
+ * @return  
+ */
+int gdcmElValSet::CheckIfExistByNumber(guint16 Group, guint16 Elem ) {
+       string key = TranslateToKey(Group, Elem );
+       return (tagHt.count(key));
+}
+
 /**
  * \ingroup gdcmElValSet
  * \brief