summaryrefslogtreecommitdiffstats
path: root/task1/cli.cpp
blob: ae175fd7fe195a10645b587c3b32ef1cfda19dfe (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
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: */