Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | File List | Namespace Members | Class Members | File Members | Related Pages

gdcm::Base Class Reference

Base class of all gdcm classes Contains the Print related methods : -Print -SetPrintLevel / GetPrintLevel. More...

#include <gdcmBase.h>

Inheritance diagram for gdcm::Base:

gdcm::Dict gdcm::DictEntry gdcm::DictSet gdcm::DocEntry gdcm::DocEntrySet gdcm::FileHelper gdcm::PixelReadConvert gdcm::PixelWriteConvert List of all members.

Public Member Functions

 Base ()
 canonical constructor

virtual ~Base ()
 canonical destructor

virtual void Print (std::ostream &os=std::cout, std::string const &indent="")
 Print all the object.

void SetPrintLevel (int level)
 Sets the print level for the Dicom Header Elements.

int GetPrintLevel ()
 Gets the print level for the Dicom Entries.


Protected Attributes

int PrintLevel
 Amount of printed details for each Dicom Entries : 0 : stands for the least detail level.


Detailed Description

Base class of all gdcm classes Contains the Print related methods : -Print -SetPrintLevel / GetPrintLevel.

Definition at line 34 of file gdcmBase.h.


Constructor & Destructor Documentation

gdcm::Base::Base  ) 
 

canonical constructor

Definition at line 28 of file gdcmBase.cxx.

References PrintLevel.

00029 {
00030    PrintLevel = 0;
00031 }

gdcm::Base::~Base  )  [virtual]
 

canonical destructor

Note:
If the Header was created by the File constructor, it is destroyed by the File

Definition at line 38 of file gdcmBase.cxx.

00039 { 
00040 }


Member Function Documentation

int gdcm::Base::GetPrintLevel  )  [inline]
 

Gets the print level for the Dicom Entries.

Definition at line 48 of file gdcmBase.h.

00048 { return PrintLevel; };

void gdcm::Base::Print std::ostream &  os = std::cout,
std::string const &  indent = ""
[virtual]
 

Print all the object.

Parameters:
os The output stream to be written to.
indent Indentation string to be prepended during printing

Reimplemented in gdcm::BinEntry, gdcm::DicomDir, gdcm::DicomDirImage, gdcm::DicomDirMeta, gdcm::DicomDirPatient, gdcm::DicomDirSerie, gdcm::DicomDirStudy, gdcm::Dict, gdcm::DictEntry, gdcm::DictSet, gdcm::DocEntry, gdcm::ElementSet, gdcm::FileHelper, gdcm::PixelReadConvert, gdcm::SeqEntry, gdcm::SQItem, and gdcm::ValEntry.

Definition at line 58 of file gdcmBase.cxx.

00059 {
00060 }

void gdcm::Base::SetPrintLevel int  level  )  [inline]
 

Sets the print level for the Dicom Header Elements.

Note:
0 for Light Print; 1 for 'medium' Print, 2 for Heavy

Definition at line 45 of file gdcmBase.h.

Referenced by gdcm::SQItem::Print(), gdcm::SeqEntry::Print(), gdcm::FileHelper::Print(), gdcm::ElementSet::Print(), and gdcm::DicomDir::Print().

00045 { PrintLevel = level; };


Member Data Documentation

int gdcm::Base::PrintLevel [protected]
 

Amount of printed details for each Dicom Entries : 0 : stands for the least detail level.

Definition at line 53 of file gdcmBase.h.

Referenced by Base().


The documentation for this class was generated from the following files:
Generated on Thu Feb 10 22:18:05 2005 for gdcm by doxygen 1.3.6