1 /*=========================================================================
4 Module: $RCSfile: gdcmBase.h,v $
6 Date: $Date: 2005/01/30 17:30:57 $
7 Version: $Revision: 1.5 $
9 Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de
10 l'Image). All rights reserved. See Doc/License.txt or
11 http://www.creatis.insa-lyon.fr/Public/Gdcm/License.html for details.
13 This software is distributed WITHOUT ANY WARRANTY; without even
14 the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
15 PURPOSE. See the above copyright notices for more information.
17 =========================================================================*/
22 #include "gdcmCommon.h"
27 //-----------------------------------------------------------------------------
29 * \brief Base class of all gdcm classes
30 * Contains the Print related methods :
32 * - SetPrintLevel / GetPrintLevel
34 class GDCM_EXPORT Base
40 virtual void Print(std::ostream &os = std::cout,
41 std::string const & indent = "" );
43 /// \brief Sets the print level for the Dicom Header Elements
44 /// \note 0 for Light Print; 1 for 'medium' Print, 2 for Heavy
45 void SetPrintLevel(int level) { PrintLevel = level; };
47 /// \brief Gets the print level for the Dicom Entries
48 int GetPrintLevel() { return PrintLevel; };
51 /// \brief Amount of printed details for each Dicom Entries :
52 /// 0 : stands for the least detail level.
55 } // end namespace gdcm
57 //-----------------------------------------------------------------------------