#include "UNV2411_Structure.hxx"#include "UNV2412_Structure.hxx"#include "UNV_Utilities.hxx"#include "DriverUNV_R_SMDS_Mesh.h"#include "DriverUNV_W_SMDS_Mesh.h"
Go to the source code of this file.
Functions | |
| void | ReadMed (const char *theFileName) |
| int | main (int argc, char **argv) |
Definition at line 51 of file UNV_Test.cxx.
References MESSAGE, and ReadMed().
{
DriverUNV_R_SMDS_Mesh aR;
DriverUNV_W_SMDS_Mesh aW;
try{
if(argc > 1){
ReadMed(argv[1]);
}
return 0;
}catch(std::exception& exc){
MESSAGE("Follow exception was accured :\n"<<exc.what());
}catch(...){
MESSAGE("Unknown exception was accured !!!");
}
return 1;
}
| void ReadMed | ( | const char * | theFileName | ) |
Definition at line 32 of file UNV_Test.cxx.
References SMESH_test5.aFileName, UNV2411.Read(), and UNV2411.Write().
Referenced by main().
{
std::ifstream in_stream(theFileName);
UNV2411::TDataSet aDataSet2411;
UNV2411::Read(in_stream,aDataSet2411);
in_stream.seekg(0);
UNV2412::TDataSet aDataSet2412;
UNV2412::Read(in_stream,aDataSet2412);
string aFileName(theFileName);
aFileName += "-";
std::ofstream out_stream(aFileName.c_str());
UNV2411::Write(out_stream,aDataSet2411);
UNV2412::Write(out_stream,aDataSet2412);
}