Changeset 2261
- Timestamp:
- 2001-04-03T02:13:26+12:00 (23 years ago)
- Location:
- trunk/gsdl
- Files:
-
- 7 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/gsdl/lib/corbaiface.h
r2126 r2261 489 489 virtual void collectionList( corbatext_tarray& collist, corbaComError& error ) = 0; 490 490 virtual void hasCollection( const corbatext_t& corbaCollection, CORBA::Boolean& has, corbaComError& error ) = 0; 491 virtual CORBA::Boolean ping( const corbatext_t& collection, corbaComError& error ) = 0;491 virtual void ping( const corbatext_t& collection, CORBA::Boolean& wasSuccess, corbaComError& error ) = 0; 492 492 virtual void getDocument( const corbatext_t& collection, corbaDocRequest& request, corbaDocResponse& response, corbaComError& error ) = 0; 493 493 virtual void getCollectInfo( const corbatext_t& collection, corbaColInfoResponse& response, corbaComError& error ) = 0; … … 513 513 void collectionList( corbatext_tarray& collist, corbaComError& error ); 514 514 void hasCollection( const corbatext_t& corbaCollection, CORBA::Boolean& has, corbaComError& error ); 515 CORBA::Boolean ping( const corbatext_t& collection, corbaComError& error );515 void ping( const corbatext_t& collection, CORBA::Boolean& wasSuccess, corbaComError& error ); 516 516 void getDocument( const corbatext_t& collection, corbaDocRequest& request, corbaDocResponse& response, corbaComError& error ); 517 517 void getCollectInfo( const corbatext_t& collection, corbaColInfoResponse& response, corbaComError& error ); -
trunk/gsdl/lib/corbaiface.mpp
r2126 r2261 1501 1501 1502 1502 1503 CORBA::Boolean gsdlInterface::corbaiface_stub::ping( const gsdlInterface::corbatext_t& collection, gsdlInterface::corbaComError& error )1503 void gsdlInterface::corbaiface_stub::ping( const gsdlInterface::corbatext_t& collection, CORBA::Boolean& wasSuccess, gsdlInterface::corbaComError& error ) 1504 1504 { 1505 1505 CORBA::StaticAny _collection( _marshaller_gsdlInterface_corbatext_t, &collection ); 1506 CORBA::StaticAny _wasSuccess( CORBA::_stc_boolean, &wasSuccess ); 1506 1507 CORBA::StaticAny _error( _marshaller_gsdlInterface_corbaComError, &error ); 1507 CORBA::Boolean _res;1508 CORBA::StaticAny __res( CORBA::_stc_boolean, &_res );1509 1510 1508 CORBA::StaticRequest __req( this, "ping" ); 1511 1509 __req.add_in_arg( &_collection ); 1510 __req.add_inout_arg( &_wasSuccess ); 1512 1511 __req.add_inout_arg( &_error ); 1513 __req.set_result( &__res );1514 1512 1515 1513 __req.invoke(); … … 1517 1515 mico_sii_throw( &__req, 1518 1516 0); 1519 return _res;1520 1517 } 1521 1518 -
trunk/gsdl/lib/corbaiface_skel.mpp
r2127 r2261 67 67 corbatext_t collection; 68 68 CORBA::StaticAny _collection( _marshaller_gsdlInterface_corbatext_t, &collection ); 69 corbaComError error;70 CORBA::StaticAny _ error( _marshaller_gsdlInterface_corbaComError, &error);71 72 CORBA:: Boolean _res;73 CORBA::StaticAny __res( CORBA::_stc_boolean, &_res ); 74 _req->add_in_arg( &_collection ); 75 _req->add_inout_arg( &_ error);76 _req-> set_result( &__res);77 78 if( !_req->read_args() ) 79 return true; 80 81 _res = ping( collection, error );69 CORBA::Boolean wasSuccess; 70 CORBA::StaticAny _wasSuccess( CORBA::_stc_boolean, &wasSuccess ); 71 corbaComError error; 72 CORBA::StaticAny _error( _marshaller_gsdlInterface_corbaComError, &error ); 73 74 _req->add_in_arg( &_collection ); 75 _req->add_inout_arg( &_wasSuccess ); 76 _req->add_inout_arg( &_error ); 77 78 if( !_req->read_args() ) 79 return true; 80 81 ping( collection, wasSuccess, error ); 82 82 _req->write_results(); 83 83 return true; -
trunk/gsdl/src/colservr/corbaServer.mpp
r2174 r2261 106 106 ofstream logout; 107 107 int reply; 108 comerror_t error ;108 comerror_t error = noError; 109 109 110 110 this->openLogfile("/etc/corbaout.txt", logout); … … 118 118 text_t key; 119 119 text_tarray cfgline; 120 comerror_t error ;120 comerror_t error = noError; 121 121 122 122 corbaconv_text_t::setCorbatext(key,corbaKey); … … 160 160 corbaconv_text_t *cct; 161 161 bool _has; 162 comerror_t err ;162 comerror_t err = noError; 163 163 ofstream logout; 164 164 … … 191 191 text_t collection; 192 192 bool success; 193 comerror_t error ;193 comerror_t error = noError; 194 194 ofstream logout; 195 195 … … 250 250 { 251 251 ColInfoResponse_t response; 252 comerror_t error ;252 comerror_t error = noError; 253 253 text_t collection; 254 254 ofstream logout; … … 304 304 InfoFilterOptionsRequest_t request; 305 305 InfoFilterOptionsResponse_t response; 306 comerror_t error ;306 comerror_t error = noError; 307 307 unsigned int i; 308 308 ofstream logout; -
trunk/gsdl/src/recpt/OIDtools.cpp
r1860 r2261 82 82 response.clear(); 83 83 84 comerror_t err ;84 comerror_t err = noError; 85 85 FilterRequest_t request; 86 86 request.clear(); … … 115 115 response.clear(); 116 116 117 comerror_t err ;117 comerror_t err = noError; 118 118 FilterRequest_t request; 119 119 … … 147 147 if (OIDs.empty()) return true; 148 148 149 comerror_t err ;149 comerror_t err = noError; 150 150 FilterRequest_t request; 151 151 … … 198 198 response.clear(); 199 199 200 comerror_t err ;200 comerror_t err = noError; 201 201 FilterRequest_t request; 202 202 OptionValue_t option; -
trunk/gsdl/src/recpt/collectoraction.cpp
r2218 r2261 676 676 677 677 // don't include z39.50 collection 678 comerror_t err ;678 comerror_t err = noError; 679 679 if ((*rprotolist_here).p->get_protocol_name (err) == "z3950proto") { 680 680 rprotolist_here ++; … … 1584 1584 recptprotolistclass::iterator rprotolist_end = protos->end(); 1585 1585 while (rprotolist_here != rprotolist_end) { 1586 comerror_t err ;1586 comerror_t err = noError; 1587 1587 if ((*rprotolist_here).p != NULL) { 1588 1588 if ((*rprotolist_here).p->get_protocol_name (err) == "nullproto") { … … 1615 1615 recptprotolistclass::iterator rprotolist_end = protos->end(); 1616 1616 while (rprotolist_here != rprotolist_end) { 1617 comerror_t err ;1617 comerror_t err = noError; 1618 1618 if ((*rprotolist_here).p != NULL) { 1619 1619 if ((*rprotolist_here).p->get_protocol_name (err) == "nullproto") { -
trunk/gsdl/src/recpt/corbaproto.mpp
r2223 r2261 558 558 wassuccess = (success != 0); 559 559 err = (comerror_t) corbaError; 560 cout << "Corbaproto::Ping" << err << endl; 560 561 } 561 562
Note:
See TracChangeset
for help on using the changeset viewer.