Program: gdcm
Module: $RCSfile: gdcmCommon.h,v $
Language: C++
- Date: $Date: 2005/07/11 19:46:05 $
- Version: $Revision: 1.78 $
+ Date: $Date: 2005/07/12 17:08:12 $
+ Version: $Revision: 1.79 $
Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de
l'Image). All rights reserved. See Doc/License.txt or
#endif
#include <string>
-#define FASTTAGKEY 0
+#define FASTTAGKEY 1
// FIXME: Should rewrite this:
#if FASTTAGKEY
Program: gdcm
Module: $RCSfile: gdcmDicomDir.cxx,v $
Language: C++
- Date: $Date: 2005/07/12 14:58:26 $
- Version: $Revision: 1.147 $
+ Date: $Date: 2005/07/12 17:08:12 $
+ Version: $Revision: 1.148 $
Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de
l'Image). All rights reserved. See Doc/License.txt or
// PS 3.3-2003, pages 731-750
//-----------------------------------------------------------------------------
#include "gdcmDicomDir.h"
+#include "gdcmDicomDirObject.h"
#include "gdcmDicomDirStudy.h"
#include "gdcmDicomDirSerie.h"
#include "gdcmDicomDirVisit.h"
continue;
}
if ( si )
- MoveSQItem(si,tmpSI);
+ //MoveSQItem(si,tmpSI); // Old code : Copies each Entry
+ // -and then removes the source-
+ si->MoveObject(tmpSI); // New code : Copies the List
tmpSI=s->GetNextSQItem();
}
* @param src source SQItem
*/
void DicomDir::MoveSQItem(DocEntrySet *dst,DocEntrySet *src)
-{
+{
DocEntry *entry;
entry = src->GetFirstEntry();
Program: gdcm
Module: $RCSfile: gdcmDicomDirElement.h,v $
Language: C++
- Date: $Date: 2005/07/08 19:07:12 $
- Version: $Revision: 1.29 $
+ Date: $Date: 2005/07/12 17:08:12 $
+ Version: $Revision: 1.30 $
Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de
l'Image). All rights reserved. See Doc/License.txt or
typedef std::list<Element> ListDicomDirMetaElem;
typedef std::list<Element> ListDicomDirPatientElem;
typedef std::list<Element> ListDicomDirStudyElem;
+typedef std::list<Element> ListDicomDirVisitElem;
typedef std::list<Element> ListDicomDirSerieElem;
typedef std::list<Element> ListDicomDirImageElem;
// For future use (Full DICOMDIR)
-typedef std::list<Element> ListDicomDirVisitElem;
/*
-typedef std::list<Element> ListDicomDirResult;
-typedef std::list<Element> ListDicomDirStudyComponent;
-
-typedef std::list<Element> ListDicomDirOverlay;
-typedef std::list<Element> ListDicomDirModalityLut;
-typedef std::list<Element> ListDicomDirModalityLut;
-typedef std::list<Element> ListDicomDirCurve;
-typedef std::list<Element> ListDicomDirStoredPrint;
-typedef std::list<Element> ListDicomDirRtDose;
-typedef std::list<Element> ListDicomDirRtStructureSet;
-typedef std::list<Element> ListDicomDirRtPlan;
-typedef std::list<Element> ListDicomDirRtTreatRecord;
-typedef std::list<Element> ListDicomDirPresentation;
-typedef std::list<Element> ListDicomDirSrDocument;
-typedef std::list<Element> ListDicomDirKeyObjectDoc;
-typedef std::list<Element> ListDicomDirSpectroscopy;
-typedef std::list<Element> ListDicomDirRawData;
-typedef std::list<Element> ListDicomDirRegistration;
-typedef std::list<Element> ListDicomDirFiducial;
+typedef std::list<Element> ListDicomDirResultElem;
+typedef std::list<Element> ListDicomDirStudyComponentElem;
+
+typedef std::list<Element> ListDicomDirOverlayElem;
+typedef std::list<Element> ListDicomDirModalityLutElem;
+typedef std::list<Element> ListDicomDirModalityLutElem;
+typedef std::list<Element> ListDicomDirCurveElem;
+typedef std::list<Element> ListDicomDirStoredPrintElem;
+typedef std::list<Element> ListDicomDirRtDoseElem;
+typedef std::list<Element> ListDicomDirRtStructureSetElem;
+typedef std::list<Element> ListDicomDirRtPlanElem;
+typedef std::list<Element> ListDicomDirRtTreatRecordElem;
+typedef std::list<Element> ListDicomDirPresentationElem;
+typedef std::list<Element> ListDicomDirSrDocumentElem;
+typedef std::list<Element> ListDicomDirKeyObjectDocElem;
+typedef std::list<Element> ListDicomDirSpectroscopyElem;
+typedef std::list<Element> ListDicomDirRawDataElem;
+typedef std::list<Element> ListDicomDirRegistrationElem;
+typedef std::list<Element> ListDicomDirFiducialElem;
*/
//-----------------------------------------------------------------------------
Program: gdcm
Module: $RCSfile: gdcmDicomDirObject.cxx,v $
Language: C++
- Date: $Date: 2005/02/01 10:29:55 $
- Version: $Revision: 1.19 $
+ Date: $Date: 2005/07/12 17:08:12 $
+ Version: $Revision: 1.20 $
Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de
l'Image). All rights reserved. See Doc/License.txt or
*/
void DicomDirObject::FillObject(ListDicomDirMetaElem const &elemList)
{
- // FillObject fills up the SQItem that will be conneected to the right place
+ // FillObject fills up the SQItem that will be connected to the right place
ListDicomDirMetaElem::const_iterator it;
uint16_t tmpGr,tmpEl;
DictEntry *dictEntry;
AddEntry(entry);
}
-}
+}
//-----------------------------------------------------------------------------
// Private
Program: gdcm
Module: $RCSfile: gdcmDicomDirObject.h,v $
Language: C++
- Date: $Date: 2005/02/07 14:48:34 $
- Version: $Revision: 1.16 $
+ Date: $Date: 2005/07/12 17:08:12 $
+ Version: $Revision: 1.17 $
Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de
l'Image). All rights reserved. See Doc/License.txt or
~DicomDirObject();
void FillObject(ListDicomDirMetaElem const &elemList);
+
};
} // end namespace gdcm
Program: gdcm
Module: $RCSfile: gdcmDirList.h,v $
Language: C++
- Date: $Date: 2005/02/02 15:07:41 $
- Version: $Revision: 1.23 $
+ Date: $Date: 2005/07/12 17:08:12 $
+ Version: $Revision: 1.24 $
Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de
l'Image). All rights reserved. See Doc/License.txt or
//-----------------------------------------------------------------------------
-// NOTE: Due to a VC6 'feature' we can not export a std::list in a dll,
+// NOTE: Due to a VC6 'feature' we cannot export a std::list in a dll,
// so GDCM_EXPORT keyword was removed for this class only
/**
Program: gdcm
Module: $RCSfile: gdcmSQItem.cxx,v $
Language: C++
- Date: $Date: 2005/07/06 08:43:18 $
- Version: $Revision: 1.73 $
+ 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
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
Program: gdcm
Module: $RCSfile: gdcmSQItem.h,v $
Language: C++
- Date: $Date: 2005/07/07 13:55:39 $
- Version: $Revision: 1.42 $
+ Date: $Date: 2005/07/12 17:08:12 $
+ Version: $Revision: 1.43 $
Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de
l'Image). All rights reserved. See Doc/License.txt or
bool RemoveEntry(DocEntry *EntryToRemove);
bool RemoveEntryNoDestroy(DocEntry *EntryToRemove);
void ClearEntry();
+ void ClearEntryNoDestroy();
+ void MoveObject(SQItem *source);
DocEntry *GetFirstEntry();
DocEntry *GetNextEntry();