Program: gdcm
Module: $RCSfile: gdcmDicomDir.cxx,v $
Language: C++
- Date: $Date: 2005/01/21 15:28:18 $
- Version: $Revision: 1.113 $
+ Date: $Date: 2005/01/23 10:12:33 $
+ Version: $Revision: 1.114 $
Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de
l'Image). All rights reserved. See Doc/License.txt or
Initialize(); // sets all private fields to NULL
// if user passed a root directory, sure we didn't get anything
- if ( GetFirstEntry() != 0 ) // when user passed a Directory to parse
+
+ if ( GetFirstEntry() == 0 ) // when user passed a Directory to parse
{
if (!parseDir)
gdcmVerboseMacro( "Entry HT empty for file: "<<fileName);
// Print
/**
* \brief Canonical Printer
+ * @param os ostream we want to print in
+ * @param indent Indentation string to be prepended during printing
*/
void DicomDir::Print(std::ostream &os, std::string const & )
{
if( MetaElems )
delete MetaElems;
- // friend hunting : we miss GetLastEntry and GetPreviousEntry
+ // friend class hunting : we miss GetLastEntry and GetPreviousEntry
// to be able to remove any direct reference to TagHT
DocEntry *e = GetFirstEntry();
}
NewMeta();
-
- //ListSQItem listItems = s->GetSQItems();
DocEntry *d;
std::string v;
if( si )
MoveSQItem(si,tmpSI);
-
tmpSI=s->GetNextSQItem();
}
// friend hunting : this one will be difficult to remove !
}
/**
- * \brief compares two dgcmHeaders
+ * \brief compares two files
*/
bool DicomDir::HeaderLessThan(Document *header1, Document *header2)
{