diff options
author | coryan <coryan@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 2002-03-09 00:13:51 +0000 |
---|---|---|
committer | coryan <coryan@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 2002-03-09 00:13:51 +0000 |
commit | 3f50d14dc346ae748977b1c1a1fcaf73384043f1 (patch) | |
tree | 30df3dda871b357af4e5057c6a9642e1306b6727 /TAO/orbsvcs/performance-tests/RTEvent/lib/RTClient_Setup.h | |
parent | 6d299db3121661b394e03a105ee2c6eaeca11431 (diff) | |
download | ATCD-3f50d14dc346ae748977b1c1a1fcaf73384043f1.tar.gz |
ChangeLogTag:Fri Mar 8 19:01:33 2002 Carlos O'Ryan <coryan@uci.edu>
Diffstat (limited to 'TAO/orbsvcs/performance-tests/RTEvent/lib/RTClient_Setup.h')
-rw-r--r-- | TAO/orbsvcs/performance-tests/RTEvent/lib/RTClient_Setup.h | 59 |
1 files changed, 59 insertions, 0 deletions
diff --git a/TAO/orbsvcs/performance-tests/RTEvent/lib/RTClient_Setup.h b/TAO/orbsvcs/performance-tests/RTEvent/lib/RTClient_Setup.h new file mode 100644 index 00000000000..9ec7bec9402 --- /dev/null +++ b/TAO/orbsvcs/performance-tests/RTEvent/lib/RTClient_Setup.h @@ -0,0 +1,59 @@ +/** + * @file RTClient_Setup.h + * + * $Id$ + * + * @author Carlos O'Ryan <coryan@uci.edu> + */ + +#ifndef TAO_PERF_RTEC_RTCLIENT_SETUP_H +#define TAO_PERF_RTEC_RTCLIENT_SETUP_H +#include "ace/pre.h" + +#include "RTCORBA_Setup.h" +#include "PriorityBand_Setup.h" +#include "SyncScope_Setup.h" +#include "ace/Auto_Ptr.h" + +#if !defined (ACE_LACKS_PRAGMA_ONCE) +# pragma once +#endif /* ACE_LACKS_PRAGMA_ONCE */ + +class RT_Class; + +/** + * @class RTClient_Setup + * + * @brief Simplify the initialization of performance tests. + * + */ +class TAO_RTEC_Perf_Export RTClient_Setup +{ +public: + /// Constructor + RTClient_Setup (int use_rt_corba, + CORBA::ORB_ptr orb, + const RT_Class &rt_class, + int nthreads + ACE_ENV_ARG_DECL); + + /// Return non-zero if RTCORBA is enabled + int use_rt_corba (void) const; + + /// Return the underlying RTCORBA_Setup pointer + RTCORBA_Setup *rtcorba_setup (void); + +private: + int use_rt_corba_; + + auto_ptr<RTCORBA_Setup> rtcorba_setup_; + auto_ptr<PriorityBand_Setup> priorityband_setup_; + SyncScope_Setup syncscope_setup_; +}; + +#if defined(__ACE_INLINE__) +#include "RTClient_Setup.inl" +#endif /* __ACE_INLINE__ */ + +#include "ace/post.h" +#endif /* TAO_PERF_RTEC_RTCLIENT_SETUP_H */ |