]> Creatis software - gdcm.git/blob - src/gdcmBinEntry.cxx
4498e27fa085d2360ef094f2216db385de5c758a
[gdcm.git] / src / gdcmBinEntry.cxx
1 // gdcmBinEntry.cxx
2 //-----------------------------------------------------------------------------
3 //
4 #include "gdcmBinEntry.h"
5
6
7 //-----------------------------------------------------------------------------
8 // Constructor / Destructor
9
10 /**
11  * \brief   Constructor from a given gdcmBinEntry
12  */
13 gdcmBinEntry::gdcmBinEntry(gdcmDictEntry* e) : gdcmValEntry(e) {
14
15 }
16
17 /**
18  * \brief   Constructor from a given gdcmBinEntry
19  * @param   e Pointer to existing Doc entry
20  */
21 gdcmBinEntry::gdcmBinEntry(gdcmDocEntry* e) : gdcmValEntry(e->GetDictEntry()){
22    this->UsableLength = e->GetLength();
23         this->ReadLength   = e->GetReadLength();        
24         this->ImplicitVR   = e->IsImplicitVR();
25         this->Offset       = e->GetOffset();    
26         this->printLevel   = e->GetPrintLevel();        
27         this->SQDepthLevel = e->GetDepthLevel();        
28         
29    this->voidArea = NULL; // let's be carefull !
30 }
31
32 /**
33  * \brief   Canonical destructor.
34  */
35 gdcmBinEntry::~gdcmBinEntry(){
36    free (voidArea);
37 }
38
39
40 //-----------------------------------------------------------------------------
41 // Print
42 /*
43  * \ingroup gdcmDocEntry
44  * \brief   canonical Printer
45  */
46  
47 void gdcmBinEntry::Print(std::ostream &os) {
48    PrintCommonPart(os);
49    std::cout << " gdcmBinEntry : Print, so WHAT ?" <<std::endl;
50 }
51 //-----------------------------------------------------------------------------
52 // Public
53
54 //-----------------------------------------------------------------------------
55 // Protected
56
57 //-----------------------------------------------------------------------------
58 // Private
59    
60 //-----------------------------------------------------------------------------