1 /*=========================================================================
4 Module: $RCSfile: TestDicomDirElement.cxx,v $
6 Date: $Date: 2005/10/25 14:52:30 $
7 Version: $Revision: 1.6 $
9 Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de
10 l'Image). All rights reserved. See Doc/License.txt or
11 http://www.creatis.insa-lyon.fr/Public/Gdcm/License.html for details.
13 This software is distributed WITHOUT ANY WARRANTY; without even
14 the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
15 PURPOSE. See the above copyright notices for more information.
17 =========================================================================*/
18 #include "gdcmDicomDirElement.h"
19 #include "gdcmDebug.h"
20 #include "gdcmGlobal.h"
21 #include "gdcmCommon.h"
24 int TestDicomDirElement(int , char *[])
26 gdcm::DicomDirElement *ddElt = gdcm::DicomDirElement::New();
29 std::cout << "new DicomDirElement failed" << std::endl;
32 ddElt->Print( std::cout );
34 // Let's allow User to add an Entry (e.g Patient Weight )
36 // We can add an Entry to the default list of any of the Element
38 // Add Patient Weight to the default list
40 // FIXME : Why doesn't it compile ?!?
41 // FIXME :`DD_PATIENT' undeclared (first use this function)
42 // FIXME : see gdcmCommon.h !!
44 //ddElt->AddDicomDirElement ( DD_PATIENT, 0x0010, 0x1010 );
46 // We could add others
48 std::cout << " -------- DicomDirElement After modif --------" <<std::endl;
49 ddElt->Print( std::cout );