]> Creatis software - gdcm.git/blobdiff - gdcmPython/gdcm.i
Doxygenation
[gdcm.git] / gdcmPython / gdcm.i
index 8b897682b924e08515f8813ce2f337a3b52d19fd..2678d19f159ae31e03271fa10282f512dfb5fef9 100644 (file)
@@ -1,6 +1,7 @@
 %module gdcm
 %{
 #include "gdcmCommon.h"
+#include "gdcmBase.h"
 #include "gdcmDict.h"
 #include "gdcmDictEntry.h"
 #include "gdcmDictSet.h"
@@ -140,8 +141,8 @@ using namespace gdcm;
       NewKey = PyString_FromString(RawName.c_str());
 
       // Element values are striped from leading/trailing spaces
-      if (gdcm::ValEntry* ValEntryPtr =
-                dynamic_cast< gdcm::ValEntry* >(tag->second) )
+         gdcm::ValEntry* ValEntryPtr = dynamic_cast< gdcm::ValEntry* >(tag->second);
+      if ( ValEntryPtr )
       {
          RawValue = ValEntryPtr->GetValue();
       }
@@ -273,6 +274,7 @@ using namespace gdcm;
 ////////////////////////////////////////////////////////////////////////////
 // Warning: Order matters !
 %include "gdcmCommon.h"
+%include "gdcmBase.h"
 %include "gdcmDictEntry.h"
 %include "gdcmDict.h"
 %include "gdcmDocEntrySet.h"