From 3e43ec6a47d9de1276cf23e0dc9ef6d73640f451 Mon Sep 17 00:00:00 2001 From: jpr Date: Tue, 22 Mar 2005 11:37:15 +0000 Subject: [PATCH] Typo --- src/gdcmFile.cxx | 44 ++++++++++++++++++++++++++------------------ src/gdcmFile.h | 10 +++++----- src/gdcmGlobal.cxx | 6 +++--- 3 files changed, 34 insertions(+), 26 deletions(-) diff --git a/src/gdcmFile.cxx b/src/gdcmFile.cxx index fff55235..7351ff41 100644 --- a/src/gdcmFile.cxx +++ b/src/gdcmFile.cxx @@ -3,8 +3,8 @@ Program: gdcm Module: $RCSfile: gdcmFile.cxx,v $ Language: C++ - Date: $Date: 2005/03/11 11:12:13 $ - Version: $Revision: 1.230 $ + Date: $Date: 2005/03/22 11:37:15 $ + Version: $Revision: 1.231 $ Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de l'Image). All rights reserved. See Doc/License.txt or @@ -46,12 +46,25 @@ namespace gdcm { //----------------------------------------------------------------------------- // Constructor / Destructor + +/** + * \brief Constructor used when we want to generate dicom files from scratch + */ +File::File(): + Document() +{ + RLEInfo = new RLEFramesInfo; + JPEGInfo = new JPEGFragmentsInfo; + GrPixel = 0x7fe0; + NumPixel = 0x0010; +} + /** * \brief Constructor * @param filename name of the file whose header we want to analyze */ File::File( std::string const &filename ) - :Document( filename ) + :Document(filename) { RLEInfo = new RLEFramesInfo; JPEGInfo = new JPEGFragmentsInfo; @@ -145,17 +158,6 @@ File::File( std::string const &filename ) } } -/** - * \brief Constructor used when we want to generate dicom files from scratch - */ -File::File(): - Document() -{ - RLEInfo = new RLEFramesInfo; - JPEGInfo = new JPEGFragmentsInfo; - GrPixel = 0x7fe0; - NumPixel = 0x0010; -} /** * \brief Canonical destructor. @@ -170,6 +172,8 @@ File::~File () //----------------------------------------------------------------------------- // Public + + /** * \brief This predicate, based on hopefully reasonable heuristics, * decides whether or not the current File was properly parsed @@ -264,10 +268,14 @@ ModalityType File::GetModality() else if ( strModality.find("PT") < strModality.length()) return PT; else if ( strModality.find("RF") < strModality.length()) return RF; else if ( strModality.find("RG") < strModality.length()) return RG; - else if ( strModality.find("RTDOSE") < strModality.length()) return RTDOSE; - else if ( strModality.find("RTIMAGE") < strModality.length()) return RTIMAGE; - else if ( strModality.find("RTPLAN") < strModality.length()) return RTPLAN; - else if ( strModality.find("RTSTRUCT") < strModality.length()) return RTSTRUCT; + else if ( strModality.find("RTDOSE") + < strModality.length()) return RTDOSE; + else if ( strModality.find("RTIMAGE") + < strModality.length()) return RTIMAGE; + else if ( strModality.find("RTPLAN") + < strModality.length()) return RTPLAN; + else if ( strModality.find("RTSTRUCT") + < strModality.length()) return RTSTRUCT; else if ( strModality.find("SM") < strModality.length()) return SM; else if ( strModality.find("ST") < strModality.length()) return ST; else if ( strModality.find("TG") < strModality.length()) return TG; diff --git a/src/gdcmFile.h b/src/gdcmFile.h index 36777fe6..0afb7cef 100644 --- a/src/gdcmFile.h +++ b/src/gdcmFile.h @@ -3,8 +3,8 @@ Program: gdcm Module: $RCSfile: gdcmFile.h,v $ Language: C++ - Date: $Date: 2005/03/11 11:12:13 $ - Version: $Revision: 1.105 $ + Date: $Date: 2005/03/22 11:37:15 $ + Version: $Revision: 1.106 $ Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de l'Image). All rights reserved. See Doc/License.txt or @@ -180,9 +180,9 @@ protected: /// NumPixel to provide a unique access facility. uint16_t NumPixel; /// \brief In some cases (e.g. for some ACR-NEMA images) the header entry for - /// the group of pixels is *not* found at 0x7fe0. In order to - /// make things easier the parser shall store the proper value in - /// GrPixel to provide a unique access facility. + /// the group of pixels is *not* found at 0x7fe0. + /// In order to make things easier the parser shall store the proper value + /// in GrPixel to provide a unique access facility. uint16_t GrPixel; private: diff --git a/src/gdcmGlobal.cxx b/src/gdcmGlobal.cxx index 1a31c1c6..09cb9ec0 100644 --- a/src/gdcmGlobal.cxx +++ b/src/gdcmGlobal.cxx @@ -3,8 +3,8 @@ Program: gdcm Module: $RCSfile: gdcmGlobal.cxx,v $ Language: C++ - Date: $Date: 2005/02/11 15:22:18 $ - Version: $Revision: 1.21 $ + Date: $Date: 2005/03/22 11:41:24 $ + 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 @@ -27,7 +27,7 @@ namespace gdcm { //----------------------------------------------------------------------------- -/// \brief Those global string that are return by reference everywhere in +/// \brief Those global string that are returned by reference everywhere in /// gdcm code used to be in gdcmCommon.h but due to a 'bug' in gcc/MacOSX /// you cannot have static initialization in a multithreaded environment /// since there is a lazy construction everything got skrew up somehow -- 2.48.1