X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;ds=sidebyside;f=Example%2FPrintDocument.cxx;h=02f2b33e5d373ac6679d7b3844f3fbbd28e409e2;hb=1c35ba5e5bc72b0861b92698dd4ea29f0bab5f73;hp=617c86163081e475a330395fb58938c7dcbbcb9d;hpb=cba27e8db47fefa11652b98dd81d782c13eb9a80;p=gdcm.git diff --git a/Example/PrintDocument.cxx b/Example/PrintDocument.cxx index 617c8616..02f2b33e 100644 --- a/Example/PrintDocument.cxx +++ b/Example/PrintDocument.cxx @@ -1,31 +1,35 @@ -#include - -#include "gdcmException.h" -#include "gdcmCommon.h" - -#include "gdcmDictEntry.h" -#include "gdcmDict.h" -#include "gdcmDictSet.h" +/*========================================================================= + + Program: gdcm + Module: $RCSfile: PrintDocument.cxx,v $ + Language: C++ + Date: $Date: 2004/12/03 20:16:55 $ + Version: $Revision: 1.9 $ + + Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de + l'Image). All rights reserved. See Doc/License.txt or + http://www.creatis.insa-lyon.fr/Public/Gdcm/License.html for details. + + This software is distributed WITHOUT ANY WARRANTY; without even + the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR + PURPOSE. See the above copyright notices for more information. + +=========================================================================*/ #include "gdcmHeader.h" -#include "gdcmUtil.h" -#include "gdcmBinEntry.h" -#include "gdcmDocEntry.h" -#include "gdcmDocEntrySet.h" -#include "gdcmDocument.h" -#include "gdcmElementSet.h" -#include "gdcmSeqEntry.h" -#include "gdcmSQItem.h" -#include "gdcmValEntry.h" + +#include int main(int argc, char* argv[]) { -// gdcmFile *e2; - gdcmHeader *e1; + gdcm::Header *e1; std::string fileName; if (argc != 2) { - std::cout << " usage : PrintDocument fileName" << std::endl; + std::cout << " Usage : " + << argv[0] + << " filename." + << std::endl; } if (argc > 1) { @@ -35,8 +39,7 @@ int main(int argc, char* argv[]) fileName += "/test.acr"; } - e1= new gdcmHeader - (fileName.c_str(),false, true); + e1= new gdcm::Header( fileName.c_str() ); e1->SetPrintLevel(2);