]> pilppa.org Git - libplpbus.git/blob - src/plpbus/BusServer.cc
993c995a9723f97d8528fdac1a4265faec89bdec
[libplpbus.git] / src / plpbus / BusServer.cc
1 #include "BusServer.hh"
2 #include "OrbServerImpl.hh"
3
4 using namespace std;
5 using namespace plpbus;
6
7 BusServer::BusServer()
8 {
9         orbServer       = new OrbServerImpl();
10 }
11
12 BusServer::~BusServer()
13 {
14         cout << "BusServer() destroyed." << endl;
15 }
16
17 int BusServer::init() {
18         int             retVal;
19         OrbServerImpl   *impl;
20
21         retVal  = 0;
22         impl    = (OrbServerImpl *)orbServer;
23         impl->init();
24         return retVal;
25 }
26
27 int BusServer::launch(const char *server_name)
28 {
29         int             retVal;
30         OrbServerImpl   *impl;
31
32         impl    = (OrbServerImpl *)orbServer;
33         retVal  = impl->launch(server_name);
34         return retVal;
35 }
36
37 int BusServer::add_server_listener(IServerListener *listener_param)
38 {
39         int             retVal;
40         OrbServerImpl   *impl;
41
42         impl    = (OrbServerImpl *)orbServer;
43         retVal  = impl->add_server_listener(listener_param);
44         return retVal;
45 }
46
47 void BusServer::shutdown()
48 {
49         OrbServerImpl   *impl;
50
51         impl    = (OrbServerImpl *)orbServer;
52         impl->shutdown();
53 }