File indexing completed on 2026-04-09 07:49:04
0001 #include <iostream>
0002
0003 #include "OPTICKS_LOG.hh"
0004 #include "spath.h"
0005 #include "GDXML.hh"
0006
0007 int main(int argc, char** argv)
0008 {
0009 OPTICKS_LOG(argc, argv);
0010
0011 const char* srcpath = argc > 1 ? argv[1] : nullptr ;
0012 const char* dstpath = spath::Resolve("$TMP/GDXMLTest/test.gdml") ;
0013
0014 if(!srcpath)
0015 {
0016 std::cout << "Expecting a single argument /path/to/name.gdml " << std::endl ;
0017 std::cout << "when issues are detected with the GDML a kludge fixed version is written to /path/to/name_GDXML.gdml " << std::endl ;
0018 return 0 ;
0019 }
0020
0021 GDXML::Fix(dstpath, srcpath) ;
0022
0023 LOG(info)
0024 << " srcpath " << srcpath
0025 << " dstpath " << dstpath
0026 ;
0027
0028 return 0 ;
0029 }
0030