summaryrefslogtreecommitdiff
path: root/TAO/tests/Portable_Interceptors/AMI/Echo_Handler.h
blob: 8ecb15d64f11d8431ad8a6fc9bae9f415bed2d18 (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
/**
 * @file Echo_Handler.h
 *
 * $Id$
 *
 * @author Carlos O'Ryan <coryan@atdesk.com>
 */
#ifndef Echo_Handler__h_
#define Echo_Handler__h_

#include "TestS.h"
#include "tao/PortableServer/PortableServer.h"

class Echo_Handler
  : public POA_Test::AMI_EchoHandler
{
public:
  Echo_Handler(void);

  virtual void echo_operation(char const * retval
                              ACE_ENV_ARG_DECL)
    ACE_THROW_SPEC((CORBA::SystemException));
  virtual void echo_operation_excep(Test::AMI_EchoExceptionHolder * h
                                    ACE_ENV_ARG_DECL)
    ACE_THROW_SPEC((CORBA::SystemException));
  virtual void shutdown(ACE_ENV_SINGLE_ARG_DECL)
    ACE_THROW_SPEC((CORBA::SystemException));
  virtual void shutdown_excep(Test::AMI_EchoExceptionHolder * h
                              ACE_ENV_ARG_DECL)
    ACE_THROW_SPEC((CORBA::SystemException));

  CORBA::ULong replies (void) const;

private:
  CORBA::ULong replies_;
};

#endif /* Echo_Handler__h_ */