X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=src%2FgdcmBase.h;h=3f4024a4dd26d68ca6eb6258be16f85e698d440b;hb=71f35f3ac11f6739672c446d17dc3b06c9e4280a;hp=bfaa1f58f9cc3005e19fc29eb5a44d09b4354315;hpb=475dad1a368326a1771b7b704dbe6092aa3f77e6;p=gdcm.git diff --git a/src/gdcmBase.h b/src/gdcmBase.h index bfaa1f58..3f4024a4 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/07/30 18:16:19 $ - Version: $Revision: 1.6 $ + Date: $Date: 2007/05/23 14:18:07 $ + Version: $Revision: 1.11 $ Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de l'Image). All rights reserved. See Doc/License.txt or @@ -22,11 +22,11 @@ #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 Print - void SetPrintLevel(int level) { PrintLevel = level; }; + 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 :