1 ///////////////////////////////////////////////////////////////////
2 // Automatically generated by xml2ulxr v1.7.5.
3 //
4 // xml2ulxr is part of Ultra Lightweight XML RPC for C++.
5 // See also http://ulxmlrpcpp.sourceforge.net
6 //
7 // Don't edit manually unless you know what you are doing
8 ///////////////////////////////////////////////////////////////////
9 
10 //#define ULXR_UNICODE_ONLY_HELPERS
11 #include <ulxmlrpcpp/ulxmlrpcpp.h> // always first
12 
13 #include "UlxrIdlTest_ulxr_client.h"
14 
15 #include <ulxmlrpcpp/ulxr_requester.h>
16 
17 // mapped to UlxrIdlTest::first_url4_ovr4 (there are overloaded methods)
first_url4()18 void UlxrIdlTestClient::first_url4()
19 {
20   callTo_first_url4_ovr4.clear();
21   sendCall(callTo_first_url4_ovr4);
22 }
23 
24 
25 // mapped to UlxrIdlTest::first_url4_ovr3 (there are overloaded methods)
first_url4(int i)26 std::string * UlxrIdlTestClient::first_url4(int i)
27 {
28   callTo_first_url4_ovr3.clear();
29   callTo_first_url4_ovr3.addParam(ulxr::Integer(i));
30   ulxr::MethodResponse resp = sendCall(callTo_first_url4_ovr3);
31   ulxr_refFor_first_url4_ovr3 = (std::string) ulxr::getLatin1(ulxr::RpcString(resp.getResult()).getString());
32   return (std::string *) &ulxr_refFor_first_url4_ovr3;
33 }
34 
35 
36 // mapped to UlxrIdlTest::first_url4_ovr2 (there are overloaded methods)
first_url4(long int li)37 std::string * UlxrIdlTestClient::first_url4(long int li)
38 {
39   callTo_first_url4_ovr2.clear();
40   callTo_first_url4_ovr2.addParam(ulxr::Integer(li));
41   ulxr::MethodResponse resp = sendCall(callTo_first_url4_ovr2);
42   ulxr_refFor_first_url4_ovr2 = (std::string) ulxr::getLatin1(ulxr::RpcString(resp.getResult()).getString());
43   return (std::string *) &ulxr_refFor_first_url4_ovr2;
44 }
45 
46 
47 // mapped to UlxrIdlTest::first_url4_ovr1 (there are overloaded methods)
first_url4(float li)48 const char * UlxrIdlTestClient::first_url4(float li)
49 {
50   callTo_first_url4_ovr1.clear();
51   callTo_first_url4_ovr1.addParam(ulxr::Double(li));
52   ulxr::MethodResponse resp = sendCall(callTo_first_url4_ovr1);
53   ulxr_refFor_first_url4_ovr1 = (std::string) ulxr::getLatin1(ulxr::RpcString(resp.getResult()).getString());
54   return (const char *) ulxr_refFor_first_url4_ovr1.c_str();
55 }
56 
57 
58 // mapped to UlxrIdlTest::first_url4_ovr0 (there are overloaded methods)
first_url4(double li)59 wchar_t * const UlxrIdlTestClient::first_url4(double li)
60 {
61   callTo_first_url4_ovr0.clear();
62   callTo_first_url4_ovr0.addParam(ulxr::Double(li));
63   ulxr::MethodResponse resp = sendCall(callTo_first_url4_ovr0);
64   ulxr_refFor_first_url4_ovr0 = (std::wstring) ulxr::getUnicode(ulxr::RpcString(resp.getResult()).getString());
65   return (wchar_t * const) ulxr_refFor_first_url4_ovr0.c_str();
66 }
67 
68 
69 // mapped to UlxrIdlTest::constTest
constTest() const70 std::string UlxrIdlTestClient::constTest() const
71 {
72   callTo_constTest.clear();
73   ulxr::MethodResponse resp = sendCall(callTo_constTest);
74   return (std::string) ulxr::getLatin1(ulxr::RpcString(resp.getResult()).getString());
75 }
76 
77 
78 // mapped to UlxrIdlTest::constRefTest
constRefTest() const79 std::string & UlxrIdlTestClient::constRefTest() const
80 {
81   callTo_constRefTest.clear();
82   ulxr::MethodResponse resp = sendCall(callTo_constRefTest);
83   ulxr_refFor_constRefTest = (std::string) ulxr::getLatin1(ulxr::RpcString(resp.getResult()).getString());
84   return ulxr_refFor_constRefTest;
85 }
86 
87 
88 // mapped to UlxrIdlTest::firstViewConst
firstViewConst() const89 long int * UlxrIdlTestClient::firstViewConst() const
90 {
91   callTo_firstViewConst.clear();
92   ulxr::MethodResponse resp = sendCall(callTo_firstViewConst);
93   ulxr_refFor_firstViewConst = (long int) ulxr::Integer(resp.getResult()).getInteger();
94   return (long int *) &ulxr_refFor_firstViewConst;
95 }
96 
97 
98 // mapped to UlxrIdlTest::firstView
firstView()99 std::string * UlxrIdlTestClient::firstView()
100 {
101   callTo_firstView.clear();
102   ulxr::MethodResponse resp = sendCall(callTo_firstView);
103   ulxr_refFor_firstView = (std::string) ulxr::getLatin1(ulxr::RpcString(resp.getResult()).getString());
104   return (std::string *) &ulxr_refFor_firstView;
105 }
106 
107 
108 // mapped to UlxrIdlTest::nextView1
nextView1(int i,long int * l,std::string & s,const bool * b,char c) const109 std::wstring * UlxrIdlTestClient::nextView1(int i, long int * l, std::string & s, const bool * b, char c) const
110 {
111   callTo_nextView1.clear();
112   callTo_nextView1.addParam(ulxr::Integer(i));
113   callTo_nextView1.addParam(ulxr::Integer(*l));
114   callTo_nextView1.addParam(ulxr::RpcString(ULXR_GET_STRING(s)));
115   callTo_nextView1.addParam(ulxr::Boolean(*b));
116   callTo_nextView1.addParam(ulxr::Integer(c));
117   ulxr::MethodResponse resp = sendCall(callTo_nextView1);
118   ulxr_refFor_nextView1 = (std::wstring) ulxr::getUnicode(ulxr::RpcString(resp.getResult()).getString());
119   return (std::wstring *) &ulxr_refFor_nextView1;
120 }
121 
122 
123 // mapped to UlxrIdlTest::nextView2
nextView2(int i,long int l,std::string & s,bool * const b,char c) const124 std::basic_string<char> * UlxrIdlTestClient::nextView2(int i, long int l, std::string & s, bool * const b, char c) const
125 {
126   callTo_nextView2.clear();
127   callTo_nextView2.addParam(ulxr::Integer(i));
128   callTo_nextView2.addParam(ulxr::Integer(l));
129   callTo_nextView2.addParam(ulxr::RpcString(ULXR_GET_STRING(s)));
130   callTo_nextView2.addParam(ulxr::Boolean(*b));
131   callTo_nextView2.addParam(ulxr::Integer(c));
132   ulxr::MethodResponse resp = sendCall(callTo_nextView2);
133   ulxr_refFor_nextView2 = (std::string) ulxr::getLatin1(ulxr::RpcString(resp.getResult()).getString());
134   return (std::basic_string<char> *) &ulxr_refFor_nextView2;
135 }
136 
137 
138 // mapped to UlxrIdlTest::getNumObjects
getNumObjects(std::string s)139 void UlxrIdlTestClient::getNumObjects(std::string s)
140 {
141   callTo_getNumObjects.clear();
142   callTo_getNumObjects.addParam(ulxr::RpcString(ULXR_GET_STRING(s)));
143   sendCall(callTo_getNumObjects);
144 }
145 
146 
147 // mapped to UlxrIdlTest::getObject
getObject(const std::string & s)148 const std::basic_string<wchar_t> * UlxrIdlTestClient::getObject(const std::string & s)
149 {
150   callTo_getObject.clear();
151   callTo_getObject.addParam(ulxr::RpcString(ULXR_GET_STRING(s)));
152   ulxr::MethodResponse resp = sendCall(callTo_getObject);
153   ulxr_refFor_getObject = (std::wstring) ulxr::getUnicode(ulxr::RpcString(resp.getResult()).getString());
154   return (const std::basic_string<wchar_t> *) &ulxr_refFor_getObject;
155 }
156 
157 
158 // mapped to UlxrIdlTest::getNumPages
getNumPages(const std::wstring & s)159 int UlxrIdlTestClient::getNumPages(const std::wstring & s)
160 {
161   callTo_getNumPages.clear();
162   callTo_getNumPages.addParam(ulxr::RpcString(ULXR_GET_STRING(s)));
163   ulxr::MethodResponse resp = sendCall(callTo_getNumPages);
164   return (long int) ulxr::Integer(resp.getResult()).getInteger();
165 }
166 
167 
168 // mapped to UlxrIdlTest::last_url4_ovr0 (there are overloaded methods)
last_url4()169 const std::string * UlxrIdlTestClient::last_url4()
170 {
171   callTo_last_url4_ovr0.clear();
172   ulxr::MethodResponse resp = sendCall(callTo_last_url4_ovr0);
173   ulxr_refFor_last_url4_ovr0 = (std::string) ulxr::getLatin1(ulxr::RpcString(resp.getResult()).getString());
174   return (const std::string *) &ulxr_refFor_last_url4_ovr0;
175 }
176 
177 
178 // mapped to UlxrIdlTest::last_url4_ovr1 (there are overloaded methods)
last_url4(int i)179 std::string * UlxrIdlTestClient::last_url4(int i)
180 {
181   callTo_last_url4_ovr1.clear();
182   callTo_last_url4_ovr1.addParam(ulxr::Integer(i));
183   ulxr::MethodResponse resp = sendCall(callTo_last_url4_ovr1);
184   ulxr_refFor_last_url4_ovr1 = (std::string) ulxr::getLatin1(ulxr::RpcString(resp.getResult()).getString());
185   return (std::string *) &ulxr_refFor_last_url4_ovr1;
186 }
187 
188 
189 // mapped to UlxrIdlTest::last_url4_ovr2 (there are overloaded methods)
last_url4(long int li)190 std::string * UlxrIdlTestClient::last_url4(long int li)
191 {
192   callTo_last_url4_ovr2.clear();
193   callTo_last_url4_ovr2.addParam(ulxr::Integer(li));
194   ulxr::MethodResponse resp = sendCall(callTo_last_url4_ovr2);
195   ulxr_refFor_last_url4_ovr2 = (std::string) ulxr::getLatin1(ulxr::RpcString(resp.getResult()).getString());
196   return (std::string *) &ulxr_refFor_last_url4_ovr2;
197 }
198 
199 
200