blob: 60887393721ff3acdf4373ff05f8c595df2f11b5 (
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
|
// $Id$
#ifndef TAO_SERVER_I_H
#define TAO_SERVER_I_H
#include "callbackS.h"
/// Implement the Test::Server interface
class Server_i : public POA_Test::Server
{
public:
/// Constructor.
Server_i (void);
/// Return 1 when the shutdown method has been invoked.
int done (void);
/// Implement the CORBA methods
//@{
void set_callback (Test::Callback_ptr callback
ACE_ENV_ARG_DECL_NOT_USED)
ACE_THROW_SPEC ((CORBA::SystemException));
void request (Test::TimeStamp,
const Test::Payload &
ACE_ENV_ARG_DECL_NOT_USED)
ACE_THROW_SPEC ((CORBA::SystemException));
void shutdown (ACE_ENV_SINGLE_ARG_DECL_NOT_USED)
ACE_THROW_SPEC ((CORBA::SystemException));
//@}
private:
/// A flag to terminate the event loop
int done_;
/// The callback object
Test::Callback_var callback_;
};
#if defined(__ACE_INLINE__)
#include "Server_i.inl"
#endif /* __ACE_INLINE__ */
#endif /* TAO_SERVER_I_H */
|