X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=src%2FgdcmBase.h;h=3e6097d86a8949cd52fb7e7db0037d8ac0324999;hb=12a274bc7f2ed75439e0451bb5e9ff2b612e8aa2;hp=e7b7abccb0e35ddc34d079ae30910da82f49932e;hpb=f5c7e83afd484a025285c64a09a89bd227087245;p=gdcm.git diff --git a/src/gdcmBase.h b/src/gdcmBase.h index e7b7abcc..3e6097d8 100644 --- a/src/gdcmBase.h +++ b/src/gdcmBase.h @@ -3,8 +3,8 @@ Program: gdcm Module: $RCSfile: gdcmBase.h,v $ Language: C++ - Date: $Date: 2004/12/16 13:46:38 $ - Version: $Revision: 1.1 $ + Date: $Date: 2005/10/20 15:24:08 $ + Version: $Revision: 1.8 $ Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de l'Image). All rights reserved. See Doc/License.txt or @@ -25,30 +25,30 @@ namespace gdcm { //----------------------------------------------------------------------------- -/* +/** * \brief Base class of all gdcm classes - * - * Contains all to correctly print - * - Print method - * - SetPrintLevel method + * Contains the Print related methods : + * - Print + * - SetPrintLevel / GetPrintLevel */ class GDCM_EXPORT Base { public: - Base( ); - virtual ~Base(); + Base( ) {PrintLevel = 0;} + virtual ~Base() {} - virtual void Print(std::ostream &os = std::cout); + virtual void Print(std::ostream &os = std::cout, + std::string const & indent = "" ) {}; /// \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; };