summaryrefslogtreecommitdiff
path: root/TAO/IIOP/tests/Cubit/Orbix/tpr/cubitS.h
blob: 7132e9d229c026313def4cc4b7424e1fc5204ddb (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
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
// $Id$

#ifndef _cubitS_h
#define _cubitS_h

#include "cubitC.h"

/************************************************************************/
/*                                                                      */
/* This file is automatically generated by ORBeline IDL compiler        */
/* Do not modify this file.                                             */
/*                                                                      */
/* ORBeline (c) is copyrighted by PostModern Computing, Inc.            */
/*                                                                      */
/* The generated code conforms to OMG's IDL C++ mapping as              */
/* specified in OMG Document Number: 94-9-14.                           */
/*                                                                      */
/************************************************************************/

class _sk_Cubit : public Cubit
{
    protected:
        _sk_Cubit(const char *object_name = (const char *)NULL);
        _sk_Cubit(const char *service_name, const CORBA::ReferenceData& data);
        virtual ~_sk_Cubit() {}
    public:
        static const CORBA::TypeInfo _skel_info;

        // The following operations need to be implemented by the server.
        virtual CORBA::Octet cube_octet(CORBA::Octet o) = 0;
        virtual CORBA::Short cube_short(CORBA::Short s) = 0;
        virtual CORBA::Long cube_long(CORBA::Long l) = 0;
        virtual Cubit::Many cube_struct(const Cubit::Many& values) = 0;
        virtual Cubit::oneof cube_union(const Cubit::oneof& values) = 0;
        virtual void please_exit() = 0;

        // Skeleton Operations implemented automatically

        static void _cube_octet(void *obj,
                        CORBA::MarshalStream &strm,
                        CORBA::Principal_ptr principal,
                        const char *oper,
                        void *priv_data);

        static void _cube_short(void *obj,
                        CORBA::MarshalStream &strm,
                        CORBA::Principal_ptr principal,
                        const char *oper,
                        void *priv_data);

        static void _cube_long(void *obj,
                        CORBA::MarshalStream &strm,
                        CORBA::Principal_ptr principal,
                        const char *oper,
                        void *priv_data);

        static void _cube_struct(void *obj,
                        CORBA::MarshalStream &strm,
                        CORBA::Principal_ptr principal,
                        const char *oper,
                        void *priv_data);

        static void _cube_union(void *obj,
                        CORBA::MarshalStream &strm,
                        CORBA::Principal_ptr principal,
                        const char *oper,
                        void *priv_data);

        static void _please_exit(void *obj,
                        CORBA::MarshalStream &strm,
                        CORBA::Principal_ptr principal,
                        const char *oper,
                        void *priv_data);

};
template <class T>
class _tie_Cubit : public Cubit
{
    public:
        _tie_Cubit(T& t, const char *obj_name=(char*)NULL) :
                        Cubit(obj_name),
                        _ref(t) {
                _object_name(obj_name);
        }
        _tie_Cubit(T& t, const char *service_name,
                        const CORBA::ReferenceData& id)
                        :_ref(t) {
                _service(service_name, id);
        }
        ~_tie_Cubit() {}
        CORBA::Octet cube_octet(CORBA::Octet o) {
                return _ref.cube_octet(
                o);
        }
        CORBA::Short cube_short(CORBA::Short s) {
                return _ref.cube_short(
                s);
        }
        CORBA::Long cube_long(CORBA::Long l) {
                return _ref.cube_long(
                l);
        }
        Cubit::Many cube_struct(const Cubit::Many& values) {
                return _ref.cube_struct(
                values);
        }
        Cubit::oneof cube_union(const Cubit::oneof& values) {
                return _ref.cube_union(
                values);
        }
        void please_exit() {
                _ref.please_exit();
        }

    private:
        T& _ref;
};

#endif