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

Last change on this file since 158 was 158, checked in by hozdoba, 13 years ago
File size: 1.4 KB
Line 
1// XmlIOServer
2//#include <boost/type_traits/is_convertible.hpp>
3//template< typename From, typename To > struct is_convertible : ::boost::integral_constant<bool,(::boost::detail::is_convertible_impl_dispatch<From,To> ::value)>;
4/*
5namespace boost
6{
7  template< typename From, typename To > struct is_convertible ;
8}
9*/
10#include "xmlioserver.hpp"
11
12#include "fake.hpp"
13#include "attribute_template_impl.hpp"
14#include "nc4_data_output.hpp"
15
16// Point d'entrée du programme principal
17int main(int argc, char ** argv, char ** UNUSED(env))
18{
19   try
20   {
21      comm::CMPIManager::Initialise(&argc, &argv); // < seulement en mode connecté
22      CXIOSManager::Initialise(CXIOSManager::CLIENT, &argc, &argv);
23      CXIOSManager::AddClient("nemo",
24                              CMPIManager::GetCommSize(CMPIManager::GetCommWorld()),
25                              CMPIManager::GetCommSize(CMPIManager::GetCommWorld()),
26                              &nemo_fake_entry);
27      CXIOSManager::RunClient();
28      CXIOSManager::Finalize();
29
30      comm::CMPIManager::Finalize(); // < seulement en mode connecté
31
32      //CXIOSManager::AddClient("orchidee", 1, 1, &orchidee_fake_entry);
33      //CXIOSManager::AddClient("lmdz"    , 2, 2, &lmdz_fake_entry);
34      //CXIOSManager::RunClientServer();
35
36   }
37   catch (CException & exc)
38   {
39      std::cerr << exc.getMessage() << std::endl;
40      CMPIManager::Finalize();
41      return (EXIT_FAILURE);
42   }
43   return (EXIT_SUCCESS);
44}
45
Note: See TracBrowser for help on using the repository browser.