summaryrefslogtreecommitdiff
path: root/trunk/TAO/orbsvcs/performance-tests/RTEvent/lib/ORB_Holder.cpp
blob: 65c80374a6b484b3c0ba59ba2e6961be33a26c84 (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
30
31
32
33
/**
 * @file ORB_Holder.cpp
 *
 * $Id$
 *
 * @author Carlos O'Ryan <coryan@uci.edu>
 */

#include "ORB_Holder.h"

#if !defined(__ACE_INLINE__)
#include "ORB_Holder.inl"
#endif /* __ACE_INLINE__ */

ACE_RCSID (TAO_PERF_RTEC,
           ORB_Holder,
           "$Id$")

ORB_Holder::ORB_Holder (int &argc, char *argv[],
                        const char *orb_id)
  :  orb_ (CORBA::ORB_init (argc, argv, orb_id))
{
}

ORB_Holder::~ORB_Holder (void)
{
  try{
    this->orb_->destroy ();
  } catch (const CORBA::Exception&) {
    // @@ TODO Log this event, check the Servant_var.cpp comments for
    // details.
  }
}