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

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