Program: gdcm
Module: $RCSfile: gdcmDocEntry.cxx,v $
Language: C++
- Date: $Date: 2004/08/01 00:59:21 $
- Version: $Revision: 1.14 $
+ Date: $Date: 2004/09/03 15:09:30 $
+ Version: $Revision: 1.17 $
Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de
l'Image). All rights reserved. See Doc/License.txt or
gdcmDocEntry::gdcmDocEntry(gdcmDictEntry* in)
{
ImplicitVR = false;
- entry = in;
+ DictEntry = in;
+ Offset = 0 ; // To avoid further missprinting
}
//-----------------------------------------------------------------------------
*/
void gdcmDocEntry::Print(std::ostream & os)
{
- printLevel=2; // FIXME
+ PrintLevel = 2; // FIXME
size_t o;
unsigned short int g, e;
sprintf(greltag,"%04x|%04x ",g,e);
s << greltag ;
- if (printLevel>=2)
+ if (PrintLevel >= 2)
{
s << "lg : ";
lgth = GetReadLength(); // ReadLength, as opposed to UsableLength
s << "[" << vr << "] ";
- if (printLevel >= 1)
+ if (PrintLevel >= 1)
{
s.setf(std::ios::left);
s << std::setw(66-GetName().length()) << " ";
/**
* \ingroup gdcmDocEntry
* \brief Writes the common part of any gdcmValEntry, gdcmBinEntry, gdcmSeqEntry
+ * @param fp already open file pointer
+ * @param filetype type of the file to be written
*/
void gdcmDocEntry::Write(FILE *fp, FileType filetype)
{
uint16_t el = GetElement();
uint32_t lgr = GetReadLength();
- if ( (group == 0xfffe) && (el == 0x0000) )
+ if ( group == 0xfffe && el == 0x0000 )
{
// Fix in order to make some MR PHILIPS images e-film readable
// see gdcmData/gdcm-MR-PHILIPS-16-Multi-Seq.dcm:
*/
void gdcmDocEntry::Copy (gdcmDocEntry* e)
{
- entry = e->entry;
+ DictEntry = e->DictEntry;
UsableLength = e->UsableLength;
ReadLength = e->ReadLength;
ImplicitVR = e->ImplicitVR;
Offset = e->Offset;
- printLevel = e->printLevel;
+ PrintLevel = e->PrintLevel;
// TODO : remove gdcmDocEntry SQDepth
}
* \brief tells us if entry is the last one of a 'no length' SequenceItem
* (fffe,e00d)
*/
-bool gdcmDocEntry::isItemDelimitor()
+bool gdcmDocEntry::IsItemDelimitor()
{
return (GetGroup() == 0xfffe && GetElement() == 0xe00d);
}
* \brief tells us if entry is the last one of a 'no length' Sequence
* (fffe,e0dd)
*/
-bool gdcmDocEntry::isSequenceDelimitor()
+bool gdcmDocEntry::IsSequenceDelimitor()
{
return (GetGroup() == 0xfffe && GetElement() == 0xe0dd);
}