X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=Testing%2FTestDicomDirElement.cxx;h=7eb6a17ffc6b04a8daee99af329c76f046f901a8;hb=977b70320ec22c560eb92d4669b26455e0842b7b;hp=a5f1c9f75ad36cee3882b72ebba7724a50548b9a;hpb=3e82e8b67eddf5d4b95b6aa2a2e2615aced4c452;p=gdcm.git diff --git a/Testing/TestDicomDirElement.cxx b/Testing/TestDicomDirElement.cxx index a5f1c9f7..7eb6a17f 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/02/02 10:05:26 $ - Version: $Revision: 1.3 $ + Date: $Date: 2005/10/25 14:52:30 $ + Version: $Revision: 1.6 $ Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de l'Image). All rights reserved. See Doc/License.txt or @@ -16,21 +16,38 @@ =========================================================================*/ #include "gdcmDicomDirElement.h" - +#include "gdcmDebug.h" +#include "gdcmGlobal.h" +#include "gdcmCommon.h" #include int TestDicomDirElement(int , char *[]) { - gdcm::DicomDirElement *ddElt = new gdcm::DicomDirElement(); + gdcm::DicomDirElement *ddElt = gdcm::DicomDirElement::New(); if (ddElt == 0) { - std::cout << "new DicomDirElement failed" << std::endl; - return 1; + std::cout << "new DicomDirElement failed" << std::endl; + return 1; } ddElt->Print( std::cout ); - // TODO : User add an Entry (e.g Physician Name ) + // 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; + ddElt->Delete(); return 0; }