| 61 | } |
| 62 | |
| 63 | SyncServer::SyncServer (int argc, ACE_TCHAR* argv[]) |
| 64 | : pub_count_ (1), sub_count_ (1) |
| 65 | { |
| 66 | try |
| 67 | { |
| 68 | CORBA::ORB_var orb = CORBA::ORB_init (argc, argv, "SyncServer"); |
| 69 | if (!this->parse_args (argc, argv)) { |
| 70 | throw InitError ("SyncServer encountered failure while parsing arguments.\n"); |
| 71 | } |
| 72 | |
| 73 | sync_server_.reset (new SyncExt_i (pub_count_, sub_count_ |
| 74 | , orb.in())); |
| 75 | // Bump up the ref count (TAO proprietary) so object can exist |
| 76 | // beyond ORB destruction. |
| 77 | sync_server_->_add_ref(); |
| 78 | } |
| 79 | catch (SyncServer_i::InitError& e) { |
| 80 | throw InitError (e); |
| 81 | } |
| 82 | catch (CORBA::Exception& ex) { |
| 83 | throw InitError (ex._info().c_str()); |
| 84 | } |
| 85 | } |
| 86 | |
| 87 | bool |
| 88 | SyncServer::run (void) |
nothing calls this directly
no test coverage detected