]> Creatis software - gdcm.git/commitdiff
Cosmetic modifs to be more Coding style compliant
authorjpr <jpr>
Fri, 24 Sep 2004 11:39:21 +0000 (11:39 +0000)
committerjpr <jpr>
Fri, 24 Sep 2004 11:39:21 +0000 (11:39 +0000)
22 files changed:
src/CMakeLists.txt
src/gdcmBinEntry.cxx
src/gdcmDicomDir.cxx
src/gdcmDicomDir.h
src/gdcmDicomDirMeta.cxx
src/gdcmDicomDirPatient.cxx
src/gdcmDicomDirSerie.cxx
src/gdcmDicomDirStudy.cxx
src/gdcmDocument.cxx
src/gdcmElementSet.cxx
src/gdcmFile.cxx
src/gdcmFile.h
src/gdcmJpeg.cxx
src/gdcmJpeg12.cxx
src/gdcmJpeg2000.cxx
src/gdcmParsePixels.cxx
src/gdcmPixelStuff.cxx [new file with mode: 0644]
src/gdcmPixelStuff.h [new file with mode: 0644]
src/gdcmRLE.cxx
src/gdcmSQItem.cxx
src/gdcmSeqEntry.cxx
src/gdcmValEntry.cxx

index a57e007f73ae5f63b997746848b2fa5ef0549b62..0e22d4792b7ae9506d90300cc0c35387dabcc87b 100644 (file)
@@ -45,6 +45,7 @@ SET(libgdcm_la_SOURCES
    gdcmDicomDirSerie.cxx
    gdcmDicomDirImage.cxx
    gdcmDicomDirObject.cxx
+   gdcmPixelStuff.cxx
    )
 
 ADD_LIBRARY(gdcm ${libgdcm_la_SOURCES} )
index d15def828fbcb27e2a59ba0763fdebabd4be7cf1..48d01ebaef449f8378cf363b0c839fed33239594 100644 (file)
@@ -3,8 +3,8 @@
   Program:   gdcm
   Module:    $RCSfile: gdcmBinEntry.cxx,v $
   Language:  C++
-  Date:      $Date: 2004/09/23 10:17:26 $
-  Version:   $Revision: 1.30 $
+  Date:      $Date: 2004/09/24 11:39:21 $
+  Version:   $Revision: 1.31 $
                                                                                 
   Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de
   l'Image). All rights reserved. See Doc/License.txt or
