Rev | Line | |
---|
[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 |
---|
| 13 | int main(int argc, char ** argv, char ** UNUSED(env)) |
---|
| 14 | { |
---|
[196] | 15 | try |
---|
[152] | 16 | { |
---|
[199] | 17 | //comm::CMPIManager::Initialise(&argc, &argv); // < seulement en mode connecté |
---|
| 18 | //comm::CMPIManager::Finalize(); // < seulement en mode connecté |
---|
[196] | 19 | |
---|
[168] | 20 | |
---|
[199] | 21 | CXIOSManager::Initialise(CXIOSManager::CLIENT_SERVER, &argc, &argv); |
---|
[187] | 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); |
---|
[177] | 25 | CXIOSManager::RunClientServer(comm::CMPIManager::GetCommWorld()); |
---|
[199] | 26 | CXIOSManager::Finalize(); |
---|
[152] | 27 | } |
---|
| 28 | catch (CException & exc) |
---|
| 29 | { |
---|
| 30 | std::cerr << exc.getMessage() << std::endl; |
---|
| 31 | CMPIManager::Finalize(); |
---|
| 32 | return (EXIT_FAILURE); |
---|
[196] | 33 | } |
---|
[152] | 34 | return (EXIT_SUCCESS); |
---|
| 35 | } |
---|
| 36 | |
---|
Note: See
TracBrowser
for help on using the repository browser.