X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;ds=sidebyside;f=src%2FgdcmBase.h;h=721d8c523c17a48e01736653768128bef5dc6a56;hb=0bcc188c6d5185375f809253e8b9b97c856d2eac;hp=0036ba22115edd06e1ef5c07ebabe298d6803f80;hpb=dd9001df5c1b8d5be917f635a6316aa4f0869af7;p=gdcm.git diff --git a/src/gdcmBase.h b/src/gdcmBase.h index 0036ba22..721d8c52 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/30 17:30:57 $ - Version: $Revision: 1.5 $ + Date: $Date: 2007/08/22 16:14:03 $ + 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 @@ -16,17 +16,17 @@ =========================================================================*/ -#ifndef GDCMBASE_H -#define GDCMBASE_H +#ifndef _GDCMBASE_H_ +#define _GDCMBASE_H_ #include "gdcmCommon.h" #include -namespace gdcm +namespace GDCM_NAME_SPACE { //----------------------------------------------------------------------------- /** - * \brief Base class of all gdcm classes + * \brief Base class of all gdcm classes. * Contains the Print related methods : * - Print * - SetPrintLevel / GetPrintLevel @@ -34,18 +34,20 @@ 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 Entries - int GetPrintLevel() { return PrintLevel; }; + int GetPrintLevel() { return PrintLevel; } protected: /// \brief Amount of printed details for each Dicom Entries :