source: XMLIO_V2/dev/common/src/xmlio/main_server.cpp @ 274

Last change on this file since 274 was 274, checked in by hozdoba, 10 years ago

nouvelle interface fortran et corrections

File size: 1.1 KB
RevLine 
[219]1// XmlIOServer
2#include "xmlioserver.hpp"
3
4#include "attribute_template_impl.hpp"
5#include "group_template_impl.hpp"
6
7#include "client.hpp"
8#include "server.hpp"
9
10// Point d'entrée du programme principal
11
12int main (int argc, char ** argv, char ** UNUSED (env))
13{
14   try
15   {
[255]16      MPIComm comm_client, comm_client_server, comm_server;
[274]17      comm::CMPIManager::Initialise(&argc, &argv); // < seulement en mode connecté
[268]18     
[274]19      CTreeManager::ParseFile  ("test/iodef_simple_test.xml");
20      CTreeManager::PrintTreeToFile("wk/def/test.xml");
[268]21     
[274]22      comm::CMPIManager::Finalize();               // < seulement en mode connecté
[219]23
[274]24      //CXIOSManager::Initialise (CXIOSManager::CLIENT_SERVER, &argc, &argv);
25      //CMPIManager::DispatchClient(true, comm_client, comm_client_server,  comm_server);
26      //CXIOSManager::RunServer("Nemo", comm_client_server, comm_server);
27      //CXIOSManager::Finalize ();
[219]28   }
29   catch (CException & exc)
30   {
31      std::cerr << exc.getMessage () << std::endl;
32      CMPIManager::Finalize ();
33      return (EXIT_FAILURE);
34   }
35   return (EXIT_SUCCESS);
36}
37
Note: See TracBrowser for help on using the repository browser.