From 1d8445b8461f558987067d870f0f11cdc84b4f35 Mon Sep 17 00:00:00 2001 From: manuel Date: Sat, 31 Oct 2009 16:11:26 +0100 Subject: pushing task1 to repo --- task1/cli.cpp | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 task1/cli.cpp (limited to 'task1/cli.cpp') 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 @@ +/** + * $Id: cli.cpp 2 2009-10-31 02:48:23Z l0728348 $ + * + * Copyright 2009 + * + * @author Manuel Mausz (0728348) + * @brief main application of ehr_cli + */ + +#include "ehrclient.h" + +/** + * main application of ehr_cli + * initiales IceSSL and starts the application + */ +int main(int argc, char* argv[]) +{ + /* load IceSSL */ + Ice::InitializationData initdata; + initdata.properties = Ice::createProperties(); + initdata.properties->setProperty("Ice.InitPlugins", "0"); // we do this ourself + initdata.properties->setProperty("Ice.Plugin.IceSSL", "IceSSL:createIceSSL"); + + /* create our ehr client */ + EhrClient cli; + return cli.main(argc, argv, initdata); +} + +/* vim: set et sw=2 ts=2: */ -- cgit v1.2.3