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 |
---|
10 | int 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 | } |
---|
24 | catch (CException & exc) |
---|
25 | { |
---|
26 | std::cerr << exc.getMessage() << std::endl; |
---|
27 | CMPIManager::Finalize(); |
---|
28 | return (EXIT_FAILURE); |
---|
29 | } |
---|
30 | return (EXIT_SUCCESS); |
---|
31 | } |
---|
32 | |
---|
Note: See
TracBrowser
for help on using the repository browser.