diff options
| author | manuel <manuel@nc8430.lan> | 2009-10-31 16:11:26 +0100 |
|---|---|---|
| committer | manuel <manuel@nc8430.lan> | 2009-10-31 16:11:26 +0100 |
| commit | 1d8445b8461f558987067d870f0f11cdc84b4f35 (patch) | |
| tree | 146d7d02dddf1a403392ac4b86c19bca4a3c6f75 /task1/cli.cpp | |
| download | selinux-1d8445b8461f558987067d870f0f11cdc84b4f35.tar.gz selinux-1d8445b8461f558987067d870f0f11cdc84b4f35.tar.bz2 selinux-1d8445b8461f558987067d870f0f11cdc84b4f35.zip | |
pushing task1 to repo
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: */ | ||
