source: XMLIO_V2/dev/dev_rv/src/xmlio/main_server.cpp @ 200

Last change on this file since 200 was 200, checked in by hozdoba, 13 years ago
File size: 1.0 KB
RevLine 
[152]1// XmlIOServer
2#include "xmlioserver.hpp"
3
4#include "attribute_template_impl.hpp"
[168]5#include "group_template_impl.hpp"
[152]6
[196]7#include "client.hpp"
8#include "server.hpp"
9
[168]10#include "fake.hpp"
11
[152]12// Point d'entrée du programme principal
[200]13
14int main (int argc, char ** argv, char ** UNUSED (env))
[152]15{
[196]16   try
[152]17   {
[199]18      //comm::CMPIManager::Initialise(&argc, &argv); // < seulement en mode connecté
19      //comm::CMPIManager::Finalize();               // < seulement en mode connecté
[200]20
21      CXIOSManager::Initialise (CXIOSManager::CLIENT_SERVER, &argc, &argv);
22      CXIOSManager::AddClient ("nemo"    , 4, 2, &nemo_fake_entry);
[179]23      //CXIOSManager::AddClient("orchidee", 1, 1, &orchidee_fake_entry);
24      //CXIOSManager::AddClient("lmdz"    , 4, 2, &lmdz_fake_entry);
[200]25      CXIOSManager::RunClientServer (comm::CMPIManager::GetCommWorld ());
26      CXIOSManager::Finalize ();
[152]27   }
28   catch (CException & exc)
29   {
[200]30      std::cerr << exc.getMessage () << std::endl;
31      CMPIManager::Finalize ();
[152]32      return (EXIT_FAILURE);
[196]33   }
[152]34   return (EXIT_SUCCESS);
35}
36
Note: See TracBrowser for help on using the repository browser.