From: regrain Date: Tue, 18 May 2004 09:00:19 +0000 (+0000) Subject: * gdcmPython/gdcm.i : remove useless lines concerning the gdcmGlobal X-Git-Tag: Version0.5.bp~159 X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=commitdiff_plain;h=645dacff6426c762be09138f66b4cfb2d8d47b18;p=gdcm.git * gdcmPython/gdcm.i : remove useless lines concerning the gdcmGlobal gdcmGlob * gdcmPython/setup.py : replace the use of cvar.gdcmGlob to gdcmGlobal * src/gdcmUtil.h : export methods -- BeNours --- diff --git a/ChangeLog b/ChangeLog index 04687036..edc45a8b 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2004-05-18 Benoit Regrain + * gdcmPython/gdcm.i : remove useless lines concerning the gdcmGlobal + gdcmGlob + * gdcmPython/setup.py : replace the use of cvar.gdcmGlob to gdcmGlobal + * src/gdcmUtil.h : export methods + 2004-05-16 Mathieu Malaterre * Some more cleanup/enhancement in gdcmPython/CMakeLists.txt getting close to right behavior diff --git a/gdcmPython/__init__.py b/gdcmPython/__init__.py index 8a73b05b..ced744ed 100644 --- a/gdcmPython/__init__.py +++ b/gdcmPython/__init__.py @@ -85,7 +85,7 @@ gdcmDicomDirSerie = gdcm.gdcmDicomDirSerie gdcmDicomDirImage = gdcm.gdcmDicomDirImage def GetPubDictEntryNames(): - return gdcm.cvar.gdcmGlob.GetDicts().GetPubDictEntryNames() + return gdcmGlobal.GetDicts().GetPubDictEntryNames() def GetPubDictEntryNamesByCategory(): - return gdcm.cvar.gdcmGlob.GetDicts().GetPubDictEntryNamesByCategory() + return gdcmGlobal.GetDicts().GetPubDictEntryNamesByCategory() diff --git a/gdcmPython/gdcm.i b/gdcmPython/gdcm.i index a5f90015..a92fc741 100644 --- a/gdcmPython/gdcm.i +++ b/gdcmPython/gdcm.i @@ -67,12 +67,6 @@ void gdcmPythonVoidFuncArgDelete(void *arg) typedef unsigned short guint16; typedef unsigned int guint32; -//////////////////////////////////////////////////////////////////////////// -// Global variables get exported to cvar in Python -%immutable; -extern gdcmGlobal gdcmGlob; -%mutable; - //////////////////////////////////////////////////////////////////////////// %typemap(out) std::list * { PyObject* NewItem = (PyObject*)0; diff --git a/src/gdcmUtil.h b/src/gdcmUtil.h index b77fcb24..403397b7 100644 --- a/src/gdcmUtil.h +++ b/src/gdcmUtil.h @@ -6,6 +6,8 @@ #include #include +#include "gdcmCommon.h" + /** * \defgroup Globals Utility functions * \brief Here are some utility functions, belonging to NO class, @@ -14,15 +16,15 @@ */ //----------------------------------------------------------------------------- -std::istream & eatwhite(std::istream & is); +GDCM_EXPORT std::istream & eatwhite(std::istream & is); -void Tokenize (const std::string& str, +GDCM_EXPORT void Tokenize (const std::string& str, std::vector& tokens, const std::string& delimiters = " "); -std::string CreateCleanString(std::string s); -void NormalizePath(std::string &name); -std::string GetPath(std::string &fullName); -std::string GetName(std::string &fullName); +GDCM_EXPORT std::string CreateCleanString(std::string s); +GDCM_EXPORT void NormalizePath(std::string &name); +GDCM_EXPORT std::string GetPath(std::string &fullName); +GDCM_EXPORT std::string GetName(std::string &fullName); //----------------------------------------------------------------------------- #endif