Result< R > Class Template Reference

#include <Pt/Remoting/RemoteProcedure.h>

Result of a remote procedure call.

Inherits NonCopyable.

Public Member Functions

 Result (RemoteCall *call=0)
 Constructor.
 
const R & get () const
 Ends a remote procedure call. More...
 
bool isFailed () const
 Indicates if the procedure has failed. More...
 
R & value ()
 The return value.
 

Member Function Documentation

bool isFailed ( ) const

If this method returns false, get() will not throw an excption.

const R& get ( ) const

This method ends a remote procedure call when the RemoteProcedure sends the finished signal. If the procedure has failed, an exception of type Fault is thrown. Other exceptions might be raised depending on the used Client.