blob: 8a979ba764170c56c7fde0ea341db954ff32fdfe (
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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
|
/**
* @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);
/// 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 */
|