Program: gdcm
Module: $RCSfile: gdcmDocEntry.cxx,v $
Language: C++
- Date: $Date: 2004/09/13 12:10:53 $
- Version: $Revision: 1.19 $
+ Date: $Date: 2004/10/06 13:12:42 $
+ Version: $Revision: 1.24 $
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.
+ http://www.creatis.insa-lyon.fr/Public/Gdcm/License.html for details.
This software is distributed WITHOUT ANY WARRANTY; without even
the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
* \brief Prints the common part of gdcmValEntry, gdcmBinEntry, gdcmSeqEntry
* @param os ostream we want to print in
*/
-void gdcmDocEntry::Print(std::ostream & os)
+void gdcmDocEntry::Print(std::ostream& os)
{
PrintLevel = 2; // FIXME
o = GetOffset();
vr = GetVR();
- s << GetKey();
-
+ s << gdcmDictEntry::TranslateToKey(GetGroup(),GetElement());
+
if (PrintLevel >= 2)
{
- s << "lg : ";
+ s << " lg : ";
lgth = GetReadLength(); // ReadLength, as opposed to UsableLength
if (lgth == 0xffffffff)
{
s << std::setw(10-strlen(st)) << " ";
s << st << " ";
s.setf(std::ios::left);
- s << std::setw(8) << "-1";
+ s << std::setw(8) << "-1";
}
else
{
sprintf(st,"x(%x)",lgth);
s.setf(std::ios::left);
- s << std::setw(10-strlen(st)) << " ";
+ s << std::setw(10-strlen(st)) << " ";
s << st << " ";
s.setf(std::ios::left);
s << std::setw(8) << lgth;
* @param fp already open file pointer
* @param filetype type of the file to be written
*/
-void gdcmDocEntry::Write(FILE *fp, FileType filetype)
+void gdcmDocEntry::Write(FILE* fp, FileType filetype)
{
uint32_t FFFF = 0xffffffff;
uint16_t group = GetGroup();
/**
* \ingroup gdcmDocEntry
- * \brief Gets the full length of the elementary DocEntry (not only value length)
+ * \brief Gets the full length of the elementary DocEntry (not only value
+ * length) depending on the VR.
*/
uint32_t gdcmDocEntry::GetFullLength()
{