cxxtools::RemoteProcedureBase< R > Class Template Reference

Base class for Remote procedure class. More...

#include <cxxtools/remoteprocedure.h>

Inheritance diagram for cxxtools::RemoteProcedureBase< R >:
cxxtools::IRemoteProcedure

Public Member Functions

 RemoteProcedureBase (RemoteClient &client, const String &name)
void setFault (int rc, const std::string &msg)
const R & value () const
 access result value.
R & result ()
 Finalize call and return result.
virtual bool failed () const
R & end (Milliseconds msecs=RemoteClient::WaitInfinite)
- Public Member Functions inherited from cxxtools::IRemoteProcedure
 IRemoteProcedure (RemoteClient &client, const String &name)
virtual ~IRemoteProcedure ()
RemoteClientclient ()
void client (RemoteClient &client)
const Stringname () const
void cancel ()

Public Attributes

Signal< RemoteResult< R > & > finished

Protected Member Functions

void onFinished ()

Protected Attributes

RemoteResult< R > _result
Composer< R > _r

Detailed Description

template<typename R>
class cxxtools::RemoteProcedureBase< R >

Base class for Remote procedure class.

Constructor & Destructor Documentation

template<typename R >
cxxtools::RemoteProcedureBase< R >::RemoteProcedureBase ( RemoteClient client,
const String name 
)
inline

Member Function Documentation

template<typename R >
R& cxxtools::RemoteProcedureBase< R >::end ( Milliseconds  msecs = RemoteClient::WaitInfinite)
inline
template<typename R >
virtual bool cxxtools::RemoteProcedureBase< R >::failed ( ) const
inlinevirtual
template<typename R >
void cxxtools::RemoteProcedureBase< R >::onFinished ( )
inlineprotectedvirtual
template<typename R >
R& cxxtools::RemoteProcedureBase< R >::result ( )
inline

Finalize call and return result.

Exceptions are thrown when the call resulted in a exception. The method should be called just once since the exception state is partly reset.

template<typename R >
void cxxtools::RemoteProcedureBase< R >::setFault ( int  rc,
const std::string &  msg 
)
inlinevirtual
template<typename R >
const R& cxxtools::RemoteProcedureBase< R >::value ( ) const
inline

access result value.

Member Data Documentation

template<typename R >
Composer<R> cxxtools::RemoteProcedureBase< R >::_r
protected
template<typename R >
RemoteResult<R> cxxtools::RemoteProcedureBase< R >::_result
protected
template<typename R >
Signal< RemoteResult<R> & > cxxtools::RemoteProcedureBase< R >::finished

The documentation for this class was generated from the following file: