From 7b3410ee413b056e0e599a4800ea836c8b56152b Mon Sep 17 00:00:00 2001 From: malaterre Date: Mon, 25 Oct 2004 04:08:19 +0000 Subject: [PATCH] STYLE: ivars should start with a capital letter. Accessors should be const to avoid people starting modifying stuff (since this is a ref). remove virtual as style specify sub class shouldn't reuse the keyword (3) --- src/gdcmDicomDir.cxx | 37 +++++++++++++++++++--------------- src/gdcmDicomDirElement.h | 15 +++++++------- src/gdcmDicomDirObject.cxx | 6 +++--- src/gdcmDicomDirPatient.cxx | 22 +++++++++++--------- src/gdcmDicomDirPatient.h | 15 +++++++------- src/gdcmDicomDirSerie.cxx | 20 ++++++++++--------- src/gdcmDicomDirSerie.h | 34 ++++++++++++++++--------------- src/gdcmDicomDirStudy.cxx | 20 +++++++++++-------- src/gdcmDicomDirStudy.h | 40 +++++++++++++++++++------------------ src/gdcmDocEntry.h | 20 +++++++++---------- src/gdcmFile.h | 10 +++++----- src/gdcmPixelConvert.h | 10 +++++----- 12 files changed, 134 insertions(+), 115 deletions(-) diff --git a/src/gdcmDicomDir.cxx b/src/gdcmDicomDir.cxx index 03cc6a20..68e27d63 100644 --- a/src/gdcmDicomDir.cxx +++ b/src/gdcmDicomDir.cxx @@ -3,8 +3,8 @@ Program: gdcm Module: $RCSfile: gdcmDicomDir.cxx,v $ Language: C++ - Date: $Date: 2004/10/22 03:05:40 $ - Version: $Revision: 1.74 $ + Date: $Date: 2004/10/25 04:08:19 $ + Version: $Revision: 1.75 $ Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de l'Image). All rights reserved. See Doc/License.txt or @@ -463,10 +463,10 @@ DicomDirMeta * DicomDir::NewMeta() } else // after root directory parsing { - std::list elemList; - elemList=Global::GetDicomDirElements()->GetDicomDirMetaElements(); - m->FillObject(elemList); - } + ListDicomDirMetaElem const & elemList = + Global::GetDicomDirElements()->GetDicomDirMetaElements(); + m->FillObject(elemList); + } m->SetSQItemNumber(0); // To avoid further missprinting return m; } @@ -476,13 +476,13 @@ DicomDirMeta * DicomDir::NewMeta() */ DicomDirPatient * DicomDir::NewPatient() { - std::list::iterator it; + ListDicomDirPatientElem::const_iterator it; uint16_t tmpGr,tmpEl; DictEntry *dictEntry; ValEntry *entry; - std::list elemList; - elemList=Global::GetDicomDirElements()->GetDicomDirPatientElements(); + ListDicomDirPatientElem const & elemList = + Global::GetDicomDirElements()->GetDicomDirPatientElements(); SQItem *s = new SQItem(0); // for all the DicomDirPatient Elements @@ -534,11 +534,11 @@ DicomDirPatient * DicomDir::NewPatient() * GDCM_DICOMDIR_STUDY, GDCM_DICOMDIR_SERIE ...) * @param header Header of the current file */ -void DicomDir::SetElement(std::string &path,DicomDirType type, - Document *header) +void DicomDir::SetElement(std::string &path, DicomDirType type, + Document *header) { - std::list elemList; - std::list::iterator it; + ListDicomDirElem elemList; //FIXME this is going to be a by copy operation + ListDicomDirElem::const_iterator it; uint16_t tmpGr, tmpEl; DictEntry *dictEntry; ValEntry *entry; @@ -693,6 +693,7 @@ void DicomDir::SetElement(std::string &path,DicomDirType type, } +//----------------------------------------------------------------------------- /** * \brief CallStartMethod */ @@ -706,6 +707,7 @@ void DicomDir::CallStartMethod() } } +//----------------------------------------------------------------------------- /** * \ingroup DicomDir * \brief CallProgressMethod @@ -718,6 +720,7 @@ void DicomDir::CallProgressMethod() } } +//----------------------------------------------------------------------------- /** * \ingroup DicomDir * \brief CallEndMethod @@ -867,7 +870,8 @@ void DicomDir::AddDicomDirSerieToEnd(SQItem *s) if( (*itp)->GetDicomDirStudies().size() > 0 ) { - ListDicomDirStudy::iterator itst=(*itp)->GetDicomDirStudies().end(); + ListDicomDirStudy::const_iterator itst = + (*itp)->GetDicomDirStudies().end(); itst--; (*itst)->AddDicomDirSerie(new DicomDirSerie(s, &TagHT)); } @@ -888,12 +892,13 @@ void DicomDir::AddDicomDirSerieToEnd(SQItem *s) if( (*itp)->GetDicomDirStudies().size() > 0 ) { - ListDicomDirStudy::iterator itst = (*itp)->GetDicomDirStudies().end(); + ListDicomDirStudy::const_iterator itst = + (*itp)->GetDicomDirStudies().end(); itst--; if( (*itst)->GetDicomDirSeries().size() > 0 ) { - ListDicomDirSerie::iterator its = (*itst)->GetDicomDirSeries().end(); + ListDicomDirSerie::const_iterator its = (*itst)->GetDicomDirSeries().end(); its--; (*its)->AddDicomDirImage(new DicomDirImage(s, &TagHT)); } diff --git a/src/gdcmDicomDirElement.h b/src/gdcmDicomDirElement.h index b744729d..9c739802 100644 --- a/src/gdcmDicomDirElement.h +++ b/src/gdcmDicomDirElement.h @@ -3,8 +3,8 @@ Program: gdcm Module: $RCSfile: gdcmDicomDirElement.h,v $ Language: C++ - Date: $Date: 2004/10/13 14:15:29 $ - Version: $Revision: 1.13 $ + Date: $Date: 2004/10/25 04:08:20 $ + Version: $Revision: 1.14 $ Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de l'Image). All rights reserved. See Doc/License.txt or @@ -37,6 +37,7 @@ typedef struct std::string Value; } Element; +typedef std::list ListDicomDirElem; typedef std::list ListDicomDirMetaElem; typedef std::list ListDicomDirPatientElem; typedef std::list ListDicomDirStudyElem; @@ -66,7 +67,7 @@ public: * \brief returns a reference to the chained List * related to the META Elements of a DICOMDIR. */ - ListDicomDirMetaElem& GetDicomDirMetaElements() + ListDicomDirMetaElem const & GetDicomDirMetaElements() const { return DicomDirMetaList; }; /** @@ -74,7 +75,7 @@ public: * \brief returns a reference to the chained List * related to the PATIENT Elements of a DICOMDIR. */ - ListDicomDirPatientElem &GetDicomDirPatientElements() + ListDicomDirPatientElem const & GetDicomDirPatientElements() const { return DicomDirPatientList; }; /** @@ -82,7 +83,7 @@ public: * \brief returns a reference to the chained List * related to the STUDY Elements of a DICOMDIR. */ - ListDicomDirStudyElem &GetDicomDirStudyElements() + ListDicomDirStudyElem const & GetDicomDirStudyElements() const { return DicomDirStudyList; }; /** @@ -90,7 +91,7 @@ public: * \brief returns a reference to the chained List * related to the SERIE Elements of a DICOMDIR. */ - ListDicomDirSerieElem &GetDicomDirSerieElements() + ListDicomDirSerieElem const & GetDicomDirSerieElements() const { return DicomDirSerieList; }; /** @@ -98,7 +99,7 @@ public: * \brief returns a reference to the chained List * related to the IMAGE Elements of a DICOMDIR. */ - ListDicomDirImageElem &GetDicomDirImageElements() + ListDicomDirImageElem const & GetDicomDirImageElements() const { return DicomDirImageList; }; private: diff --git a/src/gdcmDicomDirObject.cxx b/src/gdcmDicomDirObject.cxx index fca87916..3997b0f2 100644 --- a/src/gdcmDicomDirObject.cxx +++ b/src/gdcmDicomDirObject.cxx @@ -3,8 +3,8 @@ Program: gdcm Module: $RCSfile: gdcmDicomDirObject.cxx,v $ Language: C++ - Date: $Date: 2004/10/25 03:35:19 $ - Version: $Revision: 1.6 $ + Date: $Date: 2004/10/25 04:08:20 $ + Version: $Revision: 1.7 $ Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de l'Image). All rights reserved. See Doc/License.txt or @@ -83,7 +83,7 @@ void DicomDirObject::FillObject(ListDicomDirMetaElem const & elemList) { // FillObject rempli le SQItem qui sera accroche au bon endroit - std::list::const_iterator it; + ListDicomDirMetaElem::const_iterator it; uint16_t tmpGr,tmpEl; DictEntry *dictEntry; ValEntry *entry; diff --git a/src/gdcmDicomDirPatient.cxx b/src/gdcmDicomDirPatient.cxx index fd2b2547..66f58f05 100644 --- a/src/gdcmDicomDirPatient.cxx +++ b/src/gdcmDicomDirPatient.cxx @@ -3,8 +3,8 @@ Program: gdcm Module: $RCSfile: gdcmDicomDirPatient.cxx,v $ Language: C++ - Date: $Date: 2004/10/25 03:35:19 $ - Version: $Revision: 1.17 $ + Date: $Date: 2004/10/25 04:08:20 $ + Version: $Revision: 1.18 $ Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de l'Image). All rights reserved. See Doc/License.txt or @@ -49,8 +49,9 @@ DicomDirPatient::DicomDirPatient(TagDocEntryHT* ptagHT): */ DicomDirPatient::~DicomDirPatient() { - for(ListDicomDirStudy::iterator cc = studies.begin(); - cc != studies.end(); ++cc) + for(ListDicomDirStudy::const_iterator cc = Studies.begin(); + cc != Studies.end(); + ++cc ) { delete *cc; } @@ -67,8 +68,9 @@ void DicomDirPatient::Print(std::ostream& os) os << "PATIENT" << std::endl; DicomDirObject::Print(os); - for(ListDicomDirStudy::iterator cc = studies.begin(); - cc != studies.end(); ++cc) + for(ListDicomDirStudy::const_iterator cc = Studies.begin(); + cc != Studies.end(); + ++cc ) { (*cc)->SetPrintLevel(PrintLevel); (*cc)->Print(os); @@ -83,7 +85,9 @@ void DicomDirPatient::Write(std::ofstream* fp, FileType t) { DicomDirObject::Write(fp, t); - for(ListDicomDirStudy::iterator cc = studies.begin();cc!=studies.end();++cc) + for(ListDicomDirStudy::iterator cc = Studies.begin(); + cc!= Studies.end(); + ++cc ) { (*cc)->Write( fp, t ); } @@ -97,13 +101,13 @@ void DicomDirPatient::Write(std::ofstream* fp, FileType t) */ DicomDirStudy* DicomDirPatient::NewStudy() { - std::list elemList = + ListDicomDirStudyElem const & elemList = Global::GetDicomDirElements()->GetDicomDirStudyElements(); DicomDirStudy* st = new DicomDirStudy( PtagHT ); st->FillObject(elemList); - studies.push_front(st); + Studies.push_front(st); return st; } diff --git a/src/gdcmDicomDirPatient.h b/src/gdcmDicomDirPatient.h index 4302ca20..c9f2b4c5 100644 --- a/src/gdcmDicomDirPatient.h +++ b/src/gdcmDicomDirPatient.h @@ -3,8 +3,8 @@ Program: gdcm Module: $RCSfile: gdcmDicomDirPatient.h,v $ Language: C++ - Date: $Date: 2004/10/22 03:05:41 $ - Version: $Revision: 1.11 $ + Date: $Date: 2004/10/25 04:08:20 $ + 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 @@ -38,13 +38,14 @@ public: ~DicomDirPatient(); - virtual void Print(std::ostream &os = std::cout); - virtual void Write(std::ofstream *fp, FileType t); + void Print(std::ostream &os = std::cout); + void Write(std::ofstream *fp, FileType t); + /// Returns the STUDY chained List for this PATIENT. - ListDicomDirStudy &GetDicomDirStudies() { return studies; }; + ListDicomDirStudy const & GetDicomDirStudies() const { return Studies; }; /// adds the passed STUDY to the STUDY chained List for this PATIENT. - void AddDicomDirStudy(DicomDirStudy *obj) { studies.push_back(obj); }; + void AddDicomDirStudy (DicomDirStudy *obj) { Studies.push_back(obj); }; /// TODO DicomDirStudy* NewStudy(); @@ -52,7 +53,7 @@ public: private: /// chained list of DicomDirStudy - ListDicomDirStudy studies; + ListDicomDirStudy Studies; }; } // end namespace gdcm diff --git a/src/gdcmDicomDirSerie.cxx b/src/gdcmDicomDirSerie.cxx index e88d0f03..9a0a991d 100644 --- a/src/gdcmDicomDirSerie.cxx +++ b/src/gdcmDicomDirSerie.cxx @@ -3,8 +3,8 @@ Program: gdcm Module: $RCSfile: gdcmDicomDirSerie.cxx,v $ Language: C++ - Date: $Date: 2004/10/25 03:35:19 $ - Version: $Revision: 1.19 $ + Date: $Date: 2004/10/25 04:08:20 $ + Version: $Revision: 1.20 $ Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de l'Image). All rights reserved. See Doc/License.txt or @@ -51,8 +51,8 @@ DicomDirSerie::DicomDirSerie(TagDocEntryHT* ptagHT): */ DicomDirSerie::~DicomDirSerie() { - for(ListDicomDirImage::iterator cc = images.begin(); - cc != images.end(); + for(ListDicomDirImage::iterator cc = Images.begin(); + cc != Images.end(); ++cc) { delete *cc; @@ -70,8 +70,8 @@ void DicomDirSerie::Print(std::ostream& os) os << "SERIE" << std::endl; DicomDirObject::Print(os); - for(ListDicomDirImage::iterator cc = images.begin(); - cc != images.end(); + for(ListDicomDirImage::iterator cc = Images.begin(); + cc != Images.end(); ++cc) { (*cc)->SetPrintLevel(PrintLevel); @@ -90,7 +90,9 @@ void DicomDirSerie::Write(std::ofstream* fp, FileType t) { DicomDirObject::Write(fp, t); - for(ListDicomDirImage::iterator cc = images.begin();cc!=images.end();++cc) + for(ListDicomDirImage::iterator cc = Images.begin(); + cc!= Images.end(); + ++cc ) { (*cc)->Write( fp, t ); } @@ -101,12 +103,12 @@ void DicomDirSerie::Write(std::ofstream* fp, FileType t) */ DicomDirImage* DicomDirSerie::NewImage() { - std::list elemList = + ListDicomDirImageElem const & elemList = Global::GetDicomDirElements()->GetDicomDirImageElements(); DicomDirImage* st = new DicomDirImage(PtagHT); FillObject(elemList); - images.push_front(st); + Images.push_front(st); return st; } diff --git a/src/gdcmDicomDirSerie.h b/src/gdcmDicomDirSerie.h index 26e61c47..e4d57b33 100644 --- a/src/gdcmDicomDirSerie.h +++ b/src/gdcmDicomDirSerie.h @@ -3,8 +3,8 @@ Program: gdcm Module: $RCSfile: gdcmDicomDirSerie.h,v $ Language: C++ - Date: $Date: 2004/10/22 03:05:41 $ - Version: $Revision: 1.12 $ + Date: $Date: 2004/10/25 04:08:20 $ + 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 @@ -21,9 +21,9 @@ #include "gdcmDicomDirObject.h" #include "gdcmDicomDirImage.h" + namespace gdcm { - //----------------------------------------------------------------------------- typedef std::list ListDicomDirImage; @@ -36,18 +36,20 @@ public: ~DicomDirSerie(); - virtual void Print( std::ostream& os = std::cout ); - virtual void Write( std::ofstream* fp, FileType t ); -/** - * \ingroup DicomDirSerie - * \brief returns the IMAGE chained List for this SERIE. - */ - ListDicomDirImage& GetDicomDirImages() { return images; }; -/** - * \ingroup DicomDirSerie - * \brief adds the passed IMAGE to the IMAGE chained List for this SERIE. - */ - void AddDicomDirImage(DicomDirImage *obj) { images.push_back(obj); }; + void Print( std::ostream& os = std::cout ); + void Write( std::ofstream* fp, FileType t ); + + /** + * \ingroup DicomDirSerie + * \brief returns the IMAGE chained List for this SERIE. + */ + ListDicomDirImage const & GetDicomDirImages() const { return Images; }; + + /** + * \ingroup DicomDirSerie + * \brief adds the passed IMAGE to the IMAGE chained List for this SERIE. + */ + void AddDicomDirImage(DicomDirImage *obj) { Images.push_back(obj); }; /** * \ingroup DicomDirSerie @@ -59,7 +61,7 @@ private: /** * \brief chained list of DicomDirImages */ - ListDicomDirImage images; + ListDicomDirImage Images; }; } // end namespace gdcm //----------------------------------------------------------------------------- diff --git a/src/gdcmDicomDirStudy.cxx b/src/gdcmDicomDirStudy.cxx index d035f1ab..a9ebc4f8 100644 --- a/src/gdcmDicomDirStudy.cxx +++ b/src/gdcmDicomDirStudy.cxx @@ -3,8 +3,8 @@ Program: gdcm Module: $RCSfile: gdcmDicomDirStudy.cxx,v $ Language: C++ - Date: $Date: 2004/10/25 03:35:19 $ - Version: $Revision: 1.16 $ + Date: $Date: 2004/10/25 04:08:20 $ + Version: $Revision: 1.17 $ Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de l'Image). All rights reserved. See Doc/License.txt or @@ -53,7 +53,9 @@ DicomDirStudy::DicomDirStudy(TagDocEntryHT* ptagHT): */ DicomDirStudy::~DicomDirStudy() { - for(ListDicomDirSerie::iterator cc = series.begin();cc != series.end();++cc) + for(ListDicomDirSerie::iterator cc = Series.begin(); + cc != Series.end(); + ++cc ) { delete *cc; } @@ -71,8 +73,8 @@ void DicomDirStudy::Print(std::ostream& os) os << "STUDY" << std::endl; DicomDirObject::Print(os); - for(ListDicomDirSerie::iterator cc = series.begin(); - cc != series.end(); + for(ListDicomDirSerie::iterator cc = Series.begin(); + cc != Series.end(); ++cc) { (*cc)->SetPrintLevel(PrintLevel); @@ -91,7 +93,9 @@ void DicomDirStudy::Write(std::ofstream* fp, FileType t) { DicomDirObject::Write(fp, t); - for(ListDicomDirSerie::iterator cc = series.begin();cc!=series.end();++cc) + for(ListDicomDirSerie::iterator cc = Series.begin(); + cc!= Series.end(); + ++cc ) { (*cc)->Write( fp, t ); } @@ -104,12 +108,12 @@ void DicomDirStudy::Write(std::ofstream* fp, FileType t) */ DicomDirSerie* DicomDirStudy::NewSerie() { - std::list elemList = + ListDicomDirSerieElem const & elemList = Global::GetDicomDirElements()->GetDicomDirSerieElements(); DicomDirSerie* st = new DicomDirSerie(PtagHT); FillObject(elemList); - series.push_front(st); + Series.push_front(st); return st; } diff --git a/src/gdcmDicomDirStudy.h b/src/gdcmDicomDirStudy.h index 965dfbcb..a71685e7 100644 --- a/src/gdcmDicomDirStudy.h +++ b/src/gdcmDicomDirStudy.h @@ -3,8 +3,8 @@ Program: gdcm Module: $RCSfile: gdcmDicomDirStudy.h,v $ Language: C++ - Date: $Date: 2004/10/22 03:05:41 $ - Version: $Revision: 1.11 $ + Date: $Date: 2004/10/25 04:08:20 $ + 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 @@ -36,30 +36,32 @@ public: ~DicomDirStudy(); - virtual void Print(std::ostream &os = std::cout); - virtual void Write(std::ofstream *fp, FileType t); -/** - * \ingroup DicomDirStudy - * \brief returns the SERIE chained List for this STUDY. - */ - ListDicomDirSerie &GetDicomDirSeries() { return series; }; -/** - * \ingroup DicomDirStudy - * \brief adds the passed SERIE to the SERIE chained List for this STUDY. - */ - void AddDicomDirSerie(DicomDirSerie *obj) { series.push_back(obj); }; + void Print(std::ostream &os = std::cout); + void Write(std::ofstream *fp, FileType t); -/** - * \ingroup DicomDirStudy - * \brief TODO - */ + /** + * \ingroup DicomDirStudy + * \brief returns the SERIE chained List for this STUDY. + */ + ListDicomDirSerie const &GetDicomDirSeries() const { return Series; }; + + /** + * \ingroup DicomDirStudy + * \brief adds the passed SERIE to the SERIE chained List for this STUDY. + */ + void AddDicomDirSerie(DicomDirSerie *obj) { Series.push_back(obj); }; + + /** + * \ingroup DicomDirStudy + * \brief TODO + */ DicomDirSerie* NewSerie(); private: /** * \brief chained list of DicomDirSeries (to be exploited recursively) */ - ListDicomDirSerie series; + ListDicomDirSerie Series; }; } // end namespace gdcm diff --git a/src/gdcmDocEntry.h b/src/gdcmDocEntry.h index 8c909273..45cf710f 100644 --- a/src/gdcmDocEntry.h +++ b/src/gdcmDocEntry.h @@ -3,8 +3,8 @@ Program: gdcm Module: $RCSfile: gdcmDocEntry.h,v $ Language: C++ - Date: $Date: 2004/10/22 03:05:41 $ - Version: $Revision: 1.27 $ + Date: $Date: 2004/10/25 04:08:20 $ + Version: $Revision: 1.28 $ Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de l'Image). All rights reserved. See Doc/License.txt or @@ -29,8 +29,6 @@ class SeqEntry; namespace gdcm { - - //----------------------------------------------------------------------------- /** * \brief The dicom header of a Dicom file contains a set of such entries @@ -49,24 +47,24 @@ public: uint16_t GetElement() { return DicomDict->GetElement();}; /// Returns the 'key' of the current Dicom Header Entry - void SetKey( TagKey key ) { Key = key; } + void SetKey( TagKey const & key ) { Key = key; } /// Returns the 'key' of the current Dicom Header Entry - std::string GetKey() { return Key; } + std::string const & GetKey() const { return Key; } /// \brief Returns the 'Name' '(e.g. "Patient's Name") found in the Dicom /// Dictionnary of the current Dicom Header Entry - std::string GetName() { return DicomDict->GetName(); }; + std::string const & GetName() const { return DicomDict->GetName(); }; /// \brief Returns the 'Value Representation' (e.g. "PN" : Person Name, /// "SL" : Signed Long), found in the Dicom Header or in the Dicom /// Dictionnary, of the current Dicom Header Entry - std::string GetVR() { return DicomDict->GetVR(); }; + std::string const & GetVR() const { return DicomDict->GetVR(); }; /// \brief Returns offset (since the beginning of the file, including /// the File Preamble, if any) of the value of the current Dicom HeaderEntry /// \warning offset of the *value*, not of the Dicom Header Entry - size_t GetOffset() { return Offset; }; + size_t GetOffset() { return Offset; }; /// \brief Returns the actual value length of the current Dicom Header Entry /// \warning this value is not *always* the one stored in the Dicom Header @@ -80,11 +78,11 @@ public: uint32_t GetReadLength() { return ReadLength; }; /// Sets the 'Value Representation' of the current Dicom Header Entry - void SetVR(std::string const & v) { DicomDict->SetVR(v); }; + void SetVR( TagName const & v) { DicomDict->SetVR(v); }; /// \brief Sets both 'Read Length' and 'Usable Length' of the current /// Dicom Header Entry - void SetLength(uint32_t l) { ReadLength = UsableLength = l;}; + void SetLength(uint32_t l) { ReadLength = UsableLength = l; }; // The following 3 members, for internal use only ! diff --git a/src/gdcmFile.h b/src/gdcmFile.h index 0cde7145..5e30d57e 100644 --- a/src/gdcmFile.h +++ b/src/gdcmFile.h @@ -3,8 +3,8 @@ Program: gdcm Module: $RCSfile: gdcmFile.h,v $ Language: C++ - Date: $Date: 2004/10/22 13:56:46 $ - Version: $Revision: 1.66 $ + Date: $Date: 2004/10/25 04:08:20 $ + Version: $Revision: 1.67 $ Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de l'Image). All rights reserved. See Doc/License.txt or @@ -44,13 +44,13 @@ public: Header* GetHeader() { return HeaderInternal; } /// Accessor to \ref ImageDataSize - size_t GetImageDataSize(){ return ImageDataSize; }; + size_t GetImageDataSize() { return ImageDataSize; }; /// Accessor to \ref ImageDataSizeRaw - size_t GetImageDataSizeRaw(){ return ImageDataSizeRaw; }; + size_t GetImageDataSizeRaw() { return ImageDataSizeRaw; }; /// Accessor to \ref PixelConverter - PixelConvert* GetPixelConverter(){ return PixelConverter; }; + PixelConvert* GetPixelConverter() { return PixelConverter; }; uint8_t* GetImageData(); size_t GetImageDataIntoVector(void* destination, size_t maxSize); diff --git a/src/gdcmPixelConvert.h b/src/gdcmPixelConvert.h index 13c20822..074db2ba 100644 --- a/src/gdcmPixelConvert.h +++ b/src/gdcmPixelConvert.h @@ -3,8 +3,8 @@ Program: gdcm Module: $RCSfile: gdcmPixelConvert.h,v $ Language: C++ - Date: $Date: 2004/10/22 03:05:42 $ - Version: $Revision: 1.13 $ + Date: $Date: 2004/10/25 04:08:20 $ + Version: $Revision: 1.14 $ Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de l'Image). All rights reserved. See Doc/License.txt or @@ -18,7 +18,7 @@ #ifndef GDCMPIXELCONVERT_H -#define GDCMPIXELCONVERTL_H +#define GDCMPIXELCONVERT_H #include "gdcmCommon.h" #include "gdcmRLEFramesInfo.h" @@ -28,12 +28,12 @@ namespace gdcm { - /* * \brief Utility container for gathering the various forms the pixel data * migth take during the user demanded processes. */ -class GDCM_EXPORT PixelConvert { +class GDCM_EXPORT PixelConvert +{ public: PixelConvert(); ~PixelConvert(); -- 2.45.1