From: regrain Date: Wed, 4 Feb 2004 08:00:05 +0000 (+0000) Subject: * FIX : WriteEntries : coding style & logic in parameters X-Git-Tag: Version0.4~32 X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=commitdiff_plain;h=cc3e689024eb9b36d9d8db4f977fd04512282a48;p=gdcm.git * FIX : WriteEntries : coding style & logic in parameters -- BeNours --- diff --git a/ChangeLog b/ChangeLog index 7810b1a5..4f5da957 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,6 @@ +2004-02-04 Benoit Regrain + * FIX : WriteEntries : coding style & logic in parameters + 2004-02-03 Benoit Regrain * gdcmDirList : to parse a hard drive directory in recursive (or not) * gdcmDicomDir : add the load of directory diff --git a/gdcmPython/win32/_vtkGdcm.dsp b/gdcmPython/win32/_vtkGdcm.dsp index 596f6a4a..b09c016c 100644 --- a/gdcmPython/win32/_vtkGdcm.dsp +++ b/gdcmPython/win32/_vtkGdcm.dsp @@ -74,6 +74,10 @@ SOURCE=..\..\src\gdcmDictSet.cxx # End Source File # Begin Source File +SOURCE=..\..\src\gdcmDirList.cxx +# End Source File +# Begin Source File + SOURCE=..\..\src\gdcmException.cxx # End Source File # Begin Source File @@ -166,6 +170,10 @@ SOURCE=..\vtkGdcmReaderPython.cxx # PROP Default_Filter "h;hpp;hxx;hm;inl" # Begin Source File +SOURCE=..\..\src\gdcmDirList.h +# End Source File +# Begin Source File + SOURCE=.\init.h # Begin Custom Build - Performing Custom Build Step on $(VTKPATH)\bin\initwrappythonwin32 vtkgdcmPython vtkGdmReader > $(ProjDir)\vtkGdcmInit.cxx ProjDir=. diff --git a/gdcmPython/win32/gdcmpyembedded.dsp b/gdcmPython/win32/gdcmpyembedded.dsp index de390fe5..51f6b8da 100644 --- a/gdcmPython/win32/gdcmpyembedded.dsp +++ b/gdcmPython/win32/gdcmpyembedded.dsp @@ -53,7 +53,7 @@ LINK32=link.exe # Begin Special Build Tool ProjDir=. SOURCE="$(InputPath)" -PostBuild_Cmds=move $(ProjDir)\gdcm.py $(ProjDir)\..\ +PostBuild_Cmds=move $(ProjDir)\gdcm.py $(ProjDir)\..\ # End Special Build Tool # Begin Target @@ -96,6 +96,10 @@ SOURCE=..\..\src\gdcmDictSet.cxx # End Source File # Begin Source File +SOURCE=..\..\src\gdcmDirList.cxx +# End Source File +# Begin Source File + SOURCE=..\..\src\gdcmException.cxx # End Source File # Begin Source File diff --git a/setup.py b/setup.py index 6aeda18e..65a53960 100644 --- a/setup.py +++ b/setup.py @@ -63,7 +63,8 @@ for Remove in Jpeg8SourcesToRemove: Sources.extend(Jpeg8Sources) Jpeg12Sources = glob.glob(os.path.join(gdcmJpeg12SrcDir,"j*.c")) -Jpeg12SourcesToRemove = ['jmemansi12.c', 'jmemname12.c', 'jmemdos12.c', 'jmemmac12.c'] +Jpeg12SourcesToRemove = ['jmemansi12.c', 'jmemname12.c', 'jmemdos12.c', + 'jmemmac12.c'] for Remove in Jpeg12SourcesToRemove: ### Because setup.py is a multiple pass process we need to trap ### the case where the files were allready wed out on a previous pass. diff --git a/src/gdcmDicomDir.cxx b/src/gdcmDicomDir.cxx index 111f0e0f..cd1ab61b 100644 --- a/src/gdcmDicomDir.cxx +++ b/src/gdcmDicomDir.cxx @@ -289,7 +289,7 @@ bool gdcmDicomDir::Write(std::string fileName) fwrite("DICM",4,1,fp1); free(filePreamble); - WriteEntries(DICOMDIR,fp1); + WriteEntries(fp1,DICOMDIR); fclose(fp1); diff --git a/src/gdcmParser.cxx b/src/gdcmParser.cxx index 68ef779b..178a7534 100644 --- a/src/gdcmParser.cxx +++ b/src/gdcmParser.cxx @@ -434,7 +434,7 @@ bool gdcmParser::Write(FILE *fp, FileType type) { UpdateGroupLength(true,ACR); */ - WriteEntries(type, fp); + WriteEntries(fp,type); return(true); } @@ -1004,7 +1004,7 @@ void gdcmParser::UpdateGroupLength(bool SkipSequence, FileType type) { * (ACR-NEMA, ExplicitVR, ImplicitVR) * @param _fp already open file pointer */ -void gdcmParser::WriteEntries(FileType type, FILE * _fp) +void gdcmParser::WriteEntries(FILE *_fp,FileType type) { guint16 gr, el; guint32 lgr; diff --git a/src/gdcmParser.h b/src/gdcmParser.h index d4739016..be88d134 100644 --- a/src/gdcmParser.h +++ b/src/gdcmParser.h @@ -134,7 +134,7 @@ protected: void LoadHeaderEntrySafe(gdcmHeaderEntry *); void UpdateGroupLength(bool SkipSequence = false, FileType type = ImplicitVR); - void WriteEntries(FileType type, FILE *); + void WriteEntries(FILE *_fp,FileType type); // Variables FILE *fp; diff --git a/vtk/win32/vtkgdcm.dsp b/vtk/win32/vtkgdcm.dsp index 9a90affe..15ac4449 100644 --- a/vtk/win32/vtkgdcm.dsp +++ b/vtk/win32/vtkgdcm.dsp @@ -112,6 +112,10 @@ SOURCE=..\..\src\gdcmDictSet.cxx # End Source File # Begin Source File +SOURCE=..\..\src\gdcmDirList.cxx +# End Source File +# Begin Source File + SOURCE=..\..\src\gdcmException.cxx # End Source File # Begin Source File @@ -174,10 +178,6 @@ SOURCE=..\vtkGdcmReader.cxx # Begin Group "Header Files" # PROP Default_Filter "h;hpp;hxx;hm;inl" -# Begin Source File - -SOURCE=..\vtkGdcmReader.h -# End Source File # End Group # Begin Group "Resource Files" @@ -197,6 +197,10 @@ SOURCE=c:\Creatis\vtkDistrib\lib\vtk\vtkFiltering.lib # End Group # Begin Source File +SOURCE=..\..\src\gdcmDirList.h +# End Source File +# Begin Source File + SOURCE=..\..\lib\libgdcmljpeg.lib # End Source File # Begin Source File