Program: gdcm
Module: $RCSfile: gdcmDocEntry.cxx,v $
Language: C++
- Date: $Date: 2005/02/01 10:29:55 $
- Version: $Revision: 1.50 $
+ Date: $Date: 2005/02/02 16:18:48 $
+ Version: $Revision: 1.52 $
Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de
l'Image). All rights reserved. See Doc/License.txt or
{
uint32_t ffff = 0xffffffff;
uint16_t group = GetGroup();
- VRKey vr = GetVR();
+ VRKey vr = GetVR();
uint16_t el = GetElement();
uint32_t lgr = GetLength();
//
// ----------- Writes the common part
//
- binary_write( *fp, group); //group
- binary_write( *fp, el); //element
+ binary_write( *fp, group); //group number
+ binary_write( *fp, el); //element number
if ( filetype == ExplicitVR )
{
return l;
}
-/**
- * \brief Copies all the attributes from an other DocEntry
- * @param doc entry to copy from
- */
-void DocEntry::Copy(DocEntry *doc)
-{
- Length = doc->Length;
- ReadLength = doc->ReadLength;
- ImplicitVR = doc->ImplicitVR;
- Offset = doc->Offset;
-}
-
/**
* \brief tells us if entry is the last one of a 'no length' SequenceItem
* (fffe,e00d)
return (GetGroup() == 0xfffe && GetElement() == 0xe0dd);
}
+/**
+ * \brief Copies all the attributes from an other DocEntry
+ * @param doc entry to copy from
+ */
+void DocEntry::Copy(DocEntry *doc)
+{
+ Length = doc->Length;
+ ReadLength = doc->ReadLength;
+ ImplicitVR = doc->ImplicitVR;
+ Offset = doc->Offset;
+}
+
//-----------------------------------------------------------------------------
// Protected