Program: gdcm
Module: $RCSfile: gdcmDicomDir.cxx,v $
Language: C++
- Date: $Date: 2005/08/19 13:15:05 $
- Version: $Revision: 1.153 $
+ Date: $Date: 2005/08/29 09:41:22 $
+ Version: $Revision: 1.154 $
Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de
l'Image). All rights reserved. See Doc/License.txt or
if ( ! this->Document::Load( ) )
return false;
}
- return DoTheLoadingJob( );
+ return DoTheLoadingJob( );
}
- #ifndef GDCM_LEGACY_REMOVE
+#ifndef GDCM_LEGACY_REMOVE
/**
* \brief Loader. (DEPRECATED : kept not to break the API)
* @param fileName file to be open for parsing
Program: gdcm
Module: $RCSfile: gdcmDocument.cxx,v $
Language: C++
- Date: $Date: 2005/08/24 12:51:45 $
- Version: $Revision: 1.268 $
+ Date: $Date: 2005/08/29 09:41:22 $
+ Version: $Revision: 1.269 $
Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de
l'Image). All rights reserved. See Doc/License.txt or
// When "this" is a Document the Key is simply of the
// form ( group, elem )...
- if ( dynamic_cast< Document* > ( set ) )
+ if ( set == this ) // ( dynamic_cast< Document* > ( set ) )
{
newBinEntry->SetKey( newBinEntry->GetKey() );
}
// When "set" is a Document, then we are at the top of the
// hierarchy and the Key is simply of the form ( group, elem )...
- if ( dynamic_cast< Document* > ( set ) )
+ if ( set == this ) // ( dynamic_cast< Document* > ( set ) )
{
newValEntry->SetKey( newValEntry->GetKey() );
}
}
}
}
- }
+ }
bool delimitor=newValEntry->IsItemDelimitor();
// is a Document, then we are building the first depth level.
// Hence the SeqEntry we are building simply has a depth
// level of one:
- if ( dynamic_cast< Document* > ( set ) )
+// SQItem *parentSQItem = dynamic_cast< SQItem* > ( set );
+ if ( set == this ) // ( dynamic_cast< Document* > ( set ) )
{
newSeqEntry->SetDepthLevel( 1 );
newSeqEntry->SetKey( newSeqEntry->GetKey() );
// we are building, is one level deeper:
// time waste hunting
- if (SQItem *parentSQItem = dynamic_cast< SQItem* > ( set ) )
+ else if (SQItem *parentSQItem = dynamic_cast< SQItem* > ( set ) )
{
newSeqEntry->SetDepthLevel( parentSQItem->GetDepthLevel() + 1 );
used = false;
}
- if ( !delim_mode && ((long)(Fp->tellg())-offset) >= l_max)
+ if ( !delim_mode && ((long)(Fp->tellg())-offset) >= l_max)
{
if ( !used )
delete newDocEntry;