summaryrefslogtreecommitdiff
path: root/TAO/IIOP/tests/Thruput_test/ttcpS.h
blob: 0ee9412d27577692ca9b983a97e1c051dde9cbf4 (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
/**************************************************************************
This file has been hand-crafted to work with the ORB API of TAO
***************************************************************************/

#ifndef TTCP_SEQUENCE_S_H
#define TTCP_SEQUENCE_S_H

#include <stdlib.h>
#include <string.h>

#include "ttcpC.h"


class _skel_ttcp_sequence;
typedef _skel_ttcp_sequence *_skel_ttcp_sequence_ptr;
typedef _skel_ttcp_sequence *_skel_ttcp_sequence_ref;

class _skel_ttcp_sequence: public ttcp_sequence
{
public:
  // pure virtual functions implemented by the implementation class
  virtual void sendShortSeq(const ShortSeq& ttcp_seq, CORBA_Environment &) = 0;
  virtual void sendLongSeq(const LongSeq& ttcp_seq, CORBA_Environment &) = 0;
  virtual void sendDoubleSeq(const DoubleSeq& ttcp_seq, CORBA_Environment &) = 0;
  virtual void sendOctetSeq(const OctetSeq& ttcp_seq, CORBA_Environment &) = 0;
  virtual void sendCharSeq(const CharSeq& ttcp_seq, CORBA_Environment &) = 0;
  virtual void sendStructSeq(const StructSeq& ttcp_seq, CORBA_Environment &) = 0;
  virtual void start_timer(CORBA_Environment &) = 0;
  virtual void stop_timer(CORBA_Environment &) = 0;

  // skeletons that do the upcall
  static void _ttcp_sequence_is_a_skel (CORBA_ServerRequest &req, 
					CORBA_Object_ptr obj,
					CORBA_Environment &env);
  static void _ttcp_sequence_sendShortSeq_skel (CORBA_ServerRequest &req,
						CORBA_Object_ptr obj,
						CORBA_Environment &env);
  static void _ttcp_sequence_sendLongSeq_skel  (CORBA_ServerRequest &req,
						CORBA_Object_ptr obj,
						CORBA_Environment &env);
  static void _ttcp_sequence_sendDoubleSeq_skel (CORBA_ServerRequest &req,
						 CORBA_Object_ptr obj,
						 CORBA_Environment &env);
  static void _ttcp_sequence_sendOctetSeq_skel (CORBA_ServerRequest &req,
						CORBA_Object_ptr obj,
						CORBA_Environment &env);
  static void _ttcp_sequence_sendCharSeq_skel (CORBA_ServerRequest &req,
					       CORBA_Object_ptr obj,
					       CORBA_Environment &env);
  static void _ttcp_sequence_sendStructSeq_skel (CORBA_ServerRequest &req,
						 CORBA_Object_ptr obj,
						 CORBA_Environment &env);
  static void _ttcp_sequence_start_timer_skel (CORBA_ServerRequest &req,
					       CORBA_Object_ptr obj,
					       CORBA_Environment &env);
  static void _ttcp_sequence_stop_timer_skel (CORBA_ServerRequest &req,
					      CORBA_Object_ptr obj,
					      CORBA_Environment &env);
protected:
  _skel_ttcp_sequence(const char *obj_name = 0);
  virtual ~_skel_ttcp_sequence() {}
};

#endif