diff options
Diffstat (limited to 'ACE/TAO/orbsvcs/performance-tests/RTEvent/lib/ORB_Holder.cpp')
-rw-r--r-- | ACE/TAO/orbsvcs/performance-tests/RTEvent/lib/ORB_Holder.cpp | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/ACE/TAO/orbsvcs/performance-tests/RTEvent/lib/ORB_Holder.cpp b/ACE/TAO/orbsvcs/performance-tests/RTEvent/lib/ORB_Holder.cpp new file mode 100644 index 00000000000..9150dbcf94c --- /dev/null +++ b/ACE/TAO/orbsvcs/performance-tests/RTEvent/lib/ORB_Holder.cpp @@ -0,0 +1,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, ACE_TCHAR *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. + } +} |