Program: gdcm
Module: $RCSfile: gdcmDocEntry.cxx,v $
Language: C++
- Date: $Date: 2005/02/01 10:29:55 $
- Version: $Revision: 1.50 $
+ Date: $Date: 2005/04/19 09:58:19 $
+ Version: $Revision: 1.55 $
Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de
l'Image). All rights reserved. See Doc/License.txt or
namespace gdcm
{
//-----------------------------------------------------------------------------
-#define MAX_SIZE_PRINT_ELEMENT_VALUE 64
-//-----------------------------------------------------------------------------
// Constructor / Destructor
/**
* \brief Constructor from a given DictEntry
{
uint32_t ffff = 0xffffffff;
uint16_t group = GetGroup();
- VRKey vr = GetVR();
+ VRKey vr = GetVR();
uint16_t el = GetElement();
- uint32_t lgr = GetLength();
+ uint32_t lgth = GetLength();
if ( group == 0xfffe && el == 0x0000 )
{
//
// ----------- 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 )
{
}
uint16_t z = 0;
- uint16_t shortLgr = lgr;
+ uint16_t shortLgr = (uint16_t)lgth;
if (vr == GDCM_UNKNOWN)
{
}
else
{
- binary_write(*fp, lgr);
+ binary_write(*fp, lgth);
}
}
else
}
else
{
- binary_write(*fp, lgr);
+ binary_write(*fp, lgth);
}
}
}
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