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 // Intended for manual and persistent changes
8 /////////////////////////////////////////////////
9 
10 //#define ULXR_UNICODE_ONLY_HELPERS
11 #include <ulxmlrpcpp/ulxmlrpcpp.h> // always first
12 
13 #include <ulxmlrpcpp/ulxr_value.h>
14 #include "UlxrIdlTest_ulxr_server.h"
15 
16 #include <ulxmlrpcpp/ulxr_response.h>
17 #include <ulxmlrpcpp/ulxr_method_adder.h>
18 #include <ulxmlrpcpp/ulxr_signature.h>
19 
20 #include "/home/ea/Documents/src/ulxmlrpcpp/trunk/ulxmlrpcpp/stubber/ulxr2xml/ulxridl_test.h"
21 #include "UlxrIdlTest_ulxr_names.h"
22 
23 
24 void UlxrIdlTestServer::setupServerMethods()
25 {
26   // mapped to: void first_url4();   (there are overloaded methods)
27   method_adder.addMethod(ulxr::make_method(*this, &UlxrIdlTestServer::first_url4_ovr4),
28                          ulxr::Void::getValueName(),
29                          ULXR_CALLTO_UlxrIdlTest_first_url4_ovr4,
30                          ulxr::Signature(),
31                          ulxr_i18n(ULXR_PCHAR("Some descriptive comment about 'void UlxrIdlTest::first_url4()'."))); // TODO adjust comment
32 
33   // mapped to: std::string * first_url4(int i);   (there are overloaded methods)
34   method_adder.addMethod(ulxr::make_method(*this, &UlxrIdlTestServer::first_url4_ovr3),
35                          ulxr::RpcString::getValueName(),
36                          ULXR_CALLTO_UlxrIdlTest_first_url4_ovr3,
37                          ulxr::Signature()
38                            << ulxr::Integer::getValueName(),
39                          ulxr_i18n(ULXR_PCHAR("Some descriptive comment about 'std::string * UlxrIdlTest::first_url4(int i)'."))); // TODO adjust comment
40 
41   // mapped to: std::string * first_url4(long int li);   (there are overloaded methods)
42   method_adder.addMethod(ulxr::make_method(*this, &UlxrIdlTestServer::first_url4_ovr2),
43                          ulxr::RpcString::getValueName(),
44                          ULXR_CALLTO_UlxrIdlTest_first_url4_ovr2,
45                          ulxr::Signature()
46                            << ulxr::Integer::getValueName(),
47                          ulxr_i18n(ULXR_PCHAR("Some descriptive comment about 'std::string * UlxrIdlTest::first_url4(long int li)'."))); // TODO adjust comment
48 
49   // mapped to: const char * first_url4(float li);   (there are overloaded methods)
50   method_adder.addMethod(ulxr::make_method(*this, &UlxrIdlTestServer::first_url4_ovr1),
51                          ulxr::RpcString::getValueName(),
52                          ULXR_CALLTO_UlxrIdlTest_first_url4_ovr1,
53                          ulxr::Signature()
54                            << ulxr::Double::getValueName(),
55                          ulxr_i18n(ULXR_PCHAR("Some descriptive comment about 'const char * UlxrIdlTest::first_url4(float li)'."))); // TODO adjust comment
56 
57   // mapped to: wchar_t * const first_url4(double li);   (there are overloaded methods)
58   method_adder.addMethod(ulxr::make_method(*this, &UlxrIdlTestServer::first_url4_ovr0),
59                          ulxr::RpcString::getValueName(),
60                          ULXR_CALLTO_UlxrIdlTest_first_url4_ovr0,
61                          ulxr::Signature()
62                            << ulxr::Double::getValueName(),
63                          ulxr_i18n(ULXR_PCHAR("Some descriptive comment about 'wchar_t * const UlxrIdlTest::first_url4(double li)'."))); // TODO adjust comment
64 
65   // mapped to: std::string constTest() const;
66   method_adder.addMethod(ulxr::make_method(*this, &UlxrIdlTestServer::constTest),
67                          ulxr::RpcString::getValueName(),
68                          ULXR_CALLTO_UlxrIdlTest_constTest,
69                          ulxr::Signature(),
70                          ulxr_i18n(ULXR_PCHAR("Some descriptive comment about 'std::string UlxrIdlTest::constTest() const'."))); // TODO adjust comment
71 
72   // mapped to: std::string & constRefTest() const;
73   method_adder.addMethod(ulxr::make_method(*this, &UlxrIdlTestServer::constRefTest),
74                          ulxr::RpcString::getValueName(),
75                          ULXR_CALLTO_UlxrIdlTest_constRefTest,
76                          ulxr::Signature(),
77                          ulxr_i18n(ULXR_PCHAR("Some descriptive comment about 'std::string & UlxrIdlTest::constRefTest() const'."))); // TODO adjust comment
78 
79   // mapped to: long int * firstViewConst() const;
80   method_adder.addMethod(ulxr::make_method(*this, &UlxrIdlTestServer::firstViewConst),
81                          ulxr::Integer::getValueName(),
82                          ULXR_CALLTO_UlxrIdlTest_firstViewConst,
83                          ulxr::Signature(),
84                          ulxr_i18n(ULXR_PCHAR("Some descriptive comment about 'long int * UlxrIdlTest::firstViewConst() const'."))); // TODO adjust comment
85 
86   // mapped to: std::string * firstView();
87   method_adder.addMethod(ulxr::make_method(*this, &UlxrIdlTestServer::firstView),
88                          ulxr::RpcString::getValueName(),
89                          ULXR_CALLTO_UlxrIdlTest_firstView,
90                          ulxr::Signature(),
91                          ulxr_i18n(ULXR_PCHAR("Some descriptive comment about 'std::string * UlxrIdlTest::firstView()'."))); // TODO adjust comment
92 
93   // mapped to: std::wstring * nextView1(int i, long int * l, std::string & s, const bool * b, char c) const;
94   method_adder.addMethod(ulxr::make_method(*this, &UlxrIdlTestServer::nextView1),
95                          ulxr::RpcString::getValueName(),
96                          ULXR_CALLTO_UlxrIdlTest_nextView1,
97                          ulxr::Signature()
98                            << ulxr::Integer::getValueName()
99                            << ulxr::Integer::getValueName()
100                            << ulxr::RpcString::getValueName()
101                            << ulxr::Boolean::getValueName()
102                            << ulxr::Integer::getValueName(),
103                          ulxr_i18n(ULXR_PCHAR("Some descriptive comment about 'std::wstring * UlxrIdlTest::nextView1(int i, long int * l, std::string & s, const bool * b, char c) const'."))); // TODO adjust comment
104 
105   // mapped to: std::basic_string<char> * nextView2(int i, long int l, std::string & s, bool * const b, char c) const;
106   method_adder.addMethod(ulxr::make_method(*this, &UlxrIdlTestServer::nextView2),
107                          ulxr::RpcString::getValueName(),
108                          ULXR_CALLTO_UlxrIdlTest_nextView2,
109                          ulxr::Signature()
110                            << ulxr::Integer::getValueName()
111                            << ulxr::Integer::getValueName()
112                            << ulxr::RpcString::getValueName()
113                            << ulxr::Boolean::getValueName()
114                            << ulxr::Integer::getValueName(),
115                          ulxr_i18n(ULXR_PCHAR("Some descriptive comment about 'std::basic_string<char> * UlxrIdlTest::nextView2(int i, long int l, std::string & s, bool * const b, char c) const'."))); // TODO adjust comment
116 
117   // mapped to: void getNumObjects(std::string s);
118   method_adder.addMethod(ulxr::make_method(*this, &UlxrIdlTestServer::getNumObjects),
119                          ulxr::Void::getValueName(),
120                          ULXR_CALLTO_UlxrIdlTest_getNumObjects,
121                          ulxr::Signature()
122                            << ulxr::RpcString::getValueName(),
123                          ulxr_i18n(ULXR_PCHAR("Some descriptive comment about 'void UlxrIdlTest::getNumObjects(std::string s)'."))); // TODO adjust comment
124 
125   // mapped to: const std::basic_string<wchar_t> * getObject(const std::string & s);
126   method_adder.addMethod(ulxr::make_method(*this, &UlxrIdlTestServer::getObject),
127                          ulxr::RpcString::getValueName(),
128                          ULXR_CALLTO_UlxrIdlTest_getObject,
129                          ulxr::Signature()
130                            << ulxr::RpcString::getValueName(),
131                          ulxr_i18n(ULXR_PCHAR("Some descriptive comment about 'const std::basic_string<wchar_t> * UlxrIdlTest::getObject(const std::string & s)'."))); // TODO adjust comment
132 
133   // mapped to: int getNumPages(const std::wstring & s);
134   method_adder.addMethod(ulxr::make_method(*this, &UlxrIdlTestServer::getNumPages),
135                          ulxr::Integer::getValueName(),
136                          ULXR_CALLTO_UlxrIdlTest_getNumPages,
137                          ulxr::Signature()
138                            << ulxr::RpcString::getValueName(),
139                          ulxr_i18n(ULXR_PCHAR("Some descriptive comment about 'int UlxrIdlTest::getNumPages(const std::wstring & s)'."))); // TODO adjust comment
140 
141   // mapped to: const std::string * last_url4();   (there are overloaded methods)
142   method_adder.addMethod(ulxr::make_method(*this, &UlxrIdlTestServer::last_url4_ovr0),
143                          ulxr::RpcString::getValueName(),
144                          ULXR_CALLTO_UlxrIdlTest_last_url4_ovr0,
145                          ulxr::Signature(),
146                          ulxr_i18n(ULXR_PCHAR("Some descriptive comment about 'const std::string * UlxrIdlTest::last_url4()'."))); // TODO adjust comment
147 
148   // mapped to: std::string * last_url4(int i);   (there are overloaded methods)
149   method_adder.addMethod(ulxr::make_method(*this, &UlxrIdlTestServer::last_url4_ovr1),
150                          ulxr::RpcString::getValueName(),
151                          ULXR_CALLTO_UlxrIdlTest_last_url4_ovr1,
152                          ulxr::Signature()
153                            << ulxr::Integer::getValueName(),
154                          ulxr_i18n(ULXR_PCHAR("Some descriptive comment about 'std::string * UlxrIdlTest::last_url4(int i)'."))); // TODO adjust comment
155 
156   // mapped to: std::string * last_url4(long int li);   (there are overloaded methods)
157   method_adder.addMethod(ulxr::make_method(*this, &UlxrIdlTestServer::last_url4_ovr2),
158                          ulxr::RpcString::getValueName(),
159                          ULXR_CALLTO_UlxrIdlTest_last_url4_ovr2,
160                          ulxr::Signature()
161                            << ulxr::Integer::getValueName(),
162                          ulxr_i18n(ULXR_PCHAR("Some descriptive comment about 'std::string * UlxrIdlTest::last_url4(long int li)'."))); // TODO adjust comment
163 }
164 
165