⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 gdcmbase.h

📁 DTMK软件开发包,此为开源软件,是一款很好的医学图像开发资源.
💻 H
字号:
/*=========================================================================
                                                                                
  Program:   gdcm
  Module:    $RCSfile: gdcmBase.h,v $
  Language:  C++
  Date:      $Date: 2006-02-18 12:36:38 $
  Version:   $Revision: 1.3 $
                                                                                
  Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de
  l'Image). All rights reserved. See Doc/License.txt or
  http://www.creatis.insa-lyon.fr/Public/Gdcm/License.html for details.
                                                                                
     This software is distributed WITHOUT ANY WARRANTY; without even
     the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
     PURPOSE.  See the above copyright notices for more information.
                                                                                
=========================================================================*/

#ifndef GDCMBASE_H
#define GDCMBASE_H

#include "gdcmCommon.h"
#include <iostream>

namespace gdcm 
{
//-----------------------------------------------------------------------------
/**
 * \brief Base class of all gdcm classes.
 * Contains the Print related methods :
 *  - Print 
 *  - SetPrintLevel / GetPrintLevel 
 */
class GDCM_EXPORT Base
{
public:
   Base( );
   virtual ~Base();

   /// \brief Printer
   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 Print
   void SetPrintLevel(int level) { PrintLevel = level; }

   /// \brief Gets the print level for the Dicom Entries
   int GetPrintLevel() { return PrintLevel; }

protected:
   /// \brief Amount of printed details for each Dicom Entries :
   /// 0 : stands for the least detail level.
   int PrintLevel;
};
} // end namespace gdcm

//-----------------------------------------------------------------------------
#endif

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -