/* * Copyright 2001 Borland Software Corporation, Inc. * * GENERATED CODE --- DO NOT EDIT * */ #include #pragma hdrstop #include "laskuri_s.hh" #if defined(__BORLANDC__) #pragma option push #pragma warn -8060 #endif static CORBA::MethodDescription _sk_testi_iCarCounter_methods[] = { {"Inc", POA_testi::iCarCounter::_Inc}, {"Count", POA_testi::iCarCounter::_Count}, {"Clear", POA_testi::iCarCounter::_Clear} }; const CORBA::TypeInfo POA_testi::iCarCounter::_skel_info( "testi::iCarCounter", NULL, (CORBA::ULong) 3, _sk_testi_iCarCounter_methods , NULL, 0, NULL); const CORBA::TypeInfo *POA_testi::iCarCounter::_type_info() const { return &_skel_info; } testi::iCarCounter_ptr POA_testi::iCarCounter::_this() { return (testi::iCarCounter *)(PortableServer_ServantBase::_this()->_safe_narrow(*testi::iCarCounter::_desc())); } void *POA_testi::iCarCounter::_safe_narrow(const CORBA::TypeInfo& _info) const { if (_info == _skel_info) { return (void *)this; } if (_info == PortableServer_ServantBase::_skel_info) { return (void *)(PortableServer_ServantBase *)this; } return 0; } POA_testi::iCarCounter * POA_testi::iCarCounter::_narrow(PortableServer::ServantBase *_obj) { if (!_obj) { return (POA_testi::iCarCounter*)NULL; } else { return (iCarCounter*)_obj->_safe_narrow(_skel_info); } } #if defined(__BORLANDC__) #pragma option push #pragma warn -8057 #pragma warn -8004 #endif void POA_testi::iCarCounter::_Inc (void *_obj, CORBA::MarshalInBuffer &_istrm, const char *_oper, VISReplyHandler& _handler) { VISCLEAR_EXCEP VISistream& _vistrm = _istrm; POA_testi::iCarCounter *_impl = (POA_testi::iCarCounter*)_obj; _impl->Inc(); CORBA::MarshalOutBuffer_var _obuf = _handler.create_reply(); VISostream& _ostrm = *VISostream::_downcast(_obuf); VISIF_EXCEP(return;) } #if defined(__BORLANDC__) #pragma option pop #endif #if defined(__BORLANDC__) #pragma option push #pragma warn -8057 #pragma warn -8004 #endif void POA_testi::iCarCounter::_Count (void *_obj, CORBA::MarshalInBuffer &_istrm, const char *_oper, VISReplyHandler& _handler) { VISCLEAR_EXCEP VISistream& _vistrm = _istrm; POA_testi::iCarCounter *_impl = (POA_testi::iCarCounter*)_obj; CORBA::Long _ret = _impl->Count(); CORBA::MarshalOutBuffer_var _obuf = _handler.create_reply(); VISostream& _ostrm = *VISostream::_downcast(_obuf); VISIF_EXCEP(return;) _ostrm << _ret; } #if defined(__BORLANDC__) #pragma option pop #endif #if defined(__BORLANDC__) #pragma option push #pragma warn -8057 #pragma warn -8004 #endif void POA_testi::iCarCounter::_Clear (void *_obj, CORBA::MarshalInBuffer &_istrm, const char *_oper, VISReplyHandler& _handler) { VISCLEAR_EXCEP VISistream& _vistrm = _istrm; POA_testi::iCarCounter *_impl = (POA_testi::iCarCounter*)_obj; _impl->Clear(); CORBA::MarshalOutBuffer_var _obuf = _handler.create_reply(); VISostream& _ostrm = *VISostream::_downcast(_obuf); VISIF_EXCEP(return;) } #if defined(__BORLANDC__) #pragma option pop #endif #if defined(__BORLANDC__) #pragma option pop #endif