X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=src%2FgdcmSQItem.cxx;h=fe331d2b6bed66fefafb9f34c7967f399b0f0ff5;hb=f8287c00c0a0c448eade55158a63f1d44eeb06e0;hp=0a20785df97b2bc574e6c98d98b961f840404e0f;hpb=c1f032f1d6c5d69ade7a6a05813d62de44f0dafc;p=gdcm.git diff --git a/src/gdcmSQItem.cxx b/src/gdcmSQItem.cxx index 0a20785d..fe331d2b 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/07/03 12:47:23 $ - Version: $Revision: 1.72 $ + Date: $Date: 2005/07/12 17:08:12 $ + Version: $Revision: 1.74 $ Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de l'Image). All rights reserved. See Doc/License.txt or @@ -103,6 +103,7 @@ void SQItem::WriteContent(std::ofstream *fp, FileType filetype) * \brief Inserts *in the right place* any Entry (Dicom Element) * into the Sequence Item * @param entry Entry to add + * @return always true */ bool SQItem::AddEntry(DocEntry *entry) { @@ -197,6 +198,24 @@ void SQItem::ClearEntry() DocEntries.clear(); } +/** + * \brief Clear the std::list from given Sequence Item BUT keep the entries + */ +void SQItem::ClearEntryNoDestroy() +{ + DocEntries.clear(); +} + + +/** + * \brief Move all the entries from a given Sequence Item + */ +void SQItem::MoveObject(SQItem *source) +{ + DocEntries = source->DocEntries; + source->ClearEntryNoDestroy(); +} + /** * \brief Get the first Dicom entry while visiting the SQItem * \return The first DocEntry if found, otherwhise 0