X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=Example%2FtoBrainVisa.cxx;h=1120b75e80a247ae98498fe5d8ae52dac5dcd82c;hb=8d0468bd872660b30ce957dd00004ea205a2b135;hp=2008367f97ee608368e9aacaf81dd902fbb6950e;hpb=e0261b5c230737aab332460b33ba7aa77aa9832f;p=gdcm.git diff --git a/Example/toBrainVisa.cxx b/Example/toBrainVisa.cxx index 2008367f..1120b75e 100755 --- a/Example/toBrainVisa.cxx +++ b/Example/toBrainVisa.cxx @@ -1,3 +1,20 @@ +/*========================================================================= + + Program: gdcm + Module: $RCSfile: toBrainVisa.cxx,v $ + Language: C++ + Date: $Date: 2007/09/13 12:48:37 $ + Version: $Revision: 1.3 $ + + 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 "gdcmFileHelper.h" #include "gdcmDocument.h" @@ -25,7 +42,7 @@ int main (int argc , char *argv[]) { // ============== Initialize Arguments Manager ============================= - gdcm::ArgMgr *am = new gdcm::ArgMgr(argc, argv); + GDCM_NAME_SPACE::ArgMgr *am = new GDCM_NAME_SPACE::ArgMgr(argc, argv); if (argc == 1 || am->ArgMgrDefined("usage")) { @@ -63,8 +80,8 @@ int main (int argc , char *argv[]) std::cout << "Failed to open [" << fileout << "] for writting" << std::endl; return 0; } - gdcm::File *f = gdcm::File::New(); - f->SetLoadMode( gdcm::LD_ALL); + GDCM_NAME_SPACE::File *f = GDCM_NAME_SPACE::File::New(); + f->SetLoadMode( GDCM_NAME_SPACE::LD_ALL); f->SetFileName( filein ); bool res = f->Load();