blob: b54f7a766da8e42ab3be528b1a3dc03f4c69bb35 (
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
|
// -*- C++ -*-
// =========================================================================
/**
* @file AMH_Servant.h
*
* $Id$
*
* @author Mayur Deshpande <mayur@ics.uci.edu>
*
*/
// =========================================================================
#ifndef AMH_SERVANT_H
#define AMH_SERVANT_H
#include "ace/pre.h"
#include "tao/corba.h"
#include "ace/Reactor.h"
#include "tao/ORB_Core.h"
#include "TestS.h"
/// Implement the Rountrip interface
class AMH_Servant
: public virtual POA_Test::AMH_Roundtrip
, public virtual PortableServer::RefCountServantBase
{
public:
AMH_Servant (CORBA::ORB_ptr orb);
/// parse arguments from command line for sleep time
virtual int parse_args (int* argc, char **argv);
// = The skeleton methods
// @@ Mayur, why doesn't the skeleton use
// ACE_ENV_ARG_DECL_WITH_DEFAULTS? The AMH skeleton code's
// emulated exception support isn't consistent with the rest of
// the emulated exception support in the stubs/skeletons.
virtual void start_test (Test::AMH_RoundtripResponseHandler_ptr _tao_rh
ACE_ENV_ARG_DECL_NOT_USED)
ACE_THROW_SPEC ((CORBA::SystemException));
virtual void end_test (Test::AMH_RoundtripResponseHandler_ptr _tao_rh
ACE_ENV_ARG_DECL_NOT_USED)
ACE_THROW_SPEC ((CORBA::SystemException));
virtual void test_method (Test::AMH_RoundtripResponseHandler_ptr _tao_rh,
Test::Timestamp send_time
ACE_ENV_ARG_DECL)
ACE_THROW_SPEC ((CORBA::SystemException));
protected:
CORBA::ORB_ptr orb_;
int sleep_time_;
};
#include "ace/post.h"
#endif /* AMH_SERVANT_H */
|