X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=Testing%2FTestDicomDirElement.cxx;h=41171ded9c3a304d9bb539cac3b51188a9624921;hb=da63a2f01ef906594653092cba6ace0d6b3341ff;hp=ddea03e5364f67add4a3a280b1897359cacb4d4f;hpb=d1249e8bb14c38b82b4f5591c34203b23b0b48e8;p=gdcm.git diff --git a/Testing/TestDicomDirElement.cxx b/Testing/TestDicomDirElement.cxx index ddea03e5..41171ded 100644 --- a/Testing/TestDicomDirElement.cxx +++ b/Testing/TestDicomDirElement.cxx @@ -3,8 +3,8 @@ Program: gdcm Module: $RCSfile: TestDicomDirElement.cxx,v $ Language: C++ - Date: $Date: 2005/01/26 16:43:10 $ - Version: $Revision: 1.2 $ + Date: $Date: 2005/07/08 13:39:57 $ + Version: $Revision: 1.5 $ Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de l'Image). All rights reserved. See Doc/License.txt or @@ -16,7 +16,9 @@ =========================================================================*/ #include "gdcmDicomDirElement.h" - +#include "gdcmDebug.h" +#include "gdcmGlobal.h" +#include "gdcmCommon.h" #include int TestDicomDirElement(int , char *[]) @@ -29,6 +31,23 @@ int TestDicomDirElement(int , char *[]) } ddElt->Print( std::cout ); + // Let's allow User to add an Entry (e.g Patient Weight ) + + // We can add an Entry to the default list of any of the Element + + // Add Patient Weight to the default list + + // FIXME : Why doesn't it compile ?!? + // FIXME :`DD_PATIENT' undeclared (first use this function) + // FIXME : see gdcmCommon.h !! + + //ddElt->AddDicomDirElement ( DD_PATIENT, 0x0010, 0x1010 ); + + // We could add others + + std::cout << " -------- DicomDirElement After modif --------" <Print( std::cout ); + delete ddElt; return 0; }