boost::rpc::registry< Id, ArchivePair > Class Template Reference

#include <registry.hpp>

List of all members.


Detailed Description

template<typename Id, typename ArchivePair = binary_archive>
class boost::rpc::registry< Id, ArchivePair >

Contains a collection of functions mapped by key.

Parameters:
Id Type used as key for the functions.
ArchivePair Pair of Boost.Serialization archives to be used for marshaling.
See also:
rpc::binary_archive, rpc::text_archive, rpc::xml_archive


Public Types

typedef Id id_type
typedef ArchivePair archive_type

Public Member Functions

template<typename Signature>
void set (Id id, const boost::function< Signature > &f)
 Adds a function and its id to the registry.
void operator() (const std::string &id_and_params, const call_options &options, std::string *result=NULL)
 Executes a function call.


Member Function Documentation

template<typename Id, typename ArchivePair = binary_archive>
template<typename Signature>
void boost::rpc::registry< Id, ArchivePair >::set ( Id  id,
const boost::function< Signature > &  f 
) [inline]

Adds a function and its id to the registry.

Parameters:
id Id used to access the function
f Function to be added.
Todo:
figure out how to use call traits param type for id so ptr_map doesn't complains on Id=int

template<typename Id, typename ArchivePair = binary_archive>
void boost::rpc::registry< Id, ArchivePair >::operator() ( const std::string &  id_and_params,
const call_options options,
std::string *  result = NULL 
) [inline]

Executes a function call.

Parameters:
id_and_params Marshaled id of the function to call and the parameters.
options Options specifying the results to be marshaled back.
result A string to contain the marshaled results.


The documentation for this class was generated from the following file:
Generated on Sun May 20 15:47:56 2007 by  doxygen 1.5.2