Back to index

salome-smesh  6.5.0
Functions
UNV_Test.cxx File Reference
#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)

Function Documentation

int main ( int  argc,
char **  argv 
)

Definition at line 51 of file UNV_Test.cxx.

                               { 
  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;
}

Here is the call graph for this function:

void ReadMed ( const char *  theFileName)

Definition at line 32 of file UNV_Test.cxx.

                                     {
  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);
}

Here is the call graph for this function:

Here is the caller graph for this function: