]> Creatis software - gdcm.git/blobdiff - src/gdcmSQItem.cxx
Solve pb when structure (list, map, ...) is empty.
[gdcm.git] / src / gdcmSQItem.cxx
index 85a6cd675fbcc0bf45fe59f8b9ec6feba9e5ee10..4717dcb0274a19e83af24ab424abdd93477cf543 100644 (file)
@@ -3,8 +3,8 @@
   Program:   gdcm
   Module:    $RCSfile: gdcmSQItem.cxx,v $
   Language:  C++
-  Date:      $Date: 2005/01/16 04:50:42 $
-  Version:   $Revision: 1.51 $
+  Date:      $Date: 2005/01/18 08:01:42 $
+  Version:   $Revision: 1.53 $
   
   Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de
   l'Image). All rights reserved. See Doc/License.txt or
@@ -32,7 +32,6 @@ namespace gdcm
 //-----------------------------------------------------------------------------
 // Constructor / Destructor
 /**
- * \ingroup SQItem
  * \brief   Constructor from a given SQItem
  */
 SQItem::SQItem(int depthLevel ) 
@@ -71,7 +70,7 @@ void SQItem::Print(std::ostream &os, std::string const &)
          s << "   | " ;
       }
    }
-   //std::cout << s.str() << " --- SQItem number " << SQItemNumber  << std::endl;
+   os << s.str() << " --- SQItem number " << SQItemNumber  << std::endl;
    for (ListDocEntry::iterator i  = DocEntries.begin();
                                i != DocEntries.end();
                              ++i)
@@ -82,9 +81,9 @@ void SQItem::Print(std::ostream &os, std::string const &)
       os << s.str();
       Entry->SetPrintLevel(PrintLevel);
       Entry->Print(os); 
-      if ( SeqEntry *seqEntry = dynamic_cast<SeqEntry*>(Entry) )
+      if ( /* SeqEntry *seqEntry =*/ dynamic_cast<SeqEntry*>(Entry) )
       {
-         (void)seqEntry;  //not used
+         //(void)seqEntry;  //not used
          PrintEndLine = false;
       }
       if (PrintEndLine)
@@ -95,7 +94,6 @@ void SQItem::Print(std::ostream &os, std::string const &)
 }
 
 /*
- * \ingroup SQItem
  * \brief   canonical Writer
  */
 void SQItem::WriteContent(std::ofstream *fp, FileType filetype)
@@ -187,7 +185,7 @@ bool SQItem::SetEntry(std::string const &val, uint16_t group,
          ValEntry* entry = 0;
          TagKey key = DictEntry::TranslateToKey(group, elem);
 
-         // we assume a Public Dictionnary *is* loaded
+         // we assume a Public Dictionary *is* loaded
          Dict *pubDict = Global::GetDicts()->GetDefaultPubDict();
          // if the invoked (group,elem) doesn't exist inside the Dictionary
          // we create a VirtualDictEntry
@@ -276,7 +274,7 @@ void SQItem::Initialize()
 }
                                                                                 
 /**
- * \brief   Get the next entry whil visiting the chained list
+ * \brief   Get the next entry while visiting the chained list
  * \return  The next DocEntry if found, otherwhise NULL
  */
 DocEntry *SQItem::GetNextEntry()