1 /*=========================================================================
4 Module: $RCSfile: gdcmBinEntry.cxx,v $
6 Date: $Date: 2004/06/20 18:08:47 $
7 Version: $Revision: 1.11 $
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) {
30 this->voidArea = NULL;
34 * \brief Constructor from a given gdcmBinEntry
35 * @param e Pointer to existing Doc entry
37 gdcmBinEntry::gdcmBinEntry(gdcmDocEntry* e) : gdcmValEntry(e->GetDictEntry()){
38 this->UsableLength = e->GetLength();
39 this->ReadLength = e->GetReadLength();
40 this->ImplicitVR = e->IsImplicitVR();
41 this->Offset = e->GetOffset();
42 this->printLevel = e->GetPrintLevel();
43 this->SQDepthLevel = e->GetDepthLevel();
45 this->voidArea = NULL; // let's be carefull !
49 * \brief Canonical destructor.
51 gdcmBinEntry::~gdcmBinEntry(){
57 //-----------------------------------------------------------------------------
60 * \ingroup gdcmDocEntry
61 * \brief canonical Printer
64 void gdcmBinEntry::Print(std::ostream &os) {
66 /// \todo Write a true specialisation of Print i.e. display something
67 /// for BinEntry extension.
68 dbg.Verbose(1, "gdcmBinEntry::Print: so WHAT ?");
70 //-----------------------------------------------------------------------------
73 //-----------------------------------------------------------------------------
76 //-----------------------------------------------------------------------------
79 //-----------------------------------------------------------------------------