medimportcxx.cxx
Aller à la documentation de ce fichier.
/* This file is part of MED.
*
* COPYRIGHT (C) 1999 - 2020 EDF R&D, CEA/DEN
* MED is free software: you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* MED is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public License
* along with MED. If not, see <http://www.gnu.org/licenses/>.
*/
#include "MEDimport.hxx"
#include <exception>
#include <iostream>
int main(int argc, char *argv[]) {
char * fileOut;
int ret;
if ( (argc > 3) || (argc < 2) ) {
std::cerr << "Nombre de parametre incorrect : medimport filein [fileout]" << std::endl;
return -1;
}
if (argc == 2 ) fileOut=""; else fileOut=argv[2];
try {
ret = MEDimport(argv[1], fileOut) ;
} catch ( std::exception &ex) {
std::cout << "Une erreur est survenue à l'éxécution de medImport" << std::endl;
std::cout << ex.what() << std::endl;
}
return ret;
}
MEDimport
MEDIMPORT_EXPORT int MEDimport(char *filein, char *fileout)
Definition libmedimport.c:94
MEDimport.hxx
main
int main(int argc, char *argv[])
Definition medimportcxx.cxx:22