blob: 96bbd22d62dab849181ba860205ea16599a5687b (
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
|
/* -*- C++ -*- */
// $Id$
// ============================================================================
//
// = LIBRARY
// TAO/tests
//
// = FILENAME
// cubit_i.h
//
// = AUTHOR
// Andy Gokhale, Sumedh Mungee, and Sergio Flores-Gaitan
//
// ============================================================================
#if !defined (_CUBIT_I_HH)
#define _CUBIT_I_HH
#include "cubitS.h"
class Cubit_i : public POA_Cubit
{
// = TITLE
// Cubit implementation class.
public:
Cubit_i (void);
~Cubit_i (void);
virtual CORBA::Octet cube_octet (CORBA::Octet o,
CORBA::Environment &env);
virtual CORBA::Short cube_short (CORBA::Short s,
CORBA::Environment &env);
virtual CORBA::Long cube_long (CORBA::Long l,
CORBA::Environment &env);
virtual Cubit::Many cube_struct (const Cubit::Many &values,
CORBA::Environment &env);
virtual void noop (CORBA::Environment &env);
virtual void shutdown (CORBA::Environment &env);
};
class Cubit_Factory_i : public POA_Cubit_Factory
{
// = TITLE
// Cubit Factory implementation class.
public:
Cubit_Factory_i (CORBA::String *cubits,
u_int num_of_objs);
// Constructor.
~Cubit_Factory_i (void);
// Destructor.
virtual CORBA::String create_cubit (CORBA::UShort index,
CORBA::Environment &env);
// Make the cubit object whose priority is "priority".
private:
CORBA::String * my_cubit_;
// Array of cubit iors.
u_int num_of_objs_;
// Number of cubit objects we have ior's for.
};
#endif /* _CUBIT_I_HH */
|