]> Creatis software - gdcm.git/blobdiff - Example/toBrainVisa.cxx
Fix mistypings
[gdcm.git] / Example / toBrainVisa.cxx
index 2008367f97ee608368e9aacaf81dd902fbb6950e..1120b75e80a247ae98498fe5d8ae52dac5dcd82c 100755 (executable)
@@ -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();