X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=Testing%2FTestDicomDirElement.cxx;h=8df1b73716bbd9f6fd50b3fbb8593e71c9e0e7ae;hb=47ec0a23da1e28ca33d2476ff63ab6bd7893bce4;hp=82e3f66dd398ad7f8565cf6a935132dc681c7fd6;hpb=0a9f25290006bdee6be492179f8b0dae7ba1c598;p=gdcm.git diff --git a/Testing/TestDicomDirElement.cxx b/Testing/TestDicomDirElement.cxx index 82e3f66d..8df1b737 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/24 14:14:09 $ - Version: $Revision: 1.1 $ + Date: $Date: 2005/02/10 10:51:39 $ + Version: $Revision: 1.4 $ Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de l'Image). All rights reserved. See Doc/License.txt or @@ -16,13 +16,38 @@ =========================================================================*/ #include "gdcmDicomDirElement.h" - +#include "gdcmDebug.h" +#include "gdcmGlobal.h" +#include "gdcmCommon.h" #include int TestDicomDirElement(int , char *[]) { - gdcm::DicomDirElement ddElt; - ddElt.Print( std::cout ); + gdcm::DicomDirElement *ddElt = new gdcm::DicomDirElement(); + if (ddElt == 0) + { + std::cout << "new DicomDirElement failed" << std::endl; + return 1; + } + 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; }