summaryrefslogtreecommitdiffstats
path: root/tags/cpp-0.1.incubating-M1-final/sca/test/WSEntryPointTest/WSEntryPointTestModule/WSEntryPointTestImpl_WSEntryPointTestService_Proxy.cpp
blob: 8f564ff5bc2fd8fb66348d89395f43913f5a777d (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
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
/*
 *  Copyright 2005 The Apache Software Foundation or its licensors, as applicable.
 *
 *  Licensed under the Apache License, Version 2.0 (the "License");
 *  you may not use this file except in compliance with the License.
 *  You may obtain a copy of the License at
 *
 *     http://www.apache.org/licenses/LICENSE-2.0
 *
 *  Unless required by applicable law or agreed to in writing, software
 *  distributed under the License is distributed on an "AS IS" BASIS,
 *  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 *  See the License for the specific language governing permissions and
 *  limitations under the License.
 */

#include "WSEntryPointTestImpl_WSEntryPointTestService_Proxy.h"

#include "osoa/sca/sca.h"
using namespace osoa::sca;
using namespace tuscany::sca;

extern "C"
{

    #if defined(WIN32) || defined(_WINDOWS)
    __declspec(dllexport) 
    #endif
    WSEntryPointTestImpl_WSEntryPointTestService_Proxy* WSEntryPointTestImpl_WSEntryPointTestService_Proxy_Factory(ServiceWrapper* target)
    {
        return new WSEntryPointTestImpl_WSEntryPointTestService_Proxy(target);
    }

    #if defined(WIN32) || defined(_WINDOWS)
    __declspec(dllexport) 
    #endif
    void WSEntryPointTestImpl_WSEntryPointTestService_Proxy_Destructor(void* proxy)
    {
        delete (WSEntryPointTestImpl_WSEntryPointTestService_Proxy*)proxy;
    }
}

WSEntryPointTestImpl_WSEntryPointTestService_Proxy::WSEntryPointTestImpl_WSEntryPointTestService_Proxy(ServiceWrapper* targ) : target(targ)
{
}

WSEntryPointTestImpl_WSEntryPointTestService_Proxy::~WSEntryPointTestImpl_WSEntryPointTestService_Proxy()
{
    if (target)
        delete target;
}

char* WSEntryPointTestImpl_WSEntryPointTestService_Proxy::doChars( char* arg0)
{
    Operation operation("doChars");
    operation.addParameter(&arg0);
    char* ret;
    operation.setReturnValue(&ret);
    target->invoke(operation);
    return ret;
}

long WSEntryPointTestImpl_WSEntryPointTestService_Proxy::doLong( long arg0)
{
    Operation operation("doLong");
    operation.addParameter(&arg0);
    long ret;
    operation.setReturnValue(&ret);
    target->invoke(operation);
    return ret;
}

int WSEntryPointTestImpl_WSEntryPointTestService_Proxy::doInt( int arg0)
{
    Operation operation("doInt");
    operation.addParameter(&arg0);
    int ret;
    operation.setReturnValue(&ret);
    target->invoke(operation);
    return ret;
}

float WSEntryPointTestImpl_WSEntryPointTestService_Proxy::doFloat( float arg0)
{
    Operation operation("doFloat");
    operation.addParameter(&arg0);
    float ret;
    operation.setReturnValue(&ret);
    target->invoke(operation);
    return ret;
}

long double WSEntryPointTestImpl_WSEntryPointTestService_Proxy::doLongDouble( long double arg0)
{
    Operation operation("doLongDouble");
    operation.addParameter(&arg0);
    long double ret;
    operation.setReturnValue(&ret);
    target->invoke(operation);
    return ret;
}

double WSEntryPointTestImpl_WSEntryPointTestService_Proxy::doDouble( double arg0)
{
    Operation operation("doDouble");
    operation.addParameter(&arg0);
    double ret;
    operation.setReturnValue(&ret);
    target->invoke(operation);
    return ret;
}

bool WSEntryPointTestImpl_WSEntryPointTestService_Proxy::doBool( bool arg0)
{
    Operation operation("doBool");
    operation.addParameter(&arg0);
    bool ret;
    operation.setReturnValue(&ret);
    target->invoke(operation);
    return ret;
}

short WSEntryPointTestImpl_WSEntryPointTestService_Proxy::doShort( short arg0)
{
    Operation operation("doShort");
    operation.addParameter(&arg0);
    short ret;
    operation.setReturnValue(&ret);
    target->invoke(operation);
    return ret;
}

char* WSEntryPointTestImpl_WSEntryPointTestService_Proxy::doBytes( char* arg0)
{
    Operation operation("doBytes");
    operation.addParameter(&arg0);
    char* ret;
    operation.setReturnValue(&ret);
    target->invoke(operation);
    return ret;
}

char WSEntryPointTestImpl_WSEntryPointTestService_Proxy::doByte( char arg0)
{
    Operation operation("doByte");
    operation.addParameter(&arg0);
    char ret;
    operation.setReturnValue(&ret);
    target->invoke(operation);
    return ret;
}

DataObjectPtr WSEntryPointTestImpl_WSEntryPointTestService_Proxy::doMixed( char* arg0,  long arg1,  DataObjectPtr arg2,  bool arg3,  double arg4)
{
    Operation operation("doMixed");
    operation.addParameter(&arg0);
    operation.addParameter(&arg1);
    operation.addParameter(&arg2);
    operation.addParameter(&arg3);
    operation.addParameter(&arg4);
    DataObjectPtr ret;
    operation.setReturnValue(&ret);
    target->invoke(operation);
    return ret;
}

DataObjectPtr WSEntryPointTestImpl_WSEntryPointTestService_Proxy::doDataObject( DataObjectPtr arg0)
{
    Operation operation("doDataObject");
    operation.addParameter(&arg0);
    DataObjectPtr ret;
    operation.setReturnValue(&ret);
    target->invoke(operation);
    return ret;
}

DataObjectPtr WSEntryPointTestImpl_WSEntryPointTestService_Proxy::doAny( DataObjectPtr arg0)
{
    Operation operation("doAny");
    operation.addParameter(&arg0);
    DataObjectPtr ret;
    operation.setReturnValue(&ret);
    target->invoke(operation);
    return ret;
}