cxxtools::ServiceRegistry Class Reference

#include <cxxtools/serviceregistry.h>

Inheritance diagram for cxxtools::ServiceRegistry:
cxxtools::bin::RpcServer cxxtools::json::HttpService cxxtools::json::RpcServer cxxtools::xmlrpc::Service

Public Member Functions

 ServiceRegistry ()
 ~ServiceRegistry ()
template<typename R >
void registerFunction (const std::string &name, R(*fn)())
template<typename R , typename A1 >
void registerFunction (const std::string &name, R(*fn)(A1))
template<typename R , typename A1 , typename A2 >
void registerFunction (const std::string &name, R(*fn)(A1, A2))
template<typename R , typename A1 , typename A2 , typename A3 >
void registerFunction (const std::string &name, R(*fn)(A1, A2, A3))
template<typename R , typename A1 , typename A2 , typename A3 , typename A4 >
void registerFunction (const std::string &name, R(*fn)(A1, A2, A3, A4))
template<typename R , typename A1 , typename A2 , typename A3 , typename A4 , typename A5 >
void registerFunction (const std::string &name, R(*fn)(A1, A2, A3, A4, A5))
template<typename R , typename A1 , typename A2 , typename A3 , typename A4 , typename A5 , typename A6 >
void registerFunction (const std::string &name, R(*fn)(A1, A2, A3, A4, A5, A6))
template<typename R , typename A1 , typename A2 , typename A3 , typename A4 , typename A5 , typename A6 , typename A7 >
void registerFunction (const std::string &name, R(*fn)(A1, A2, A3, A4, A5, A6, A7))
template<typename R , typename A1 , typename A2 , typename A3 , typename A4 , typename A5 , typename A6 , typename A7 , typename A8 >
void registerFunction (const std::string &name, R(*fn)(A1, A2, A3, A4, A5, A6, A7, A8))
template<typename R , typename A1 , typename A2 , typename A3 , typename A4 , typename A5 , typename A6 , typename A7 , typename A8 , typename A9 >
void registerFunction (const std::string &name, R(*fn)(A1, A2, A3, A4, A5, A6, A7, A8, A9))
template<typename R , typename A1 , typename A2 , typename A3 , typename A4 , typename A5 , typename A6 , typename A7 , typename A8 , typename A9 , typename A10 >
void registerFunction (const std::string &name, R(*fn)(A1, A2, A3, A4, A5, A6, A7, A8, A9, A10))
template<typename R >
void registerCallable (const std::string &name, const Callable< R > &cb)
template<typename R , typename A1 >
void registerCallable (const std::string &name, const Callable< R, A1 > &cb)
template<typename R , typename A1 , typename A2 >
void registerCallable (const std::string &name, const Callable< R, A1, A2 > &cb)
template<typename R , typename A1 , typename A2 , typename A3 >
void registerCallable (const std::string &name, const Callable< R, A1, A2, A3 > &cb)
template<typename R , typename A1 , typename A2 , typename A3 , typename A4 >
void registerCallable (const std::string &name, const Callable< R, A1, A2, A3, A4 > &cb)
template<typename R , typename A1 , typename A2 , typename A3 , typename A4 , typename A5 >
void registerCallable (const std::string &name, const Callable< R, A1, A2, A3, A4, A5 > &cb)
template<typename R , typename A1 , typename A2 , typename A3 , typename A4 , typename A5 , typename A6 >
void registerCallable (const std::string &name, const Callable< R, A1, A2, A3, A4, A5, A6 > &cb)
template<typename R , typename A1 , typename A2 , typename A3 , typename A4 , typename A5 , typename A6 , typename A7 >
void registerCallable (const std::string &name, const Callable< R, A1, A2, A3, A4, A5, A6, A7 > &cb)
template<typename R , typename A1 , typename A2 , typename A3 , typename A4 , typename A5 , typename A6 , typename A7 , typename A8 >
void registerCallable (const std::string &name, const Callable< R, A1, A2, A3, A4, A5, A6, A7, A8 > &cb)
template<typename R , typename A1 , typename A2 , typename A3 , typename A4 , typename A5 , typename A6 , typename A7 , typename A8 , typename A9 >
void registerCallable (const std::string &name, const Callable< R, A1, A2, A3, A4, A5, A6, A7, A8, A9 > &cb)
template<typename R , typename A1 , typename A2 , typename A3 , typename A4 , typename A5 , typename A6 , typename A7 , typename A8 , typename A9 , typename A10 >
void registerCallable (const std::string &name, const Callable< R, A1, A2, A3, A4, A5, A6, A7, A8, A9, A10 > &cb)
template<typename R , class C >
void registerMethod (const std::string &name, C &obj, R(C::*method)())
template<typename R , class C , typename A1 >
void registerMethod (const std::string &name, C &obj, R(C::*method)(A1))
template<typename R , class C , typename A1 , typename A2 >
void registerMethod (const std::string &name, C &obj, R(C::*method)(A1, A2))
template<typename R , class C , typename A1 , typename A2 , typename A3 >
void registerMethod (const std::string &name, C &obj, R(C::*method)(A1, A2, A3))
template<typename R , class C , typename A1 , typename A2 , typename A3 , typename A4 >
void registerMethod (const std::string &name, C &obj, R(C::*method)(A1, A2, A3, A4))
template<typename R , class C , typename A1 , typename A2 , typename A3 , typename A4 , typename A5 >
void registerMethod (const std::string &name, C &obj, R(C::*method)(A1, A2, A3, A4, A5))
template<typename R , class C , typename A1 , typename A2 , typename A3 , typename A4 , typename A5 , typename A6 >
void registerMethod (const std::string &name, C &obj, R(C::*method)(A1, A2, A3, A4, A5, A6))
template<typename R , class C , typename A1 , typename A2 , typename A3 , typename A4 , typename A5 , typename A6 , typename A7 >
void registerMethod (const std::string &name, C &obj, R(C::*method)(A1, A2, A3, A4, A5, A6, A7))
template<typename R , class C , typename A1 , typename A2 , typename A3 , typename A4 , typename A5 , typename A6 , typename A7 , typename A8 >
void registerMethod (const std::string &name, C &obj, R(C::*method)(A1, A2, A3, A4, A5, A6, A7, A8))
template<typename R , class C , typename A1 , typename A2 , typename A3 , typename A4 , typename A5 , typename A6 , typename A7 , typename A8 , typename A9 >
void registerMethod (const std::string &name, C &obj, R(C::*method)(A1, A2, A3, A4, A5, A6, A7, A8, A9))
template<typename R , class C , typename A1 , typename A2 , typename A3 , typename A4 , typename A5 , typename A6 , typename A7 , typename A8 , typename A9 , typename A10 >
void registerMethod (const std::string &name, C &obj, R(C::*method)(A1, A2, A3, A4, A5, A6, A7, A8, A9, A10))
ServiceProceduregetProcedure (const std::string &name) const
void releaseProcedure (ServiceProcedure *proc) const
std::vector< std::string > getProcedureNames () const

