Back to index

salome-med  6.5.0
TestMEDCouplingCorbaServ.cxx File Reference
#include "MEDCouplingMeshFieldFactoryComponentServ.hxx"
#include "MEDCouplingMeshFieldFactoryComponent.hxx"
#include <stdexcept>
#include <iostream>
#include <fstream>

Go to the source code of this file.


int mainCorbaServ (int argc, char **argv)
int main (int argc, char *argv[])

Function Documentation

int main ( int  argc,
char *  argv[] 

Definition at line 49 of file TestMEDCouplingCorbaServ.cxx.

  return mainCorbaServ(argc,argv);

Here is the call graph for this function:

int mainCorbaServ ( int  argc,
char **  argv 

Definition at line 31 of file TestMEDCouplingCorbaServ.cxx.

  CORBA::ORB_var orb=CORBA::ORB_init(argc,argv);
  CORBA::Object_var obj=orb->resolve_initial_references("RootPOA");
  PortableServer::POA_var poa=PortableServer::POA::_narrow(obj);
  PortableServer::POAManager_var mgr=poa->the_POAManager();
  SALOME_TEST::MEDCouplingMeshFieldFactoryComponent *compo=new SALOME_TEST::MEDCouplingMeshFieldFactoryComponent(orb);
  SALOME_TEST::MEDCouplingMeshFieldFactory_var compoPtr=compo->_this();
  CORBA::String_var str=orb->object_to_string(compoPtr);
  std::ofstream stream(SALOME_TEST::MEDCouplingCorbaServBasicsTest::buildFileNameForIOR().c_str());
  stream << str << std::endl;
  delete compo;
  return 0;

Here is the call graph for this function:

Here is the caller graph for this function: