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.
 
bool isFailed () const
 Indicates if the procedure has failed. More...
 
R & value ()
 The return value.
 
const R & get () const
 Ends a remote procedure call. More...
 

Member Function Documentation

◆ isFailed()

bool isFailed ( ) const

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

◆ get()

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.