[2127] | 1 | /*
|
---|
| 2 | * MICO --- a free CORBA implementation
|
---|
| 3 | * Copyright (C) 1997-98 Kay Roemer & Arno Puder
|
---|
| 4 | *
|
---|
| 5 | * This file was automatically generated. DO NOT EDIT!
|
---|
| 6 | */
|
---|
| 7 | #include "corbaiface.h"
|
---|
| 8 |
|
---|
| 9 | //--------------------------------------------------------
|
---|
| 10 | // Implementation of skeletons
|
---|
| 11 | //--------------------------------------------------------
|
---|
| 12 |
|
---|
| 13 | gsdlInterface::corbaiface_skel::corbaiface_skel( const CORBA::BOA::ReferenceData &_id )
|
---|
| 14 | {
|
---|
| 15 | CORBA::ImplementationDef_var _impl =
|
---|
| 16 | _find_impl( "IDL:gsdlInterface/corbaiface:1.0", "corbaiface" );
|
---|
| 17 | assert( !CORBA::is_nil( _impl ) );
|
---|
| 18 | _create_ref( _id,
|
---|
| 19 | 0,
|
---|
| 20 | _impl,
|
---|
| 21 | "IDL:gsdlInterface/corbaiface:1.0" );
|
---|
| 22 | register_dispatcher( new StaticInterfaceDispatcherWrapper<corbaiface_skel>( this ) );
|
---|
| 23 | }
|
---|
| 24 |
|
---|
| 25 | gsdlInterface::corbaiface_skel::corbaiface_skel( CORBA::Object_ptr _obj )
|
---|
| 26 | {
|
---|
| 27 | CORBA::ImplementationDef_var _impl =
|
---|
| 28 | _find_impl( "IDL:gsdlInterface/corbaiface:1.0", "corbaiface" );
|
---|
| 29 | assert( !CORBA::is_nil( _impl ) );
|
---|
| 30 | _restore_ref( _obj,
|
---|
| 31 | CORBA::BOA::ReferenceData(),
|
---|
| 32 | 0,
|
---|
| 33 | _impl );
|
---|
| 34 | register_dispatcher( new StaticInterfaceDispatcherWrapper<corbaiface_skel>( this ) );
|
---|
| 35 | }
|
---|
| 36 |
|
---|
| 37 | gsdlInterface::corbaiface_skel::~corbaiface_skel()
|
---|
| 38 | {
|
---|
| 39 | }
|
---|
| 40 |
|
---|
| 41 | bool gsdlInterface::corbaiface_skel::dispatch( CORBA::StaticServerRequest_ptr _req, CORBA::Environment & /*_env*/ )
|
---|
| 42 | {
|
---|
| 43 | #ifdef HAVE_EXCEPTIONS
|
---|
| 44 | try {
|
---|
| 45 | #endif
|
---|
| 46 | switch (mico_string_hash (_req->op_name(), 17)) {
|
---|
| 47 | case 0:
|
---|
| 48 | if( strcmp( _req->op_name(), "collectionList" ) == 0 ) {
|
---|
| 49 | corbatext_tarray collist;
|
---|
| 50 | CORBA::StaticAny _collist( _marshaller__seq_gsdlInterface_corbatext_t, &collist );
|
---|
| 51 | corbaComError error;
|
---|
| 52 | CORBA::StaticAny _error( _marshaller_gsdlInterface_corbaComError, &error );
|
---|
| 53 |
|
---|
| 54 | _req->add_inout_arg( &_collist );
|
---|
| 55 | _req->add_inout_arg( &_error );
|
---|
| 56 |
|
---|
| 57 | if( !_req->read_args() )
|
---|
| 58 | return true;
|
---|
| 59 |
|
---|
| 60 | collectionList( collist, error );
|
---|
| 61 | _req->write_results();
|
---|
| 62 | return true;
|
---|
| 63 | }
|
---|
| 64 | break;
|
---|
| 65 | case 3:
|
---|
| 66 | if( strcmp( _req->op_name(), "ping" ) == 0 ) {
|
---|
| 67 | corbatext_t collection;
|
---|
| 68 | CORBA::StaticAny _collection( _marshaller_gsdlInterface_corbatext_t, &collection );
|
---|
[2261] | 69 | CORBA::Boolean wasSuccess;
|
---|
| 70 | CORBA::StaticAny _wasSuccess( CORBA::_stc_boolean, &wasSuccess );
|
---|
[2127] | 71 | corbaComError error;
|
---|
| 72 | CORBA::StaticAny _error( _marshaller_gsdlInterface_corbaComError, &error );
|
---|
| 73 |
|
---|
| 74 | _req->add_in_arg( &_collection );
|
---|
[2261] | 75 | _req->add_inout_arg( &_wasSuccess );
|
---|
[2127] | 76 | _req->add_inout_arg( &_error );
|
---|
| 77 |
|
---|
| 78 | if( !_req->read_args() )
|
---|
| 79 | return true;
|
---|
| 80 |
|
---|
[2261] | 81 | ping( collection, wasSuccess, error );
|
---|
[2127] | 82 | _req->write_results();
|
---|
| 83 | return true;
|
---|
| 84 | }
|
---|
| 85 | break;
|
---|
| 86 | case 7:
|
---|
| 87 | if( strcmp( _req->op_name(), "filter" ) == 0 ) {
|
---|
| 88 | corbatext_t collection;
|
---|
| 89 | CORBA::StaticAny _collection( _marshaller_gsdlInterface_corbatext_t, &collection );
|
---|
| 90 | corbaFilterRequest request;
|
---|
| 91 | CORBA::StaticAny _request( _marshaller_gsdlInterface_corbaFilterRequest, &request );
|
---|
| 92 | corbaFilterResponse response;
|
---|
| 93 | CORBA::StaticAny _response( _marshaller_gsdlInterface_corbaFilterResponse, &response );
|
---|
| 94 | corbaComError error;
|
---|
| 95 | CORBA::StaticAny _error( _marshaller_gsdlInterface_corbaComError, &error );
|
---|
| 96 |
|
---|
| 97 | _req->add_in_arg( &_collection );
|
---|
| 98 | _req->add_in_arg( &_request );
|
---|
| 99 | _req->add_inout_arg( &_response );
|
---|
| 100 | _req->add_inout_arg( &_error );
|
---|
| 101 |
|
---|
| 102 | if( !_req->read_args() )
|
---|
| 103 | return true;
|
---|
| 104 |
|
---|
| 105 | filter( collection, request, response, error );
|
---|
| 106 | _req->write_results();
|
---|
| 107 | return true;
|
---|
| 108 | }
|
---|
| 109 | break;
|
---|
| 110 | case 9:
|
---|
| 111 | if( strcmp( _req->op_name(), "getFilterOptions" ) == 0 ) {
|
---|
| 112 | corbatext_t collection;
|
---|
| 113 | CORBA::StaticAny _collection( _marshaller_gsdlInterface_corbatext_t, &collection );
|
---|
| 114 | corbatext_t option;
|
---|
| 115 | CORBA::StaticAny _option( _marshaller_gsdlInterface_corbatext_t, &option );
|
---|
| 116 | corbaFilterOptionsResponse response;
|
---|
| 117 | CORBA::StaticAny _response( _marshaller_gsdlInterface_corbaFilterOptionsResponse, &response );
|
---|
| 118 | corbaComError error;
|
---|
| 119 | CORBA::StaticAny _error( _marshaller_gsdlInterface_corbaComError, &error );
|
---|
| 120 |
|
---|
| 121 | _req->add_in_arg( &_collection );
|
---|
| 122 | _req->add_in_arg( &_option );
|
---|
| 123 | _req->add_inout_arg( &_response );
|
---|
| 124 | _req->add_inout_arg( &_error );
|
---|
| 125 |
|
---|
| 126 | if( !_req->read_args() )
|
---|
| 127 | return true;
|
---|
| 128 |
|
---|
| 129 | getFilterOptions( collection, option, response, error );
|
---|
| 130 | _req->write_results();
|
---|
| 131 | return true;
|
---|
| 132 | }
|
---|
| 133 | break;
|
---|
| 134 | case 10:
|
---|
| 135 | if( strcmp( _req->op_name(), "getCollectInfo" ) == 0 ) {
|
---|
| 136 | corbatext_t collection;
|
---|
| 137 | CORBA::StaticAny _collection( _marshaller_gsdlInterface_corbatext_t, &collection );
|
---|
| 138 | corbaColInfoResponse response;
|
---|
| 139 | CORBA::StaticAny _response( _marshaller_gsdlInterface_corbaColInfoResponse, &response );
|
---|
| 140 | corbaComError error;
|
---|
| 141 | CORBA::StaticAny _error( _marshaller_gsdlInterface_corbaComError, &error );
|
---|
| 142 |
|
---|
| 143 | _req->add_in_arg( &_collection );
|
---|
| 144 | _req->add_inout_arg( &_response );
|
---|
| 145 | _req->add_inout_arg( &_error );
|
---|
| 146 |
|
---|
| 147 | if( !_req->read_args() )
|
---|
| 148 | return true;
|
---|
| 149 |
|
---|
| 150 | getCollectInfo( collection, response, error );
|
---|
| 151 | _req->write_results();
|
---|
| 152 | return true;
|
---|
| 153 | }
|
---|
| 154 | break;
|
---|
| 155 | case 11:
|
---|
| 156 | if( strcmp( _req->op_name(), "initialise" ) == 0 ) {
|
---|
| 157 | corbaComError error;
|
---|
| 158 | CORBA::StaticAny _error( _marshaller_gsdlInterface_corbaComError, &error );
|
---|
| 159 |
|
---|
| 160 | CORBA::Boolean _res;
|
---|
| 161 | CORBA::StaticAny __res( CORBA::_stc_boolean, &_res );
|
---|
| 162 | _req->add_inout_arg( &_error );
|
---|
| 163 | _req->set_result( &__res );
|
---|
| 164 |
|
---|
| 165 | if( !_req->read_args() )
|
---|
| 166 | return true;
|
---|
| 167 |
|
---|
| 168 | _res = initialise( error );
|
---|
| 169 | _req->write_results();
|
---|
| 170 | return true;
|
---|
| 171 | }
|
---|
| 172 | if( strcmp( _req->op_name(), "getFilterInfo" ) == 0 ) {
|
---|
| 173 | corbatext_t collection;
|
---|
| 174 | CORBA::StaticAny _collection( _marshaller_gsdlInterface_corbatext_t, &collection );
|
---|
| 175 | corbatext_tarray filterNames;
|
---|
| 176 | CORBA::StaticAny _filterNames( _marshaller__seq_gsdlInterface_corbatext_t, &filterNames );
|
---|
| 177 | corbaComError error;
|
---|
| 178 | CORBA::StaticAny _error( _marshaller_gsdlInterface_corbaComError, &error );
|
---|
| 179 |
|
---|
| 180 | _req->add_in_arg( &_collection );
|
---|
| 181 | _req->add_inout_arg( &_filterNames );
|
---|
| 182 | _req->add_inout_arg( &_error );
|
---|
| 183 |
|
---|
| 184 | if( !_req->read_args() )
|
---|
| 185 | return true;
|
---|
| 186 |
|
---|
| 187 | getFilterInfo( collection, filterNames, error );
|
---|
| 188 | _req->write_results();
|
---|
| 189 | return true;
|
---|
| 190 | }
|
---|
| 191 | break;
|
---|
| 192 | case 12:
|
---|
| 193 | if( strcmp( _req->op_name(), "hasCollection" ) == 0 ) {
|
---|
| 194 | corbatext_t corbaCollection;
|
---|
| 195 | CORBA::StaticAny _corbaCollection( _marshaller_gsdlInterface_corbatext_t, &corbaCollection );
|
---|
| 196 | CORBA::Boolean has;
|
---|
| 197 | CORBA::StaticAny _has( CORBA::_stc_boolean, &has );
|
---|
| 198 | corbaComError error;
|
---|
| 199 | CORBA::StaticAny _error( _marshaller_gsdlInterface_corbaComError, &error );
|
---|
| 200 |
|
---|
| 201 | _req->add_in_arg( &_corbaCollection );
|
---|
| 202 | _req->add_inout_arg( &_has );
|
---|
| 203 | _req->add_inout_arg( &_error );
|
---|
| 204 |
|
---|
| 205 | if( !_req->read_args() )
|
---|
| 206 | return true;
|
---|
| 207 |
|
---|
| 208 | hasCollection( corbaCollection, has, error );
|
---|
| 209 | _req->write_results();
|
---|
| 210 | return true;
|
---|
| 211 | }
|
---|
| 212 | break;
|
---|
| 213 | case 13:
|
---|
| 214 | if( strcmp( _req->op_name(), "configure" ) == 0 ) {
|
---|
| 215 | corbatext_t key;
|
---|
| 216 | CORBA::StaticAny _key( _marshaller_gsdlInterface_corbatext_t, &key );
|
---|
| 217 | corbatext_tarray cfgline;
|
---|
| 218 | CORBA::StaticAny _cfgline( _marshaller__seq_gsdlInterface_corbatext_t, &cfgline );
|
---|
| 219 | corbaComError error;
|
---|
| 220 | CORBA::StaticAny _error( _marshaller_gsdlInterface_corbaComError, &error );
|
---|
| 221 |
|
---|
| 222 | _req->add_in_arg( &_key );
|
---|
| 223 | _req->add_in_arg( &_cfgline );
|
---|
| 224 | _req->add_inout_arg( &_error );
|
---|
| 225 |
|
---|
| 226 | if( !_req->read_args() )
|
---|
| 227 | return true;
|
---|
| 228 |
|
---|
| 229 | configure( key, cfgline, error );
|
---|
| 230 | _req->write_results();
|
---|
| 231 | return true;
|
---|
| 232 | }
|
---|
| 233 | if( strcmp( _req->op_name(), "getDocument" ) == 0 ) {
|
---|
| 234 | corbatext_t collection;
|
---|
| 235 | CORBA::StaticAny _collection( _marshaller_gsdlInterface_corbatext_t, &collection );
|
---|
| 236 | corbaDocRequest request;
|
---|
| 237 | CORBA::StaticAny _request( _marshaller_gsdlInterface_corbaDocRequest, &request );
|
---|
| 238 | corbaDocResponse response;
|
---|
| 239 | CORBA::StaticAny _response( _marshaller_gsdlInterface_corbaDocResponse, &response );
|
---|
| 240 | corbaComError error;
|
---|
| 241 | CORBA::StaticAny _error( _marshaller_gsdlInterface_corbaComError, &error );
|
---|
| 242 |
|
---|
| 243 | _req->add_in_arg( &_collection );
|
---|
| 244 | _req->add_inout_arg( &_request );
|
---|
| 245 | _req->add_inout_arg( &_response );
|
---|
| 246 | _req->add_inout_arg( &_error );
|
---|
| 247 |
|
---|
| 248 | if( !_req->read_args() )
|
---|
| 249 | return true;
|
---|
| 250 |
|
---|
| 251 | getDocument( collection, request, response, error );
|
---|
| 252 | _req->write_results();
|
---|
| 253 | return true;
|
---|
| 254 | }
|
---|
| 255 | break;
|
---|
| 256 | }
|
---|
| 257 | #ifdef HAVE_EXCEPTIONS
|
---|
| 258 | } catch( CORBA::SystemException_catch &_ex ) {
|
---|
| 259 | _req->set_exception( _ex->_clone() );
|
---|
| 260 | _req->write_results();
|
---|
| 261 | return true;
|
---|
| 262 | } catch( ... ) {
|
---|
| 263 | assert( 0 );
|
---|
| 264 | return true;
|
---|
| 265 | }
|
---|
| 266 | #endif
|
---|
| 267 | return false;
|
---|
| 268 | }
|
---|
| 269 |
|
---|
| 270 | gsdlInterface::corbaiface_ptr gsdlInterface::corbaiface_skel::_this()
|
---|
| 271 | {
|
---|
| 272 | return gsdlInterface::corbaiface::_duplicate( this );
|
---|
| 273 | }
|
---|
| 274 |
|
---|