@@ -71,7 +71,7 @@ void gdcmBinEntry::Print(std::ostream &os)
 {
    gdcmDocEntry::Print(os);
    std::ostringstream s;
-   void *binArea = GetBinArea();
+   voidbinArea = GetBinArea();
    if (binArea)
    {
       //s << " [" << GDCM_BINLOADED 
@@ -99,10 +99,10 @@ void gdcmBinEntry::Print(std::ostream &os)
  * @param fp already open file pointer
  * @param filetype type of the file to be written
 */
-void gdcmBinEntry::Write(FILE *fp, FileType filetype)
+void gdcmBinEntry::Write(FILEfp, FileType filetype)
 {
    gdcmDocEntry::Write(fp, filetype);
-   void *binArea = GetBinArea();
+   voidbinArea = GetBinArea();
    int lgr = GetLength();
    if (binArea)
    {
index e920abfe2464db1cd6dba1299aec3e3bfa574962..196156a7d7c8010705cd44eb6d631f88a1dc9509 100644 (file)
@@ -3,8 +3,8 @@
   Program:   gdcm
   Module:    $RCSfile: gdcmDicomDir.cxx,v $
   Language:  C++
-  Date:      $Date: 2004/09/23 10:47:10 $
-  Version:   $Revision: 1.68 $
+  Date:      $Date: 2004/09/24 11:39:21 $
+  Version:   $Revision: 1.69 $
   
   Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de
   l'Image). All rights reserved. See Doc/License.txt or
@@ -233,8 +233,8 @@ void gdcmDicomDir::ParseDirectory()
  * @param   argDelete    Argument 
  * \warning In python : the arg parameter isn't considered
  */
-void gdcmDicomDir::SetStartMethod(gdcmMethod *method, void *arg, 
-                                  gdcmMethod *argDelete )
+void gdcmDicomDir::SetStartMethod(gdcmMethod* method, void* arg, 
+                                  gdcmMethodargDelete )
 {
    if( startArg && startMethodArgDelete )
    {
@@ -253,7 +253,7 @@ void gdcmDicomDir::SetStartMethod(gdcmMethod *method, void *arg,
  *          class is destroyed
  * @param   method Method to call to delete the argument
  */
-void gdcmDicomDir::SetStartMethodArgDelete(gdcmMethod *method) 
+void gdcmDicomDir::SetStartMethodArgDelete(gdcmMethodmethod) 
 {
    startMethodArgDelete = method;
 }
@@ -266,8 +266,8 @@ void gdcmDicomDir::SetStartMethodArgDelete(gdcmMethod *method)
  * @param   argDelete    Argument  
  * \warning In python : the arg parameter isn't considered
  */
-void gdcmDicomDir::SetProgressMethod(gdcmMethod *method, void *arg, 
-                                     gdcmMethod *argDelete )
+void gdcmDicomDir::SetProgressMethod(gdcmMethod* method, void* arg, 
+                                     gdcmMethodargDelete )
 {
    if( progressArg && progressMethodArgDelete )
    {
@@ -286,7 +286,7 @@ void gdcmDicomDir::SetProgressMethod(gdcmMethod *method, void *arg,
  *          class is destroyed          
  * @param   method Method to call to delete the argument
  */
-void gdcmDicomDir::SetProgressMethodArgDelete(gdcmMethod *method)
+void gdcmDicomDir::SetProgressMethodArgDelete(gdcmMethodmethod)
 {
    progressMethodArgDelete = method;
 }
@@ -299,8 +299,8 @@ void gdcmDicomDir::SetProgressMethodArgDelete(gdcmMethod *method)
  * @param   argDelete    Argument 
  * \warning In python : the arg parameter isn't considered
  */
-void gdcmDicomDir::SetEndMethod(gdcmMethod *method, void *arg, 
-                                gdcmMethod *argDelete )
+void gdcmDicomDir::SetEndMethod(gdcmMethod* method, void* arg, 
+                                gdcmMethodargDelete )
 {
    if( endArg && endMethodArgDelete )
    {
@@ -319,7 +319,7 @@ void gdcmDicomDir::SetEndMethod(gdcmMethod *method, void *arg,
  *          is destroyed
  * @param   method Method to call to delete the argument
  */
-void gdcmDicomDir::SetEndMethodArgDelete(gdcmMethod *method)
+void gdcmDicomDir::SetEndMethodArgDelete(gdcmMethodmethod)
 {
    endMethodArgDelete = method;
 }
@@ -336,12 +336,12 @@ void gdcmDicomDir::SetEndMethodArgDelete(gdcmMethod *method)
  * @return false only when fail to open
  */
  
-bool gdcmDicomDir::WriteDicomDir(std::string const & fileName) 
+bool gdcmDicomDir::WriteDicomDir(std::string const& fileName) 
 {  
    uint16_t sq[4] = { 0x0004, 0x1220, 0xffff, 0xffff };
    uint16_t sqt[4]= { 0xfffe, 0xe0dd, 0xffff, 0xffff };
 
-   FILE * fp = fopen(fileName.c_str(), "wb");
+   FILE* fp = fopen(fileName.c_str(), "wb");
    if( !fp ) 
    {
       printf("Failed to open(write) File [%s] \n", fileName.c_str());
index 27664a2bfdbbb521be9f2bd7b923c2f42ff9dc30..b58851d6104c3f9c86d28cd1075e93a68c63cd78 100644 (file)
@@ -3,8 +3,8 @@
   Program:   gdcm
   Module:    $RCSfile: gdcmDicomDir.h,v $
   Language:  C++
-  Date:      $Date: 2004/09/23 23:28:19 $
-  Version:   $Revision: 1.30 $
+  Date:      $Date: 2004/09/24 11:39:21 $
+  Version:   $Revision: 1.31 $
   
   Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de
   l'Image). All rights reserved. See Doc/License.txt or
@@ -32,7 +32,7 @@
 typedef std::list<gdcmDicomDirPatient*>   ListDicomDirPatient;
 typedef std::vector<gdcmDocument*>  VectDocument;
 
-typedef GDCM_EXPORT void(gdcmMethod)(void * = NULL);
+typedef GDCM_EXPORT void(gdcmMethod)(void* = NULL);
 //-----------------------------------------------------------------------------
 
 /**
@@ -64,12 +64,12 @@ public:
 // Parsing
    void ParseDirectory();
    
-   void SetStartMethod(gdcmMethod *,void * =NULL,gdcmMethod * =NULL);
-   void SetStartMethodArgDelete(gdcmMethod *);
-   void SetProgressMethod(gdcmMethod *,void * =NULL,gdcmMethod * =NULL);
-   void SetProgressMethodArgDelete(gdcmMethod *);
-   void SetEndMethod(gdcmMethod *,void * =NULL,gdcmMethod * =NULL);
-   void SetEndMethodArgDelete(gdcmMethod *);
+   void SetStartMethod(gdcmMethod*, void* = NULL, gdcmMethod* = NULL);
+   void SetStartMethodArgDelete(gdcmMethod*);
+   void SetProgressMethod(gdcmMethod* ,void* = NULL, gdcmMethod* = NULL);
+   void SetProgressMethodArgDelete(gdcmMethod*);
+   void SetEndMethod(gdcmMethod*, void* = NULL,gdcmMethod* = NULL);
+   void SetEndMethodArgDelete(gdcmMethod*);
 
    /// GetProgress GetProgress
    float GetProgress()  { return progress; };
@@ -108,43 +108,43 @@ private:
    void Initialize();
    void CreateDicomDir();
    void AddDicomDirMeta();
-   void AddDicomDirPatientToEnd(gdcmSQItem *s);
-   void AddDicomDirStudyToEnd  (gdcmSQItem *s);
-   void AddDicomDirSerieToEnd  (gdcmSQItem *s);
-   void AddDicomDirImageToEnd  (gdcmSQItem *s);
+   void AddDicomDirPatientToEnd(gdcmSQItems);
+   void AddDicomDirStudyToEnd  (gdcmSQItems);
+   void AddDicomDirSerieToEnd  (gdcmSQItems);
+   void AddDicomDirImageToEnd  (gdcmSQItems);
 
    void SetElements(std::string &path, VectDocument &list);
    void SetElement (std::string &path,gdcmDicomDirType type,
-                    gdcmDocument *header);
+                    gdcmDocumentheader);
 
-   static bool HeaderLessThan(gdcmDocument *header1,gdcmDocument *header2);
+   static bool HeaderLessThan(gdcmDocument* header1,gdcmDocument* header2);
    
 // Variables
 
    /// Pointer on *the* gdcmDicomDirObject 'DicomDirMeta Elements'
-   gdcmDicomDirMeta *metaElems;
+   gdcmDicomDirMetametaElems;
 
    /// Chained list of DicomDirPatient (to be exploited recursively) 
    ListDicomDirPatient patients;
 
 /// pointer to the initialisation method for any progress bar   
-   gdcmMethod *startMethod;
+   gdcmMethodstartMethod;
 /// pointer to the incrementation method for any progress bar
-    gdcmMethod *progressMethod;
+    gdcmMethodprogressMethod;
 /// pointer to the termination method for any progress bar
-   gdcmMethod *endMethod;
+   gdcmMethodendMethod;
 /// pointer to the ??? method for any progress bar   
-   gdcmMethod *startMethodArgDelete;
+   gdcmMethodstartMethodArgDelete;
 /// pointer to the ??? method for any progress bar
-   gdcmMethod *progressMethodArgDelete;
+   gdcmMethodprogressMethodArgDelete;
 /// pointer to the ??? method for any progress bar
-   gdcmMethod *endMethodArgDelete;
+   gdcmMethodendMethodArgDelete;
 /// pointer to the ??? for any progress bar   
-   void *startArg;
+   voidstartArg;
 /// pointer to the ??? for any progress bar
-   void *progressArg;
+   voidprogressArg;
 /// pointer to the ??? for any progress bar   
-   void *endArg;
+   voidendArg;
 /// value of the ??? for any progress bar
    float progress;
 /// value of the ??? for any progress bar   
index 116acf30bb08a54eb0cb35082332e3f44fa3ca51..d04756c4a7d2be62a0f02745e2c3ec146a229f3d 100644 (file)
@@ -3,8 +3,8 @@
   Program:   gdcm
   Module:    $RCSfile: gdcmDicomDirMeta.cxx,v $
   Language:  C++
-  Date:      $Date: 2004/09/23 10:47:10 $
-  Version:   $Revision: 1.9 $
+  Date:      $Date: 2004/09/24 11:39:21 $
+  Version:   $Revision: 1.10 $
                                                                                 
   Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de
   l'Image). All rights reserved. See Doc/License.txt or
@@ -26,7 +26,7 @@
  * \ingroup gdcmMeta
  * \brief  Constructor
  */ 
-gdcmDicomDirMeta::gdcmDicomDirMeta(TagDocEntryHT *ptagHT):
+gdcmDicomDirMeta::gdcmDicomDirMeta(TagDocEntryHTptagHT):
    gdcmDicomDirObject(ptagHT)
 {
 
@@ -46,7 +46,7 @@ gdcmDicomDirMeta::~gdcmDicomDirMeta()
 /**
  * \brief   Prints the Meta Elements
  */ 
-void gdcmDicomDirMeta::Print(std::ostream &os)
+void gdcmDicomDirMeta::Print(std::ostreamos)
 {
    os << "META" << std::endl;
    // warning : META doesn't behave exactly like a gdcmObjet 
@@ -65,7 +65,7 @@ void gdcmDicomDirMeta::Print(std::ostream &os)
  * \brief   Writes the Meta Elements
  * @return
  */ 
-void gdcmDicomDirMeta::Write(FILE *fp, FileType t)
+void gdcmDicomDirMeta::Write(FILEfp, FileType t)
 {   
    for (ListDocEntry::iterator i = docEntries.begin();  
         i != docEntries.end();
index 08df0cd531b794e41cbc1503896002065ca98146..45e101764bc9ddfe1f67e5d54f585e17fae3c964 100644 (file)
@@ -3,8 +3,8 @@
   Program:   gdcm
   Module:    $RCSfile: gdcmDicomDirPatient.cxx,v $
   Language:  C++
-  Date:      $Date: 2004/09/23 10:47:10 $
-  Version:   $Revision: 1.12 $
+  Date:      $Date: 2004/09/24 11:39:21 $
+  Version:   $Revision: 1.13 $
                                                                                 
   Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de
   l'Image). All rights reserved. See Doc/License.txt or
@@ -38,7 +38,7 @@ gdcmDicomDirPatient::gdcmDicomDirPatient(gdcmSQItem *s, TagDocEntryHT *ptagHT):
  * @param ptagHT pointer to the HTable (gdcmDicomDirObject needs it 
  *               to build the gdcmHeaderEntries)
  */
-gdcmDicomDirPatient::gdcmDicomDirPatient(TagDocEntryHT *ptagHT):
+gdcmDicomDirPatient::gdcmDicomDirPatient(TagDocEntryHTptagHT):
    gdcmDicomDirObject(ptagHT)
 {
 }
@@ -60,7 +60,7 @@ gdcmDicomDirPatient::~gdcmDicomDirPatient()
  * \brief   Prints the Object
  * @return
  */ 
-void gdcmDicomDirPatient::Print(std::ostream &os)
+void gdcmDicomDirPatient::Print(std::ostreamos)
 {
    os << "PATIENT" << std::endl;
    gdcmDicomDirObject::Print(os);
@@ -77,7 +77,7 @@ void gdcmDicomDirPatient::Print(std::ostream &os)
  * \brief   Writes the Object
  * @return
  */ 
-void gdcmDicomDirPatient::Write(FILE *fp, FileType t)
+void gdcmDicomDirPatient::Write(FILEfp, FileType t)
 {
    gdcmDicomDirObject::Write(fp, t);
 
@@ -93,12 +93,12 @@ void gdcmDicomDirPatient::Write(FILE *fp, FileType t)
  * \brief   adds a new Patient at the begining of the PatientList
  *          of a partially created DICOMDIR
  */
-gdcmDicomDirStudy * gdcmDicomDirPatient::NewStudy()
+gdcmDicomDirStudy* gdcmDicomDirPatient::NewStudy()
 {
    std::list<gdcmElement> elemList = 
       gdcmGlobal::GetDicomDirElements()->GetDicomDirStudyElements();
       
-   gdcmDicomDirStudy *st = new gdcmDicomDirStudy( PtagHT );
+   gdcmDicomDirStudyst = new gdcmDicomDirStudy( PtagHT );
    st->FillObject(elemList);
 
    studies.push_front(st);
index ddeb9a08b137d2684414d2e194b830e7cab8d049..f9e2d6309da29b7445ff64faae578998542d0aad 100644 (file)
@@ -3,8 +3,8 @@
   Program:   gdcm
   Module:    $RCSfile: gdcmDicomDirSerie.cxx,v $
   Language:  C++
-  Date:      $Date: 2004/09/23 10:47:10 $
-  Version:   $Revision: 1.14 $
+  Date:      $Date: 2004/09/24 11:39:21 $
+  Version:   $Revision: 1.15 $
                                                                                 
   Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de
   l'Image). All rights reserved. See Doc/License.txt or
@@ -28,7 +28,7 @@
  * @param ptagHT pointer to the HTable (gdcmDicomDirObject needs it 
  *               to build the gdcmDocEntries)
  */
-gdcmDicomDirSerie::gdcmDicomDirSerie(gdcmSQItem *s, TagDocEntryHT *ptagHT):
+gdcmDicomDirSerie::gdcmDicomDirSerie(gdcmSQItem* s, TagDocEntryHT* ptagHT):
    gdcmDicomDirObject(ptagHT)
 {
    docEntries = s->GetDocEntries();
@@ -39,7 +39,7 @@ gdcmDicomDirSerie::gdcmDicomDirSerie(gdcmSQItem *s, TagDocEntryHT *ptagHT):
  * @param ptagHT pointer to the HTable (gdcmDicomDirObject needs it 
  *               to build the gdcmDocEntries)
  */
-gdcmDicomDirSerie::gdcmDicomDirSerie(TagDocEntryHT *ptagHT):
+gdcmDicomDirSerie::gdcmDicomDirSerie(TagDocEntryHTptagHT):
    gdcmDicomDirObject(ptagHT)
 {
 }
@@ -62,7 +62,7 @@ gdcmDicomDirSerie::~gdcmDicomDirSerie()
  * \brief   Prints the Object
  * @return
  */ 
-void gdcmDicomDirSerie::Print(std::ostream &os)
+void gdcmDicomDirSerie::Print(std::ostreamos)
 {
    os << "SERIE" << std::endl;
    gdcmDicomDirObject::Print(os);
@@ -83,7 +83,7 @@ void gdcmDicomDirSerie::Print(std::ostream &os)
  * \brief   Writes the Object
  * @return
  */ 
-void gdcmDicomDirSerie::Write(FILE *fp, FileType t)
+void gdcmDicomDirSerie::Write(FILEfp, FileType t)
 {
    gdcmDicomDirObject::Write(fp, t);
 
@@ -96,12 +96,12 @@ void gdcmDicomDirSerie::Write(FILE *fp, FileType t)
 /**
  * \brief   adds a new Image (with the basic elements) to a partially created DICOMDIR
  */
-gdcmDicomDirImage * gdcmDicomDirSerie::NewImage()
+gdcmDicomDirImage* gdcmDicomDirSerie::NewImage()
 {
    std::list<gdcmElement> elemList = 
       gdcmGlobal::GetDicomDirElements()->GetDicomDirImageElements();
 
-   gdcmDicomDirImage *st = new gdcmDicomDirImage(PtagHT);
+   gdcmDicomDirImagest = new gdcmDicomDirImage(PtagHT);
    FillObject(elemList);
    images.push_front(st);
 
index 0032f182452be2625a59d48d5067a992846f127a..410042b6290f51be7a9cf9e612b4fe6eb1661f47 100644 (file)
@@ -3,8 +3,8 @@
   Program:   gdcm
   Module:    $RCSfile: gdcmDicomDirStudy.cxx,v $
   Language:  C++
-  Date:      $Date: 2004/09/23 10:47:10 $
-  Version:   $Revision: 1.11 $
+  Date:      $Date: 2004/09/24 11:39:21 $
+  Version:   $Revision: 1.12 $
                                                                                 
   Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de
   l'Image). All rights reserved. See Doc/License.txt or
@@ -29,7 +29,7 @@
  * @param ptagHT pointer to the HTable (gdcmDicomDirObject needs it 
  *               to build the gdcmHeaderEntries)
  */
-gdcmDicomDirStudy::gdcmDicomDirStudy(gdcmSQItem *s, TagDocEntryHT *ptagHT):
+gdcmDicomDirStudy::gdcmDicomDirStudy(gdcmSQItem* s, TagDocEntryHT* ptagHT):
    gdcmDicomDirObject(ptagHT)
 {
    docEntries = s->GetDocEntries();
@@ -40,7 +40,7 @@ gdcmDicomDirStudy::gdcmDicomDirStudy(gdcmSQItem *s, TagDocEntryHT *ptagHT):
  * @param ptagHT pointer to the HTable (gdcmDicomDirObject needs it 
  *               to build the gdcmHeaderEntries)
  */
-gdcmDicomDirStudy::gdcmDicomDirStudy(TagDocEntryHT *ptagHT):
+gdcmDicomDirStudy::gdcmDicomDirStudy(TagDocEntryHTptagHT):
    gdcmDicomDirObject(ptagHT)
 {
 }
@@ -63,7 +63,7 @@ gdcmDicomDirStudy::~gdcmDicomDirStudy()
  * \brief   Prints the Object
  * @return
  */ 
-void gdcmDicomDirStudy::Print(std::ostream &os)
+void gdcmDicomDirStudy::Print(std::ostreamos)
 {
    os << "STUDY" << std::endl;
    gdcmDicomDirObject::Print(os);
@@ -84,7 +84,7 @@ void gdcmDicomDirStudy::Print(std::ostream &os)
  * \brief   Writes the Object
  * @return
  */ 
-void gdcmDicomDirStudy::Write(FILE *fp, FileType t)
+void gdcmDicomDirStudy::Write(FILEfp, FileType t)
 {
    gdcmDicomDirObject::Write(fp, t);
 
@@ -99,12 +99,12 @@ void gdcmDicomDirStudy::Write(FILE *fp, FileType t)
  * \brief   adds a new Serie at the begining of the SerieList
  *          of a partially created DICOMDIR
  */
-gdcmDicomDirSerie * gdcmDicomDirStudy::NewSerie()
+gdcmDicomDirSerie* gdcmDicomDirStudy::NewSerie()
 {
    std::list<gdcmElement> elemList = 
       gdcmGlobal::GetDicomDirElements()->GetDicomDirSerieElements();   
 
-   gdcmDicomDirSerie *st = new gdcmDicomDirSerie(PtagHT);
+   gdcmDicomDirSeriest = new gdcmDicomDirSerie(PtagHT);
    FillObject(elemList);
    series.push_front(st);
 
index b7c00a192b03676da7c9d1fb56432def85ca1e2b..7fb1cbdb0888efa88a2bb394e214c725ca40fa8b 100644 (file)
@@ -3,8 +3,8 @@
   Program:   gdcm
   Module:    $RCSfile: gdcmDocument.cxx,v $
   Language:  C++
-  Date:      $Date: 2004/09/23 10:17:26 $
-  Version:   $Revision: 1.90 $
+  Date:      $Date: 2004/09/24 11:39:21 $
+  Version:   $Revision: 1.91 $
                                                                                 
   Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de
   l'Image). All rights reserved. See Doc/License.txt or
@@ -230,7 +230,7 @@ void gdcmDocument::PrintShaDict(std::ostream & os)
 /**
  * \brief   Get the public dictionary used
  */
-gdcmDict *gdcmDocument::GetPubDict()
+gdcmDictgdcmDocument::GetPubDict()
 {
    return RefPubDict;
 }
@@ -238,7 +238,7 @@ gdcmDict *gdcmDocument::GetPubDict()
 /**
  * \brief   Get the shadow dictionary used
  */
-gdcmDict *gdcmDocument::GetShaDict()
+gdcmDictgdcmDocument::GetShaDict()
 {
    return RefShaDict;
 }
@@ -594,7 +594,7 @@ void gdcmDocument::Write(FILE* fp,FileType filetype)
  * \return  pointer to the modified/created Header Entry (NULL when creation
  *          failed).
  */ 
-gdcmValEntry * gdcmDocument::ReplaceOrCreateByNumber(
+gdcmValEntry* gdcmDocument::ReplaceOrCreateByNumber(
                                          std::string const & value, 
                                          uint16_t group, 
                                          uint16_t elem,
@@ -611,7 +611,7 @@ gdcmValEntry * gdcmDocument::ReplaceOrCreateByNumber(
 
    // Find out if the tag we received is in the dictionaries:
       gdcmDict *pubDict = gdcmGlobal::GetDicts()->GetDefaultPubDict();
-      gdcmDictEntry *dictEntry = pubDict->GetDictEntryByNumber(group, elem);
+      gdcmDictEntrydictEntry = pubDict->GetDictEntryByNumber(group, elem);
       if (!dictEntry)
       {
          currentEntry = NewDocEntryByNumber(group, elem,VR);
@@ -672,12 +672,12 @@ gdcmValEntry * gdcmDocument::ReplaceOrCreateByNumber(
  * \return  pointer to the modified/created Header Entry (NULL when creation
  *          failed).
  */
-gdcmBinEntry * gdcmDocument::ReplaceOrCreateByNumber(
+gdcmBinEntry* gdcmDocument::ReplaceOrCreateByNumber(
                                          uint8_t* binArea,
                                          int lgth, 
                                          uint16_t group, 
                                          uint16_t elem,
-                                         std::string const & VR )
+                                         std::string const& VR )
 {
    gdcmBinEntry* binEntry = 0;
    gdcmDocEntry* currentEntry = GetDocEntryByNumber( group, elem);
@@ -751,7 +751,7 @@ gdcmBinEntry * gdcmDocument::ReplaceOrCreateByNumber(
  * \return  pointer to the modified/created SeqEntry (NULL when creation
  *          failed).
  */
-gdcmSeqEntry * gdcmDocument::ReplaceOrCreateByNumber(
+gdcmSeqEntry* gdcmDocument::ReplaceOrCreateByNumber(
                                          uint16_t group, 
                                          uint16_t elem)
 {
@@ -811,9 +811,9 @@ bool gdcmDocument::CheckIfEntryExistByNumber(uint16_t group, uint16_t element )
  * @return  Corresponding element value when it exists,
  *          and the string GDCM_UNFOUND ("gdcm::Unfound") otherwise.
  */
-std::string gdcmDocument::GetEntryByName(TagName const & tagName)
+std::string gdcmDocument::GetEntryByName(TagName const& tagName)
 {
-   gdcmDictEntry *dictEntry = RefPubDict->GetDictEntryByName(tagName); 
+   gdcmDictEntrydictEntry = RefPubDict->GetDictEntryByName(tagName); 
    if( !dictEntry )
    {
       return GDCM_UNFOUND;
@@ -835,7 +835,7 @@ std::string gdcmDocument::GetEntryByName(TagName const & tagName)
  * @return  Corresponding element value representation when it exists,
  *          and the string GDCM_UNFOUND ("gdcm::Unfound") otherwise.
  */
-std::string gdcmDocument::GetEntryVRByName(TagName const & tagName)
+std::string gdcmDocument::GetEntryVRByName(TagName const& tagName)
 {
    gdcmDictEntry *dictEntry = RefPubDict->GetDictEntryByName(tagName); 
    if( dictEntry == NULL)
@@ -936,7 +936,7 @@ bool gdcmDocument::SetEntryByName(std::string const & content,std::string const
  * @param   group     group number of the Dicom Element to modify
  * @param   element element number of the Dicom Element to modify
  */
-bool gdcmDocument::SetEntryByNumber(std::string const & content, 
+bool gdcmDocument::SetEntryByNumber(std::string const& content, 
                                     uint16_t group,
                                     uint16_t element) 
 {
@@ -983,7 +983,7 @@ bool gdcmDocument::SetEntryByNumber(std::string const & content,
  * \brief   Accesses an existing gdcmDocEntry (i.e. a Dicom Element)
  *          through it's (group, element) and modifies it's content with
  *          the given value.
- * @param   content new value (void * -> uint8_t*) to substitute with
+ * @param   content new value (void -> uint8_t*) to substitute with
  * @param   lgth new value length
  * @param   group     group number of the Dicom Element to modify
  * @param   element element number of the Dicom Element to modify
@@ -1070,7 +1070,7 @@ size_t gdcmDocument::GetEntryOffsetByNumber(uint16_t group, uint16_t elem)
  * @param elem  element number of the Entry
  * @return Pointer to the 'non string' area
  */
-void * gdcmDocument::GetEntryBinAreaByNumber(uint16_t group, uint16_t elem) 
+void gdcmDocument::GetEntryBinAreaByNumber(uint16_t group, uint16_t elem) 
 {
    gdcmDocEntry* entry = GetDocEntryByNumber(group, elem);
    if (!entry) 
@@ -1121,7 +1121,7 @@ void* gdcmDocument::LoadEntryBinArea(uint16_t group, uint16_t elem)
  *                when a string is not suitable
  * @param element  Entry whose binArea is going to be loaded
  */
-void *gdcmDocument::LoadEntryBinArea(gdcmBinEntry *element) 
+void* gdcmDocument::LoadEntryBinArea(gdcmBinEntry* element) 
 {
    size_t o =(size_t)element->GetOffset();
    fseek(Fp, o, SEEK_SET);
index 28f1d01f9c085f34c2bb4944b9e9f39d538ffb0b..5d46a76f3a9cc806686067e80b2ba3cbfa2782f6 100644 (file)
@@ -3,8 +3,8 @@
   Program:   gdcm
   Module:    $RCSfile: gdcmElementSet.cxx,v $
   Language:  C++
-  Date:      $Date: 2004/09/22 01:01:36 $
-  Version:   $Revision: 1.21 $
+  Date:      $Date: 2004/09/24 11:39:21 $
+  Version:   $Revision: 1.22 $
                                                                                 
   Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de
   l'Image). All rights reserved. See Doc/License.txt or
@@ -64,7 +64,7 @@ gdcmElementSet::~gdcmElementSet()
   *          from the H Table
   * @return
   */ 
-void gdcmElementSet::Print(std::ostream & os)
+void gdcmElementSet::Print(std::ostream& os)
 {
    for( TagDocEntryHT::const_iterator i = TagHT.begin(); i != TagHT.end(); ++i)
    {
@@ -85,7 +85,7 @@ void gdcmElementSet::Print(std::ostream & os)
   *          from the H Table
   * @return
   */ 
-void gdcmElementSet::Write(FILE *fp, FileType filetype)
+void gdcmElementSet::Write(FILEfp, FileType filetype)
 {
    for (TagDocEntryHT::const_iterator i = TagHT.begin(); i != TagHT.end(); ++i)
    {
@@ -104,7 +104,7 @@ void gdcmElementSet::Write(FILE *fp, FileType filetype)
  * \brief   add a new Dicom Element pointer to the H Table
  * @param   newEntry entry to add
  */
-bool gdcmElementSet::AddEntry( gdcmDocEntry *newEntry)
+bool gdcmElementSet::AddEntry( gdcmDocEntrynewEntry)
 {
    gdcmTagKey key = newEntry->GetKey();
 
@@ -125,7 +125,7 @@ bool gdcmElementSet::AddEntry( gdcmDocEntry *newEntry)
  * \brief   Clear the hash table from given entry BUT keep the entry.
  * @param   entryToRemove Entry to remove.
  */
-bool gdcmElementSet::RemoveEntryNoDestroy( gdcmDocEntry *entryToRemove)
+bool gdcmElementSet::RemoveEntryNoDestroy( gdcmDocEntryentryToRemove)
 {
    gdcmTagKey key = entryToRemove->GetKey();
    if( TagHT.count(key) == 1 )
@@ -143,7 +143,7 @@ bool gdcmElementSet::RemoveEntryNoDestroy( gdcmDocEntry *entryToRemove)
  * \brief   Clear the hash table from given entry AND delete the entry.
  * @param   entryToRemove Entry to remove AND delete.
  */
-bool gdcmElementSet::RemoveEntry( gdcmDocEntry *entryToRemove)
+bool gdcmElementSet::RemoveEntry( gdcmDocEntryentryToRemove)
 {
    gdcmTagKey key = entryToRemove->GetKey();
    if( TagHT.count(key) == 1 )
index 752af409b3bd206e7140676396687d591bce955f..d21e7f25f638ecaff830e4f6d5641aff67d4be82 100644 (file)
@@ -3,8 +3,8 @@
   Program:   gdcm
   Module:    $RCSfile: gdcmFile.cxx,v $
   Language:  C++
-  Date:      $Date: 2004/09/23 10:17:26 $
-  Version:   $Revision: 1.128 $
+  Date:      $Date: 2004/09/24 11:39:21 $
+  Version:   $Revision: 1.129 $
                                                                                 
   Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de
   l'Image). All rights reserved. See Doc/License.txt or
@@ -539,7 +539,7 @@ uint8_t* gdcmFile::GetImageDataRaw ()
  * @return  On success, the number of bytes actually copied. Zero on
  *          failure e.g. MaxSize is lower than necessary.
  */
-size_t gdcmFile::GetImageDataIntoVectorRaw (void *destination, size_t maxSize)
+size_t gdcmFile::GetImageDataIntoVectorRaw (voiddestination, size_t maxSize)
 {
    int nb, nbu, highBit, sign;
 
@@ -669,7 +669,7 @@ size_t gdcmFile::GetImageDataIntoVectorRaw (void *destination, size_t maxSize)
 // Nobody knows what's expecting you ...
 // Just to 'see' what was actually read on disk :-(
 
-//   FILE * f2;
+//   FILE f2;
 //   f2 = fopen("SpuriousFile.RAW","wb");
 //   fwrite(destination,ImageDataSize,1,f2);
 //   fclose(f2);
@@ -844,7 +844,7 @@ bool gdcmFile::SetImageData(uint8_t* inData, size_t expectedSize)
 
 bool gdcmFile::WriteRawData(std::string const & fileName)
 {
-   FILE *fp1 = fopen(fileName.c_str(), "wb");
+   FILEfp1 = fopen(fileName.c_str(), "wb");
    if (fp1 == NULL)
    {
       printf("Fail to open (write) file [%s] \n", fileName.c_str());
@@ -923,7 +923,7 @@ bool gdcmFile::WriteBase (std::string const & fileName, FileType type)
       return false;
    }
 
-   FILE *fp1 = fopen(fileName.c_str(), "wb");
+   FILEfp1 = fopen(fileName.c_str(), "wb");
    if (fp1 == NULL)
    {
       printf("Failed to open (write) File [%s] \n", fileName.c_str());
@@ -1011,7 +1011,7 @@ bool gdcmFile::WriteBase (std::string const & fileName, FileType type)
  * @param   lgr Area Length
  * @param   nb Pixels Bit number 
  */
-void gdcmFile::SwapZone(void *im, int swap, int lgr, int nb)
+void gdcmFile::SwapZone(voidim, int swap, int lgr, int nb)
 {
    int i;
 
@@ -1093,9 +1093,9 @@ void gdcmFile::SwapZone(void *im, int swap, int lgr, int nb)
  * @param   destination where the pixel data should be stored.
  *
  */
-bool gdcmFile::ReadPixelData(void *destination) 
+bool gdcmFile::ReadPixelData(voiddestination) 
 {
-   FILE *fp = Header->OpenFile();
+   FILEfp = Header->OpenFile();
 
    if ( !fp )
    {
index 682d5bb107698b85ef9787131910f271fb4dafb0..4090131fcb31206524ee3fe9ae0ae4a17912d07c 100644 (file)
@@ -3,8 +3,8 @@
   Program:   gdcm
   Module:    $RCSfile: gdcmFile.h,v $
   Language:  C++
-  Date:      $Date: 2004/09/23 09:40:30 $
-  Version:   $Revision: 1.50 $
+  Date:      $Date: 2004/09/24 11:39:21 $
+  Version:   $Revision: 1.51 $
                                                                                 
   Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de
   l'Image). All rights reserved. See Doc/License.txt or
@@ -32,7 +32,7 @@ class GDCM_EXPORT gdcmFile
 {
 public:
    gdcmFile( gdcmHeader *header );
-   gdcmFile( std::string const & filename );
+   gdcmFile( std::string const& filename );
  
    virtual ~gdcmFile();
 
@@ -68,21 +68,21 @@ public:
    bool SetImageData (uint8_t* data, size_t expectedSize);
 
    /// \todo When the caller is aware we simply point to the data:
-   /// int SetImageDataNoCopy (void * Data, size_t ExpectedSize);
+   /// int SetImageDataNoCopy (void* Data, size_t ExpectedSize);
 
    // Write pixels of ONE image on hard drive
    // No test is made on processor "endianity"
    // The user must call his reader correctly
-   bool WriteRawData  (std::string const & fileName);
-   bool WriteDcmImplVR(std::string const & fileName);
-   bool WriteDcmExplVR(std::string const & fileName);
-   bool WriteAcr      (std::string const & fileName);
+   bool WriteRawData  (std::string const& fileName);
+   bool WriteDcmImplVR(std::string const& fileName);
+   bool WriteDcmExplVR(std::string const& fileName);
+   bool WriteAcr      (std::string const& fileName);
 
    // Don't look any longer for the code : 
    // It's in file gdcmParsePixels.cxx
    bool ParsePixelData();
 
-   virtual bool SetEntryByNumber(std::string const & content,
+   virtual bool SetEntryByNumber(std::string const& content,
                                  uint16_t group, uint16_t element)
    { 
       Header->SetEntryByNumber(content,group,element);
@@ -90,36 +90,36 @@ public:
    }
      
 protected:
-   bool WriteBase(std::string const & fileName, FileType type);
+   bool WriteBase(std::string const& fileName, FileType type);
 
 private:
    void SwapZone(void* im, int swap, int lgr, int nb);
 
-   bool ReadPixelData(void * destination);
+   bool ReadPixelData(void* destination);
    
    // For JPEG 8 Bits, body in file gdcmJpeg.cxx
-   bool gdcm_read_JPEG_file     (FILE *fp, void * image_buffer); 
-   bool gdcm_write_JPEG_file    (FILE *fp, void * image_buffer, 
+   bool gdcm_read_JPEG_file     (FILE* fp, void* image_buffer); 
+   bool gdcm_write_JPEG_file    (FILE* fp, void* image_buffer, 
                                  int image_width, int image_heigh,
                                  int quality);
 
    // For JPEG 12 Bits, body in file gdcmJpeg12.cxx
-   bool gdcm_read_JPEG_file12   (FILE *fp, void* image_buffer);
-   bool gdcm_write_JPEG_file12  (FILE *fp, void* image_buffer, 
+   bool gdcm_read_JPEG_file12   (FILEfp, void* image_buffer);
+   bool gdcm_write_JPEG_file12  (FILEfp, void* image_buffer, 
                                  int image_width, int image_height,
                                  int quality);
 
    // For JPEG 2000, body in file gdcmJpeg2000.cxx
-   bool gdcm_read_JPEG2000_file (FILE *fp, void* image_buffer);
+   bool gdcm_read_JPEG2000_file (FILEfp, void* image_buffer);
 
    // For Run Length Encoding
-   bool gdcm_read_RLE_file      (FILE *fp, void* image_buffer);
+   bool gdcm_read_RLE_file      (FILEfp, void* image_buffer);
 // FIXME : *sure* it's NOT static (C++)
 // (would be static in C, or embedded in ADA)
 // It's NOT a method, but a not user intended fonction.
 // How do we write that in C++ ?)
    static int gdcm_read_RLE_fragment(char **areaToRead, long lengthToDecode, 
-                                     long uncompressedSegmentSize, FILE *fp);
+                                     long uncompressedSegmentSize, FILEfp);
 
    void SaveInitialValues();    // will belong to the future gdcmPixelData class
    void RestoreInitialValues(); // will belong to the future gdcmPixelData class
index b64fed03d2a816b8c31e925fdc31a945490b1d6e..d632432f97c200fb6dd428c82383e7ea76f1c8d8 100644 (file)
@@ -130,7 +130,7 @@ extern "C" {
  * @return 1 on success, 0 on error
  */
  
-bool gdcm_write_JPEG_file (FILE *fp, void * im_buf, 
+bool gdcm_write_JPEG_file (FILE* fp, void*  im_buf, 
                            int image_width, int image_height, int quality)
 {
 
@@ -153,7 +153,7 @@ bool gdcm_write_JPEG_file (FILE *fp, void * im_buf,
    */
   struct jpeg_error_mgr jerr;
   /* More stuff */
-  //FILE * outfile;    /* target file */
+  //FILE*  outfile;    /* target FILE* /
   JSAMPROW row_pointer[1];   /* pointer to JSAMPLE row[s] */
   int row_stride;            /* physical row width in image buffer */
 
@@ -325,7 +325,7 @@ struct my_error_mgr {
 };
 
 //-----------------------------------------------------------------------------
-typedef struct my_error_mgr * my_error_ptr;
+typedef struct my_error_mgr* my_error_ptr;
 
 /*
  * Here's the routine that will replace the standard error_exit method:
@@ -357,8 +357,8 @@ METHODDEF(void) my_error_exit (j_common_ptr cinfo) {
  * @return 1 on success, 0 on error
  */
  
-bool gdcmFile::gdcm_read_JPEG_file (FILE *fp,void * image_buffer) {
-   char *pimage;
+bool gdcmFile::gdcm_read_JPEG_file (FILE* fp, void* image_buffer) {
+   charpimage;
 
    /* This struct contains the JPEG decompression parameters and pointers to
     * working space (which is allocated as needed by the JPEG library).
index a87cbd47b3ea2a6b93d8752a31ff23ea8edc070d..4a00622ac6f6f5bd82d7ad52c7470a3a5eec289b 100644 (file)
@@ -98,7 +98,7 @@ extern "C" {
 //  TODO
 //
 
-bool gdcm_write_JPEG_file12 (FILE *fp, void * im_buff, 
+bool gdcm_write_JPEG_file12 (FILE* fp, void*  im_buff, 
                              int image_width, int image_heigh, int quality)
 {
   (void)fp;
@@ -189,7 +189,7 @@ METHODDEF(void) my_error_exit (j_common_ptr cinfo) {
  * @return 1 on success, 0 on error
  */
  
-bool gdcmFile::gdcm_read_JPEG_file12 (FILE *fp,void * image_buffer) {
+bool gdcmFile::gdcm_read_JPEG_file12 (FILE* fp,void* image_buffer) {
    char *pimage;
 
    /* This struct contains the JPEG decompression parameters and pointers to
index 1869296c12b2813a6cba580afc21d719eef22c21..f14f6cd0ad36be51c87031a4a2861acd34b1820a 100644 (file)
@@ -14,7 +14,7 @@
  * @warning : not yet made
  */
 
-bool gdcmFile::gdcm_read_JPEG2000_file (FILE *fp,void * image_buffer) {
+bool gdcmFile::gdcm_read_JPEG2000_file (FILE* fp,void* image_buffer) {
    (void)fp;                  //FIXME
    (void)image_buffer;        //FIXME
    printf("Sorry JPEG 2000 File not yet taken into account\n");
index 078884d9c0eb4c120b733a9ecbb6ef52405de566..e66e5fa269ba50e4311a2897f4411e0b9b730620 100644 (file)
@@ -3,8 +3,8 @@
   Program:   gdcm
   Module:    $RCSfile: gdcmParsePixels.cxx,v $
   Language:  C++
-  Date:      $Date: 2004/07/17 22:47:01 $
-  Version:   $Revision: 1.9 $
+  Date:      $Date: 2004/09/24 11:39:21 $
+  Version:   $Revision: 1.10 $
                                                                                 
   Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de
   l'Image). All rights reserved. See Doc/License.txt or
@@ -34,7 +34,7 @@
 bool gdcmFile::ParsePixelData(void) {
 // DO NOT remove the printf s.
 // The ONLY purpose of this method is to PRINT the content
-   FILE *fp;
+   FILEfp;
 
    if ( !(fp=Header->OpenFile()))
       return false;
diff --git a/src/gdcmPixelStuff.cxx b/src/gdcmPixelStuff.cxx
new file mode 100644 (file)
index 0000000..498a39d
--- /dev/null
@@ -0,0 +1,44 @@
+/*=========================================================================
+                                                                                
+  Program:   gdcm
+  Module:    $RCSfile: gdcmPixelStuff.cxx,v $
+  Language:  C++
+  Date:      $Date: 2004/09/24 11:39:21 $
+  Version:   $Revision: 1.1 $
+                                                                                
+  Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de
+  l'Image). All rights reserved. See Doc/License.txt or
+  http://www.creatis.insa-lyon.fr/Public/Gdcm/License.htm for details.
+                                                                                
+     This software is distributed WITHOUT ANY WARRANTY; without even
+     the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
+     PURPOSE.  See the above copyright notices for more information.
+                                                                                
+=========================================================================*/
+
+#include "gdcmPixelStuff.h"
+
+
+//-----------------------------------------------------------------------------
+// Constructor / Destructor
+gdcmPixelStuff::gdcmPixelStuff(void) 
+{
+
+}
+
+gdcmPixelStuff::~gdcmPixelStuff() 
+{
+
+}
+
+
+//-----------------------------------------------------------------------------
+// Public
+
+//-----------------------------------------------------------------------------
+// Protected
+
+//-----------------------------------------------------------------------------
+// Private
+
+//-----------------------------------------------------------------------------
diff --git a/src/gdcmPixelStuff.h b/src/gdcmPixelStuff.h
new file mode 100644 (file)
index 0000000..bee0fcb
--- /dev/null
@@ -0,0 +1,39 @@
+/*=========================================================================
+                                                                                
+  Program:   gdcm
+  Module:    $RCSfile: gdcmPixelStuff.h,v $
+  Language:  C++
+  Date:      $Date: 2004/09/24 11:39:21 $
+  Version:   $Revision: 1.1 $
+                                                                                
+  Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de
+  l'Image). All rights reserved. See Doc/License.txt or
+  http://www.creatis.insa-lyon.fr/Public/Gdcm/License.htm for details.
+                                                                                
+     This software is distributed WITHOUT ANY WARRANTY; without even
+     the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
+     PURPOSE.  See the above copyright notices for more information.
+                                                                                
+=========================================================================*/
+
+
+#ifndef GDCMPIXELSTUFF_H
+#define GDCMPIXELSTUFF_H
+
+#include "gdcmCommon.h"
+
+//-----------------------------------------------------------------------------
+/*
+ * Container for Pixel related stuff
+ * \note   This is a singleton
+ */
+class GDCM_EXPORT gdcmPixelStuff {
+public:
+   gdcmPixelStuff(void);
+   ~gdcmPixelStuff();
+
+
+};
+
+//-----------------------------------------------------------------------------
+#endif
index 97a0627f959563982242c5106750abe3e415febc..730a2b5776ea9632d85a96acb30d222c03c21cc0 100644 (file)
@@ -3,8 +3,8 @@
   Program:   gdcm
   Module:    $RCSfile: gdcmRLE.cxx,v $
   Language:  C++
-  Date:      $Date: 2004/07/02 13:55:28 $
-  Version:   $Revision: 1.21 $
+  Date:      $Date: 2004/09/24 11:39:21 $
+  Version:   $Revision: 1.22 $
                                                                                 
   Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de
   l'Image). All rights reserved. See Doc/License.txt or
@@ -31,7 +31,7 @@
  *            at which the pixel data should be copied 
  * @return    Boolean 
  */
-bool gdcmFile::gdcm_read_RLE_file (FILE *fp,void * image_buffer) {
+bool gdcmFile::gdcm_read_RLE_file (FILE* fp,void* image_buffer) {
    long fragmentBegining; // for ftell, fseek
    char * im = (char *)image_buffer;
 
@@ -151,8 +151,8 @@ bool gdcmFile::gdcm_read_RLE_file (FILE *fp,void * image_buffer) {
 
 // ----------------------------------------------------------------------------
 // RLE LossLess Fragment
-int gdcmFile::gdcm_read_RLE_fragment(char **areaToRead, long lengthToDecode, 
-                                     long uncompressedSegmentSize, FILE *fp) {
+int gdcmFile::gdcm_read_RLE_fragment(char** areaToRead, long lengthToDecode, 
+                                     long uncompressedSegmentSize, FILEfp) {
    (void)lengthToDecode; //FIXME
    long ftellRes;
    int count;
index 1dc964c863466e3eb54ee92f6031ca30effe24d4..e2e048e1d2e37c7221c7311e0a8c1b32d7b4a27c 100644 (file)
@@ -3,8 +3,8 @@
   Program:   gdcm
   Module:    $RCSfile: gdcmSQItem.cxx,v $
   Language:  C++
-  Date:      $Date: 2004/09/16 19:21:57 $
-  Version:   $Revision: 1.26 $
+  Date:      $Date: 2004/09/24 11:39:21 $
+  Version:   $Revision: 1.27 $
   
   Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de
   l'Image). All rights reserved. See Doc/License.txt or
@@ -57,7 +57,7 @@ gdcmSQItem::~gdcmSQItem()
 /*
  * \brief   canonical Printer
  */
- void gdcmSQItem::Print(std::ostream & os)
+ void gdcmSQItem::Print(std::ostream& os)
  {
    std::ostringstream s;
 
@@ -95,7 +95,7 @@ gdcmSQItem::~gdcmSQItem()
  * \ingroup gdcmSQItem
  * \brief   canonical Writer
  */
-void gdcmSQItem::Write(FILE *fp,FileType filetype)
+void gdcmSQItem::Write(FILEfp,FileType filetype)
 {
    uint16_t item[4] = { 0xfffe, 0xe000, 0xffff, 0xffff };
    uint16_t itemt[4]= { 0xfffe, 0xe00d, 0xffff, 0xffff };
@@ -137,7 +137,7 @@ void gdcmSQItem::Write(FILE *fp,FileType filetype)
 /**
  * \brief   adds any Entry (Dicom Element) to the Sequence Item
  */
-bool gdcmSQItem::AddEntry(gdcmDocEntry *entry)
+bool gdcmSQItem::AddEntry(gdcmDocEntryentry)
 {
    docEntries.push_back(entry);
    //TODO : check if it worked
@@ -157,7 +157,7 @@ bool gdcmSQItem::AddEntry(gdcmDocEntry *entry)
  * @return  true if element was found or created successfully
  */
 
-bool gdcmSQItem::SetEntryByNumber(std::string val,uint16_t group, 
+bool gdcmSQItem::SetEntryByNumber(std::string val, uint16_t group, 
                                   uint16_t element)
 {
    for(ListDocEntry::iterator i = docEntries.begin(); i != docEntries.end(); ++i)
@@ -235,7 +235,7 @@ bool gdcmSQItem::SetEntryByNumber(std::string val,uint16_t group,
  * \brief   Gets a Dicom Element inside a SQ Item Entry, by number
  * @return
  */
-gdcmDocEntry *gdcmSQItem::GetDocEntryByNumber(uint16_t group, uint16_t element)
+gdcmDocEntrygdcmSQItem::GetDocEntryByNumber(uint16_t group, uint16_t element)
 {
    for(ListDocEntry::iterator i = docEntries.begin();
                               i != docEntries.end(); ++i)
index 4323f941cdc8212189debeb83d2fd7c17575f786..0eca77d8c5a68f4e65a9d45436f7c53ffb6631ea 100644 (file)
@@ -3,8 +3,8 @@
   Program:   gdcm
   Module:    $RCSfile: gdcmSeqEntry.cxx,v $
   Language:  C++
-  Date:      $Date: 2004/09/16 19:21:57 $
-  Version:   $Revision: 1.28 $
+  Date:      $Date: 2004/09/24 11:39:21 $
+  Version:   $Revision: 1.29 $
                                                                                 
   Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de
   l'Image). All rights reserved. See Doc/License.txt or
@@ -110,7 +110,7 @@ void gdcmSeqEntry::Print( std::ostream &os )
 /*
  * \brief   canonical Writer
  */
-void gdcmSeqEntry::Write(FILE *fp, FileType filetype)
+void gdcmSeqEntry::Write(FILEfp, FileType filetype)
 {
    uint16_t seq_term_gr = 0xfffe;
    uint16_t seq_term_el = 0xe0dd;
@@ -150,7 +150,7 @@ void gdcmSeqEntry::AddEntry(gdcmSQItem *sqItem, int itemNumber)
  *        Returns the last item when argument is bigget than the total
  *        item number.
  */
-gdcmSQItem *gdcmSeqEntry::GetSQItemByOrdinalNumber(int nb)
+gdcmSQItemgdcmSeqEntry::GetSQItemByOrdinalNumber(int nb)
 {
    if (nb<0)
       return (*(items.begin()));
index 82d2743610880317549e47ab8f1de5b6bbe6a8d1..1047675add7ba928fa5895dfcead17163168dc74 100644 (file)
@@ -3,8 +3,8 @@
   Program:   gdcm
   Module:    $RCSfile: gdcmValEntry.cxx,v $
   Language:  C++
-  Date:      $Date: 2004/09/13 12:10:53 $
-  Version:   $Revision: 1.25 $
+  Date:      $Date: 2004/09/24 11:39:21 $
+  Version:   $Revision: 1.26 $
                                                                                 
   Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de
   l'Image). All rights reserved. See Doc/License.txt or
@@ -171,7 +171,7 @@ void gdcmValEntry::Print(std::ostream & os)
 /*
  * \brief   canonical Writer
  */
-void gdcmValEntry::Write(FILE *fp, FileType filetype)
+void gdcmValEntry::Write(FILEfp, FileType filetype)
 {
    gdcmDocEntry::Write(fp, filetype);
 
@@ -195,7 +195,7 @@ void gdcmValEntry::Write(FILE *fp, FileType filetype)
       for (unsigned int i=0; i<tokens.size();i++)
       {
          uint16_t val_uint16 = atoi(tokens[i].c_str());
-         void *ptr = &val_uint16;
+         voidptr = &val_uint16;
          fwrite ( ptr,(size_t)2 ,(size_t)1 ,fp);
       }
       tokens.clear();
@@ -213,7 +213,7 @@ void gdcmValEntry::Write(FILE *fp, FileType filetype)
       for (unsigned int i=0; i<tokens.size();i++)
       {
          uint32_t val_uint32 = atoi(tokens[i].c_str());
-         void *ptr = &val_uint32;
+         voidptr = &val_uint32;
          fwrite ( ptr,(size_t)4 ,(size_t)1 ,fp);
       }
       tokens.clear();