diff options
Diffstat (limited to 'task1/cli.cpp')
| -rw-r--r-- | task1/cli.cpp | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/task1/cli.cpp b/task1/cli.cpp new file mode 100644 index 0000000..ae175fd --- /dev/null +++ b/task1/cli.cpp | |||
| @@ -0,0 +1,29 @@ | |||
| 1 | /** | ||
| 2 | * $Id: cli.cpp 2 2009-10-31 02:48:23Z l0728348 $ | ||
| 3 | * | ||
| 4 | * Copyright 2009 | ||
| 5 | * | ||
| 6 | * @author Manuel Mausz (0728348) | ||
| 7 | * @brief main application of ehr_cli | ||
| 8 | */ | ||
| 9 | |||
| 10 | #include "ehrclient.h" | ||
| 11 | |||
| 12 | /** | ||
| 13 | * main application of ehr_cli | ||
| 14 | * initiales IceSSL and starts the application | ||
| 15 | */ | ||
| 16 | int main(int argc, char* argv[]) | ||
| 17 | { | ||
| 18 | /* load IceSSL */ | ||
| 19 | Ice::InitializationData initdata; | ||
| 20 | initdata.properties = Ice::createProperties(); | ||
| 21 | initdata.properties->setProperty("Ice.InitPlugins", "0"); // we do this ourself | ||
| 22 | initdata.properties->setProperty("Ice.Plugin.IceSSL", "IceSSL:createIceSSL"); | ||
| 23 | |||
| 24 | /* create our ehr client */ | ||
| 25 | EhrClient cli; | ||
| 26 | return cli.main(argc, argv, initdata); | ||
| 27 | } | ||
| 28 | |||
| 29 | /* vim: set et sw=2 ts=2: */ | ||