Protected Member Functions

void registerProcedure (const std::string &name, ServiceProcedure *proc)

Constructor & Destructor Documentation

cxxtools::ServiceRegistry::ServiceRegistry ( )
inline
cxxtools::ServiceRegistry::~ServiceRegistry ( )

Member Function Documentation

ServiceProcedure* cxxtools::ServiceRegistry::getProcedure ( const std::string &  name) const
std::vector<std::string> cxxtools::ServiceRegistry::getProcedureNames ( ) const
template<typename R >
void cxxtools::ServiceRegistry::registerCallable ( const std::string &  name,
const Callable< R > &  cb 
)
inline
template<typename R , typename A1 >
void cxxtools::ServiceRegistry::registerCallable ( const std::string &  name,
const Callable< R, A1 > &  cb 
)
inline
template<typename R , typename A1 , typename A2 >
void cxxtools::ServiceRegistry::registerCallable ( const std::string &  name,
const Callable< R, A1, A2 > &  cb 
)
inline
template<typename R , typename A1 , typename A2 , typename A3 >
void cxxtools::ServiceRegistry::registerCallable ( const std::string &  name,
const Callable< R, A1, A2, A3 > &  cb 
)
inline
template<typename R , typename A1 , typename A2 , typename A3 , typename A4 >
void cxxtools::ServiceRegistry::registerCallable ( const std::string &  name,
const Callable< R, A1, A2, A3, A4 > &  cb 
)
inline
template<typename R , typename A1 , typename A2 , typename A3 , typename A4 , typename A5 >
void cxxtools::ServiceRegistry::registerCallable ( const std::string &  name,
const Callable< R, A1, A2, A3, A4, A5 > &  cb 
)
inline
template<typename R , typename A1 , typename A2 , typename A3 , typename A4 , typename A5 , typename A6 >
void cxxtools::ServiceRegistry::registerCallable ( const std::string &  name,
const Callable< R, A1, A2, A3, A4, A5, A6 > &  cb 
)
inline
template<typename R , typename A1 , typename A2 , typename A3 , typename A4 , typename A5 , typename A6 , typename A7 >
void cxxtools::ServiceRegistry::registerCallable ( const std::string &  name,
const Callable< R, A1, A2, A3, A4, A5, A6, A7 > &  cb 
)
inline
template<typename R , typename A1 , typename A2 , typename A3 , typename A4 , typename A5 , typename A6 , typename A7 , typename A8 >
void cxxtools::ServiceRegistry::registerCallable ( const std::string &  name,
const Callable< R, A1, A2, A3, A4, A5, A6, A7, A8 > &  cb 
)
inline
template<typename R , typename A1 , typename A2 , typename A3 , typename A4 , typename A5 , typename A6 , typename A7 , typename A8 , typename A9 >
void cxxtools::ServiceRegistry::registerCallable ( const std::string &  name,
const Callable< R, A1, A2, A3, A4, A5, A6, A7, A8, A9 > &  cb 
)
inline
template<typename R , typename A1 , typename A2 , typename A3 , typename A4 , typename A5 , typename A6 , typename A7 , typename A8 , typename A9 , typename A10 >
void cxxtools::ServiceRegistry::registerCallable ( const std::string &  name,
const Callable< R, A1, A2, A3, A4, A5, A6, A7, A8, A9, A10 > &  cb 
)
inline
template<typename R >
void cxxtools::ServiceRegistry::registerFunction ( const std::string &  name,
R(*)()  fn 
)
inline
template<typename R , typename A1 >
void cxxtools::ServiceRegistry::registerFunction ( const std::string &  name,
R(*)(A1)  fn 
)
inline
template<typename R , typename A1 , typename A2 >
void cxxtools::ServiceRegistry::registerFunction ( const std::string &  name,
R(*)(A1, A2)  fn 
)
inline
template<typename R , typename A1 , typename A2 , typename A3 >
void cxxtools::ServiceRegistry::registerFunction ( const std::string &  name,
R(*)(A1, A2, A3)  fn 
)
inline
template<typename R , typename A1 , typename A2 , typename A3 , typename A4 >
void cxxtools::ServiceRegistry::registerFunction ( const std::string &  name,
R(*)(A1, A2, A3, A4)  fn 
)
inline
template<typename R , typename A1 , typename A2 , typename A3 , typename A4 , typename A5 >
void cxxtools::ServiceRegistry::registerFunction ( const std::string &  name,
R(*)(A1, A2, A3, A4, A5)  fn 
)
inline
template<typename R , typename A1 , typename A2 , typename A3 , typename A4 , typename A5 , typename A6 >
void cxxtools::ServiceRegistry::registerFunction ( const std::string &  name,
R(*)(A1, A2, A3, A4, A5, A6)  fn 
)
inline
template<typename R , typename A1 , typename A2 , typename A3 , typename A4 , typename A5 , typename A6 , typename A7 >
void cxxtools::ServiceRegistry::registerFunction ( const std::string &  name,
R(*)(A1, A2, A3, A4, A5, A6, A7)  fn 
)
inline
template<typename R , typename A1 , typename A2 , typename A3 , typename A4 , typename A5 , typename A6 , typename A7 , typename A8 >
void cxxtools::ServiceRegistry::registerFunction ( const std::string &  name,
R(*)(A1, A2, A3, A4, A5, A6, A7, A8)  fn 
)
inline
template<typename R , typename A1 , typename A2 , typename A3 , typename A4 , typename A5 , typename A6 , typename A7 , typename A8 , typename A9 >
void cxxtools::ServiceRegistry::registerFunction ( const std::string &  name,
R(*)(A1, A2, A3, A4, A5, A6, A7, A8, A9)  fn 
)
inline
template<typename R , typename A1 , typename A2 , typename A3 , typename A4 , typename A5 , typename A6 , typename A7 , typename A8 , typename A9 , typename A10 >
void cxxtools::ServiceRegistry::registerFunction ( const std::string &  name,
R(*)(A1, A2, A3, A4, A5, A6, A7, A8, A9, A10)  fn 
)
inline
template<typename R , class C >
void cxxtools::ServiceRegistry::registerMethod ( const std::string &  name,
C &  obj,
R(C::*)()  method 
)
inline
template<typename R , class C , typename A1 >
void cxxtools::ServiceRegistry::registerMethod ( const std::string &  name,
C &  obj,
R(C::*)(A1)  method 
)
inline
template<typename R , class C , typename A1 , typename A2 >
void cxxtools::ServiceRegistry::registerMethod ( const std::string &  name,
C &  obj,
R(C::*)(A1, A2)  method 
)
inline
template<typename R , class C , typename A1 , typename A2 , typename A3 >
void cxxtools::ServiceRegistry::registerMethod ( const std::string &  name,
C &  obj,
R(C::*)(A1, A2, A3)  method 
)
inline
template<typename R , class C , typename A1 , typename A2 , typename A3 , typename A4 >
void cxxtools::ServiceRegistry::registerMethod ( const std::string &  name,
C &  obj,
R(C::*)(A1, A2, A3, A4)  method 
)
inline
template<typename R , class C , typename A1 , typename A2 , typename A3 , typename A4 , typename A5 >
void cxxtools::ServiceRegistry::registerMethod ( const std::string &  name,
C &  obj,
R(C::*)(A1, A2, A3, A4, A5)  method 
)
inline
template<typename R , class C , typename A1 , typename A2 , typename A3 , typename A4 , typename A5 , typename A6 >
void cxxtools::ServiceRegistry::registerMethod ( const std::string &  name,
C &  obj,
R(C::*)(A1, A2, A3, A4, A5, A6)  method 
)
inline
template<typename R , class C , typename A1 , typename A2 , typename A3 , typename A4 , typename A5 , typename A6 , typename A7 >
void cxxtools::ServiceRegistry::registerMethod ( const std::string &  name,
C &  obj,
R(C::*)(A1, A2, A3, A4, A5, A6, A7)  method 
)
inline
template<typename R , class C , typename A1 , typename A2 , typename A3 , typename A4 , typename A5 , typename A6 , typename A7 , typename A8 >
void cxxtools::ServiceRegistry::registerMethod ( const std::string &  name,
C &  obj,
R(C::*)(A1, A2, A3, A4, A5, A6, A7, A8)  method 
)
inline
template<typename R , class C , typename A1 , typename A2 , typename A3 , typename A4 , typename A5 , typename A6 , typename A7 , typename A8 , typename A9 >
void cxxtools::ServiceRegistry::registerMethod ( const std::string &  name,
C &  obj,
R(C::*)(A1, A2, A3, A4, A5, A6, A7, A8, A9)  method 
)
inline
template<typename R , class C , typename A1 , typename A2 , typename A3 , typename A4 , typename A5 , typename A6 , typename A7 , typename A8 , typename A9 , typename A10 >
void cxxtools::ServiceRegistry::registerMethod ( const std::string &  name,
C &  obj,
R(C::*)(A1, A2, A3, A4, A5, A6, A7, A8, A9, A10)  method 
)
inline
void cxxtools::ServiceRegistry::registerProcedure ( const std::string &  name,
ServiceProcedure proc 
)
protected
void cxxtools::ServiceRegistry::releaseProcedure ( ServiceProcedure proc) const

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