X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;ds=sidebyside;f=src%2FgdcmValEntry.cxx;h=045ce967714968f632a32758ede41333fd5ba498;hb=b3f903e00dbe97bcd6697ba659d0f1aa586bbbb8;hp=a329b54ce035fdf711f7393eab12532b5c655aba;hpb=98ab91206c2a0e603d6d9b11951860e5c78e315a;p=gdcm.git diff --git a/src/gdcmValEntry.cxx b/src/gdcmValEntry.cxx index a329b54c..045ce967 100644 --- a/src/gdcmValEntry.cxx +++ b/src/gdcmValEntry.cxx @@ -1,6 +1,21 @@ -// gdcmValEntry.cxx -//----------------------------------------------------------------------------- -// +/*========================================================================= + + Program: gdcm + Module: $RCSfile: gdcmValEntry.cxx,v $ + Language: C++ + Date: $Date: 2004/06/20 18:08:48 $ + Version: $Revision: 1.7 $ + + Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de + l'Image). All rights reserved. See Doc/License.txt or + http://www.creatis.insa-lyon.fr/Public/Gdcm/License.htm for details. + + This software is distributed WITHOUT ANY WARRANTY; without even + the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR + PURPOSE. See the above copyright notices for more information. + +=========================================================================*/ + #include "gdcmValEntry.h" #include "gdcmTS.h" #include "gdcmGlobal.h" @@ -20,6 +35,23 @@ gdcmValEntry::gdcmValEntry(gdcmDictEntry* e) : gdcmDocEntry(e) { voidArea = NULL; // will be in BinEntry ? } +/** + * \ingroup gdcmValEntry + * \brief Constructor from a given gdcmDocEntry + * @param e Pointer to existing Doc entry + */ +gdcmValEntry::gdcmValEntry(gdcmDocEntry* e) : gdcmDocEntry(e->GetDictEntry()){ + this->UsableLength = e->GetLength(); + this->ReadLength = e->GetReadLength(); + this->ImplicitVR = e->IsImplicitVR(); + this->Offset = e->GetOffset(); + this->printLevel = e->GetPrintLevel(); + this->SQDepthLevel = e->GetDepthLevel(); + + this->voidArea = NULL; // will be in BinEntry ? +} + + /** * \brief Canonical destructor. */