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

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

Passage en interface mpi C

File size: 1.5 KB
Line 
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#include "fake.hpp"
11
12// Point d'entrée du programme principal
13
14int main (int argc, char ** argv, char ** UNUSED (env))
15{
16   try
17   {
18      MPIComm comm_client, comm_client_server, comm_server;
19      //comm::CMPIManager::Initialise(&argc, &argv); // < seulement en mode connecté
20     
21      //CTreeManager::ParseFile  ("test/iodef_simple_test.xml");
22      //CTreeManager::PrintTreeToFile("wk/def/test.xml");
23     
24      //comm::CMPIManager::Finalize();               // < seulement en mode connecté
25
26      CXIOSManager::Initialise (CXIOSManager::CLIENT_SERVER, &argc, &argv);
27     
28      //----------------------------------------------------------------------
29      //CXIOSManager::AddClient("nemo"    , 4, 2, &nemo_fake_entry);
30      //CXIOSManager::AddClient("orchidee", 1, 1, &orchidee_fake_entry);
31      //CXIOSManager::AddClient("lmdz"    , 4, 2, &lmdz_fake_entry);
32     
33      CMPIManager::DispatchClient(true, comm_client, comm_client_server,  comm_server);
34      CXIOSManager::RunServer("Nemo", comm_client_server, comm_server);
35      //CXIOSManager::RunClientServer (comm::CMPIManager::GetCommWorld ());     
36      CXIOSManager::Finalize ();
37   }
38   catch (CException & exc)
39   {
40      std::cerr << exc.getMessage () << std::endl;
41      CMPIManager::Finalize ();
42      return (EXIT_FAILURE);
43   }
44   return (EXIT_SUCCESS);
45}
46
Note: See TracBrowser for help on using the repository browser.