Changes to attempt to silence bcc64x
[ACE_TAO.git] / TAO / orbsvcs / performance-tests / RTEvent / lib / RTClient_Setup.h
blobb3cf176933efb1d6dd3927fb6e7882c90681481c
1 /**
2 * @file RTClient_Setup.h
4 * @author Carlos O'Ryan <coryan@uci.edu>
5 */
7 #ifndef TAO_PERF_RTEC_RTCLIENT_SETUP_H
8 #define TAO_PERF_RTEC_RTCLIENT_SETUP_H
9 #include /**/ "ace/pre.h"
11 #include "RTCORBA_Setup.h"
12 #include "PriorityBand_Setup.h"
13 #include "SyncScope_Setup.h"
14 #include <memory>
16 #if !defined (ACE_LACKS_PRAGMA_ONCE)
17 # pragma once
18 #endif /* ACE_LACKS_PRAGMA_ONCE */
20 class RT_Class;
22 /**
23 * @class RTClient_Setup
25 * @brief Simplify the initialization of performance tests.
27 class TAO_RTEC_Perf_Export RTClient_Setup
29 public:
30 /// Constructor
31 RTClient_Setup (int use_rt_corba,
32 CORBA::ORB_ptr orb,
33 const RT_Class &rt_class,
34 int nthreads);
36 /// Return non-zero if RTCORBA is enabled
37 int use_rt_corba () const;
39 /// Return the underlying RTCORBA_Setup pointer
40 RTCORBA_Setup *rtcorba_setup ();
42 private:
43 int use_rt_corba_;
45 std::unique_ptr<RTCORBA_Setup> rtcorba_setup_;
46 SyncScope_Setup syncscope_setup_;
49 #if defined(__ACE_INLINE__)
50 #include "RTClient_Setup.inl"
51 #endif /* __ACE_INLINE__ */
53 #include /**/ "ace/post.h"
54 #endif /* TAO_PERF_RTEC_RTCLIENT_SETUP_H */