X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=Example%2FPrintDocument.cxx;h=c2a6ceec709e6e60d26d5e5a91e50b081c9b2e7f;hb=bbfa3cf89fc2ede7c43259e945f021044b56069f;hp=d3ceeb25dafc9157d92c24d848f5bcec7dc7914a;hpb=64429225702c1ca65ea3b6882be0e19c94509843;p=gdcm.git diff --git a/Example/PrintDocument.cxx b/Example/PrintDocument.cxx index d3ceeb25..c2a6ceec 100644 --- a/Example/PrintDocument.cxx +++ b/Example/PrintDocument.cxx @@ -1,15 +1,35 @@ +/*========================================================================= + + Program: gdcm + Module: $RCSfile: PrintDocument.cxx,v $ + Language: C++ + Date: $Date: 2005/02/02 10:06:31 $ + Version: $Revision: 1.11 $ + + 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 "gdcmFile.h" + #include -#include "gdcm.h" -int main(int argc, char* argv[]) +int main(int argc, char *argv[]) { - gdcmHeader *e1; + gdcm::File *e1; std::string fileName; if (argc != 2) { - std::cout << " Usage : " << argv[0] - << " filename." << std::endl; + std::cout << " Usage : " + << argv[0] + << " filename." + << std::endl; } if (argc > 1) { @@ -19,8 +39,7 @@ int main(int argc, char* argv[]) fileName += "/test.acr"; } - e1= new gdcmHeader - (fileName.c_str(),false, true); + e1= new gdcm::File( fileName.c_str() ); e1->SetPrintLevel(2);