blob: 7efdc6bd39d1f9fd32c105b8f21addea3286e9dd (
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
75
|
/**
* @file Peer.h
*
* $Id$
*
*/
#ifndef ECFS_PEER_H
#define ECFS_PEER_H
#include "ControlS.h"
#if !defined (ACE_LACKS_PRAGMA_ONCE)
# pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
/**
* @class ECFS_Peer
*
* @brief Implement the Control::Peer interface
*
*/
class ECFS_Peer
: public virtual POA_Control::Peer
, public virtual PortableServer::RefCountServantBase
{
public:
/// Constructor
ECFS_Peer (CORBA::ORB_ptr orb);
/// Destructor
virtual ~ECFS_Peer (void);
/// Initialize the peer
void init (PortableServer::POA_ptr poa,
CORBA::Environment &ACE_TRY_ENV);
//@{
/** @name The Control::Peer methods
*/
virtual RtecEventChannelAdmin::EventChannel_ptr
channel (CORBA::Environment&)
ACE_THROW_SPEC ((CORBA::SystemException));
virtual void connect (RtecEventChannelAdmin::EventChannel_ptr remote_ec,
CORBA::Environment&)
ACE_THROW_SPEC ((CORBA::SystemException));
Control::Loopback_ptr setup_loopback (CORBA::Long experiment_id,
CORBA::Environment &)
ACE_THROW_SPEC ((CORBA::SystemException));
virtual Control::Samples* run_experiment (CORBA::Long consumer_count,
CORBA::Long experiment_id,
CORBA::Long iterations,
CORBA::Long_out gsf,
CORBA::Environment &)
ACE_THROW_SPEC ((CORBA::SystemException));
virtual void shutdown (CORBA::Environment&)
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 /* ECFS_PEER_H */
|