1 /*=========================================================================
4 Module: $RCSfile: gdcmBinEntry.cxx,v $
6 Date: $Date: 2004/06/21 12:38:28 $
7 Version: $Revision: 1.12 $
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.htm 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 =========================================================================*/
19 #include "gdcmBinEntry.h"
20 #include "gdcmDebug.h"
23 //-----------------------------------------------------------------------------
24 // Constructor / Destructor
27 * \brief Constructor from a given gdcmBinEntry
29 gdcmBinEntry::gdcmBinEntry(gdcmDictEntry* e) : gdcmValEntry(e)
31 this->voidArea = NULL;
35 * \brief Constructor from a given gdcmBinEntry
36 * @param e Pointer to existing Doc entry
38 gdcmBinEntry::gdcmBinEntry(gdcmDocEntry* e) : gdcmValEntry(e->GetDictEntry())
40 this->UsableLength = e->GetLength();
41 this->ReadLength = e->GetReadLength();
42 this->ImplicitVR = e->IsImplicitVR();
43 this->Offset = e->GetOffset();
44 this->printLevel = e->GetPrintLevel();
45 this->SQDepthLevel = e->GetDepthLevel();
47 this->voidArea = NULL; // let's be carefull !
51 * \brief Canonical destructor.
53 gdcmBinEntry::~gdcmBinEntry(){
59 //-----------------------------------------------------------------------------
62 * \brief canonical Printer
65 void gdcmBinEntry::Print(std::ostream &os)
67 gdcmValEntry::Print(os);
71 s << " [gdcm::Binary data loaded with lenght is "
77 s << " [gdcm::Binary data NOT loaded]"
82 //-----------------------------------------------------------------------------
85 //-----------------------------------------------------------------------------
88 //-----------------------------------------------------------------------------
91 //-----------------------------------------------------------------------------