// XmlIOServer #include "xmlioserver.hpp" #include "attribute_template_impl.hpp" #include "group_template_impl.hpp" #include "client.hpp" #include "server.hpp" #include "oasis_cinterface.hpp" #include #include #include // Point d'entrée du programme principal int main (int argc, char ** argv, char ** UNUSED (env)) { try { MPI_Comm comm_client=MPI_COMM_NULL, comm_client_server=MPI_COMM_NULL, comm_server=MPI_COMM_NULL, comm_parent=MPI_COMM_NULL; // sleep(60) ; CTreeManager::ParseFile("iodef.xml"); CTreeManager::SetCurrentContextId(StdString("xios")); boost::shared_ptr var = CObjectFactory::GetObject("buffer_client_size"); // oasis_init(std::string("ionemo")) ; // oasis_get_intracomm(comm_parent,std::string("oceanx")) ; CXIOSManager::Initialise(CXIOSManager::CLIENT_SERVER, &argc, &argv); CMPIManager::DispatchClient(true, comm_client, comm_client_server, comm_server, comm_parent); CXIOSManager::RunServer("Nemo", comm_client_server, comm_server); CTreeManager::SetCurrentContextId(StdString("nemo")); CServer::CreateServer(comm_client_server)->run(); CXIOSManager::Finalize (); } catch (CException & exc) { std::cerr << exc.getMessage () << std::endl; CMPIManager::Finalize (); return (EXIT_FAILURE); } return (EXIT_SUCCESS); }