1 /*=========================================================================
4 Module: $RCSfile: gdcmBase.h,v $
6 Date: $Date: 2004/12/16 13:46:38 $
7 Version: $Revision: 1.1 $
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
31 * Contains all to correctly print
33 * - SetPrintLevel method
35 class GDCM_EXPORT Base
41 virtual void Print(std::ostream &os = std::cout);
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 Header Elements
48 int GetPrintLevel() { return PrintLevel; };
51 /// \brief Amount of printed details for each Header Entry (Dicom Element):
52 /// 0 : stands for the least detail level.
55 } // end namespace gdcm
57 //-----------------------------------------------------------------------------