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

gdcmBinEntry.h

Go to the documentation of this file.
00001 /*=========================================================================
00002                                                                                 
00003   Program:   gdcm
00004   Module:    $RCSfile: gdcmBinEntry.h,v $
00005   Language:  C++
00006   Date:      $Date: 2005/02/02 16:18:48 $
00007   Version:   $Revision: 1.36 $
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 GDCMBINENTRY_H
00020 #define GDCMBINENTRY_H
00021 
00022 #include "gdcmContentEntry.h"
00023 #include <iostream>
00024 
00025 namespace gdcm 
00026 {
00027 
00028 //-----------------------------------------------------------------------------
00038 class GDCM_EXPORT BinEntry  : public ContentEntry
00039 {
00040 public:
00041    BinEntry( DictEntry *e );
00042    BinEntry( DocEntry *d ); 
00043 
00044    ~BinEntry();
00045    
00046    void Print( std::ostream &os = std::cout, std::string const & indent = "" );
00047 
00048    void WriteContent( std::ofstream *fp, FileType ft);
00049 
00052    uint8_t *GetBinArea()  { return BinArea; }
00053    void  SetBinArea( uint8_t *area, bool self = true );
00054 
00056    void SetSelfArea(bool area) { SelfArea = area; };
00058    bool IsSelfArea() { return SelfArea; };
00059 
00060 private:
00063    uint8_t *BinArea;
00065    bool SelfArea;
00066 };
00067 
00068 } // end namespace gdcm
00069 //-----------------------------------------------------------------------------
00070 #endif
00071 

Generated on Thu Feb 10 22:17:56 2005 for gdcm by doxygen 1.3.6