]> Creatis software - gdcm.git/commitdiff
ajout fonctions
authorjpr <jpr>
Thu, 9 Jan 2003 17:03:37 +0000 (17:03 +0000)
committerjpr <jpr>
Thu, 9 Jan 2003 17:03:37 +0000 (17:03 +0000)
int SetShaElValByName(string content, string ShadowTagName);
int SetShaElValByNumber(string content, guint16 group, guint16 element);

src/gdcm.h
src/gdcmHeader.cxx

index 20e754130838cf96c8a8a59dfcda04d60a356197..d990d369d7112db1867bd15d3e4cfe5baaded7cd 100644 (file)
@@ -479,8 +479,8 @@ public:
 
        int SetPubElValByName(string content, string TagName);
        int SetPubElValByNumber(string content, guint16 group, guint16 element);
-       // TODO Swig int SetShaElValByName(string content, string ShadowTagName);
-       // TODO Swig int SetShaElValByNumber(string content, guint16 group, guint16 element);
+       int SetShaElValByName(string content, string ShadowTagName);
+       int SetShaElValByNumber(string content, guint16 group, guint16 element);
 
 };
 
index be4f259aecdd88fbfa28d773774f1b48df182871..00468e79ea0fbef3f83220f5ab86692ebfa3e3d7 100644 (file)
@@ -1111,6 +1111,29 @@ int gdcmHeader::SetPubElValByName(string content, string TagName) {
        return (  PubElVals.SetElValueByName (content, TagName) );
 }
 
+
+/**
+ * \ingroup gdcmHeader
+ * \brief   Modifie la valeur d'un ElValue déja existant
+ * \   dans le ShaElVals du gdcmHeader,
+ * \   accédé par ses numero de groupe et d'element.
+ */
+int gdcmHeader::SetShaElValByNumber(string content, guint16 group, guint16 element) {
+       
+       return (  ShaElVals.SetElValueByNumber (content, group, element) );
+}
+
+
+/**
+ * \ingroup gdcmHeader
+ * \brief   Modifie la valeur d'un ElValue déja existant
+ * \   dans le ShaElVals du gdcmHeader,
+ * \   accédé par son nom
+ */
+int gdcmHeader::SetShaElValByName(string content, string TagName) {
+       
+       return (  ShaElVals.SetElValueByName (content, TagName) );
+}
 /**
  * \ingroup gdcmHeader
  * \brief   Parses the header of the file but does NOT load element values.