X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=src%2FgdcmBase.h;h=8d88bf50d393d17cd66643fdfa442a9bb24237f5;hb=01b8a6a38ef3eb36670dada5f3abc48b09692db4;hp=35198eb9f2127c197015bc3fd7b45128737a7e9c;hpb=e8caac199c2683cb0f118c42c61dc6aec85b1eec;p=gdcm.git diff --git a/src/gdcmBase.h b/src/gdcmBase.h index 35198eb9..8d88bf50 100644 --- a/src/gdcmBase.h +++ b/src/gdcmBase.h @@ -3,8 +3,8 @@ Program: gdcm Module: $RCSfile: gdcmBase.h,v $ Language: C++ - Date: $Date: 2005/01/16 04:50:40 $ - Version: $Revision: 1.3 $ + Date: $Date: 2005/10/23 15:32:30 $ + 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,8 +26,7 @@ namespace gdcm { //----------------------------------------------------------------------------- /** - * \brief Base class of all gdcm classes - * + * \brief Base class of all gdcm classes. * Contains the Print related methods : * - Print * - SetPrintLevel / GetPrintLevel @@ -35,20 +34,23 @@ namespace gdcm class GDCM_EXPORT Base { public: - Base( ); - virtual ~Base(); - - virtual void Print(std::ostream &os = std::cout, std::string const & indent = "" ); + /// \brief Constructor + Base( ) {PrintLevel = 0;} + /// \brief Canonical Destructor + virtual ~Base() {} + /// \brief Printer + virtual void Print(std::ostream & = std::cout, + std::string const & = "" ) {}; /// \brief Sets the print level for the Dicom Header Elements - /// \note 0 for Light Print; 1 for 'medium' Print, 2 for Heavy - void SetPrintLevel(int level) { PrintLevel = level; }; + /// \note 0 for Light Print; 1 for 'medium' Print, 2 for Heavy Print + void SetPrintLevel(int level) { PrintLevel = level; } - /// \brief Gets the print level for the Dicom Header Elements - int GetPrintLevel() { return PrintLevel; }; + /// \brief Gets the print level for the Dicom Entries + int GetPrintLevel() { return PrintLevel; } protected: - /// \brief Amount of printed details for each Header Entry (Dicom Element): + /// \brief Amount of printed details for each Dicom Entries : /// 0 : stands for the least detail level. int PrintLevel; };