gdcmBase.h

Go to the documentation of this file.
00001 /*=========================================================================
00002                                                                                 
00003   Program:   gdcm
00004   Module:    $RCSfile: gdcmBase.h,v $
00005   Language:  C++
00006   Date:      $Date: 2007/08/22 16:14:03 $
00007   Version:   $Revision: 1.12 $
00008                                                                                 
00009   Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de
00010   l'Image). All rights reserved. See Doc/License.txt or
00011   http://www.creatis.insa-lyon.fr/Public/Gdcm/License.html for details.
00012                                                                                 
00013      This software is distributed WITHOUT ANY WARRANTY; without even
00014      the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
00015      PURPOSE.  See the above copyright notices for more information.
00016                                                                                 
00017 =========================================================================*/
00018 
00019 #ifndef _GDCMBASE_H_
00020 #define _GDCMBASE_H_
00021 
00022 #include "gdcmCommon.h"
00023 #include <iostream>
00024 
00025 namespace GDCM_NAME_SPACE 
00026 {
00027 //-----------------------------------------------------------------------------
00034 class GDCM_EXPORT Base
00035 {
00036 public:
00038    Base( ) { PrintLevel = 0; }
00040    virtual ~Base() {}
00042    virtual void Print(std::ostream & = std::cout, 
00043                       std::string const & = "" ) {};
00044 
00047    void SetPrintLevel(int level) { PrintLevel = level; }
00048 
00050    int GetPrintLevel() { return PrintLevel; }
00051 
00052 protected:
00055    int PrintLevel;
00056 };
00057 } // end namespace gdcm
00058 
00059 //-----------------------------------------------------------------------------
00060 #endif

Generated on Fri Aug 24 12:59:28 2007 for gdcm by  doxygen 1.4.6