SAGA C++ API 1.6
saga::rpc::rpc Class Reference

This class represents a remote function handle, which can be called (repeatedly), and returns the result of the respective remote procedure invocation. More...

#include <rpc.hpp>

Inheritance diagram for saga::rpc::rpc:

List of all members.

Public Member Functions

 rpc (session const &s, saga::url name=saga::url())
 Initializes a remote function handle.
 rpc (saga::url name)
 Brief description starts here.
 rpc (void)
 Brief description starts here.
 ~rpc (void)
 Destroys the object.
void call (std::vector< parameter > parameters)
 Call the remote procedure.
void close (double timeout=0.0)
 Closes the rpc handle instance.

Static Public Member Functions

static rpc create (session const &s, saga::url name=saga::url())
 Factory function resembling rpc(session, url) constructor.
static rpc create (saga::url name=saga::url())
 Factory function resembling rpc(url) constructor.
template<typename Tag >
static saga::task create (saga::url name=saga::url())

Detailed Description

This class represents a remote function handle, which can be called (repeatedly), and returns the result of the respective remote procedure invocation.

Definition at line 48 of file packages/rpc/rpc.hpp.


Constructor & Destructor Documentation

saga::rpc::rpc::rpc ( session const &  s,
saga::url  name = saga::url() 
) [explicit]

Initializes a remote function handle.

Returns:
The newly created object.

Definition at line 22 of file rpc.cpp.

saga::rpc::rpc::rpc ( saga::url  name) [explicit]

Brief description starts here.

Definition at line 28 of file rpc.cpp.

saga::rpc::rpc::rpc ( void  )

Brief description starts here.

Definition at line 39 of file rpc.cpp.

saga::rpc::rpc::~rpc ( void  )

Destroys the object.

Definition at line 43 of file rpc.cpp.


Member Function Documentation

static rpc saga::rpc::rpc::create ( session const &  s,
saga::url  name = saga::url() 
) [inline, static]

Factory function resembling rpc(session, url) constructor.

Definition at line 98 of file packages/rpc/rpc.hpp.

static rpc saga::rpc::rpc::create ( saga::url  name = saga::url()) [inline, static]

Factory function resembling rpc(url) constructor.

Definition at line 108 of file packages/rpc/rpc.hpp.

template<typename Tag >
static saga::task saga::rpc::rpc::create ( saga::url  name = saga::url()) [inline, static]

Definition at line 113 of file packages/rpc/rpc.hpp.

void saga::rpc::rpc::call ( std::vector< parameter parameters) [inline]

Call the remote procedure.

Definition at line 122 of file packages/rpc/rpc.hpp.

References saga::task::get_result().

void saga::rpc::rpc::close ( double  timeout = 0.0) [inline]

Closes the rpc handle instance.

Definition at line 135 of file packages/rpc/rpc.hpp.

References saga::task::get_result().


The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines