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

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

Préparation nouvelle arborescence

File size: 1.0 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#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      //comm::CMPIManager::Initialise(&argc, &argv); // < seulement en mode connecté
19      //comm::CMPIManager::Finalize();               // < seulement en mode connecté
20
21      CXIOSManager::Initialise (CXIOSManager::CLIENT_SERVER, &argc, &argv);
22      CXIOSManager::AddClient ("nemo"    , 4, 2, &nemo_fake_entry);
23      //CXIOSManager::AddClient("orchidee", 1, 1, &orchidee_fake_entry);
24      //CXIOSManager::AddClient("lmdz"    , 4, 2, &lmdz_fake_entry);
25      CXIOSManager::RunClientServer (comm::CMPIManager::GetCommWorld ());
26      CXIOSManager::Finalize ();
27   }
28   catch (CException & exc)
29   {
30      std::cerr << exc.getMessage () << std::endl;
31      CMPIManager::Finalize ();
32      return (EXIT_FAILURE);
33   }
34   return (EXIT_SUCCESS);
35}
36
Note: See TracBrowser for help on using the repository browser.