blob: 4c0c5f5b419734eccdeb6c305d28a08d9cedcfd6 (
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
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
|
/**
* @file Peer.h
*
* $Id$
*
*/
#ifndef ECFL_PEER_H
#define ECFL_PEER_H
#include "ControlS.h"
#if !defined (ACE_LACKS_PRAGMA_ONCE)
# pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
/**
* @class ECFL_Peer
*
* @brief Implement the Control::Peer interface
*
*/
class ECFL_Peer
: public virtual POA_Control::Peer
, public virtual PortableServer::RefCountServantBase
{
public:
/// Constructor
ECFL_Peer (CORBA::ORB_ptr orb);
/// Destructor
virtual ~ECFL_Peer (void);
/// Initialize the peer
void init (PortableServer::POA_ptr poa
ACE_ENV_ARG_DECL);
//@{
/** @name The Control::Peer methods
*/
virtual RtecEventChannelAdmin::EventChannel_ptr
channel (ACE_ENV_SINGLE_ARG_DECL_NOT_USED)
ACE_THROW_SPEC ((CORBA::SystemException));
virtual void connect (RtecEventChannelAdmin::EventChannel_ptr remote_ec
ACE_ENV_ARG_DECL_NOT_USED)
ACE_THROW_SPEC ((CORBA::SystemException));
Control::Loopback_ptr setup_loopback (CORBA::Long experiment_id
ACE_ENV_ARG_DECL_NOT_USED)
ACE_THROW_SPEC ((CORBA::SystemException));
virtual Control::Samples* run_experiment (CORBA::Long experiment_id,
CORBA::Long iterations,
CORBA::Long_out gsf
ACE_ENV_ARG_DECL_NOT_USED)
ACE_THROW_SPEC ((CORBA::SystemException));
virtual void shutdown (ACE_ENV_SINGLE_ARG_DECL_NOT_USED)
ACE_THROW_SPEC ((CORBA::SystemException));
//@}
private:
/// Synchronize access to the internal data
TAO_SYNCH_MUTEX mutex_;
/// Keep a reference to the ORB, used in shutdown
CORBA::ORB_var orb_;
/// Event Channel references
RtecEventChannelAdmin::EventChannel_var event_channel_;
};
#endif /* ECFL_PEER_H */
|