X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=src%2FgdcmSQItem.cxx;h=4717dcb0274a19e83af24ab424abdd93477cf543;hb=963480c814326423065a4a02fa1bf8bc1243ae4f;hp=d4055914663513f5960d2dbeceea8ac0f551c0ed;hpb=827d0d72b115d9e54aac8f0b054856dffff862ca;p=gdcm.git diff --git a/src/gdcmSQItem.cxx b/src/gdcmSQItem.cxx index d4055914..4717dcb0 100644 --- a/src/gdcmSQItem.cxx +++ b/src/gdcmSQItem.cxx @@ -3,8 +3,8 @@ Program: gdcm Module: $RCSfile: gdcmSQItem.cxx,v $ Language: C++ - Date: $Date: 2005/01/11 00:21:48 $ - Version: $Revision: 1.50 $ + 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 ) @@ -60,7 +59,7 @@ SQItem::~SQItem() /* * \brief canonical Printer */ -void SQItem::Print(std::ostream &os) +void SQItem::Print(std::ostream &os, std::string const &) { std::ostringstream s; @@ -71,7 +70,7 @@ void SQItem::Print(std::ostream &os) 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) os << s.str(); Entry->SetPrintLevel(PrintLevel); Entry->Print(os); - if ( SeqEntry *seqEntry = dynamic_cast(Entry) ) + if ( /* SeqEntry *seqEntry =*/ dynamic_cast(Entry) ) { - (void)seqEntry; //not used + //(void)seqEntry; //not used PrintEndLine = false; } if (PrintEndLine) @@ -95,7 +94,6 @@ void SQItem::Print(std::ostream &os) } /* - * \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()