Pothos  0.4.0-gd11861cd
The Pothos dataflow programming software suite
 All Classes Namespaces Files Functions Variables Typedefs Friends Macros Pages
CallRegistry.hpp
Go to the documentation of this file.
1 
11 #pragma once
12 #include <Pothos/Config.hpp>
14 #include <string>
15 
16 namespace Pothos {
17 
22 {
23 public:
24 
26  virtual ~CallRegistry(void);
27 
32  template <typename... ArgsType, typename ReturnType, typename ClassType, typename InstanceType>
33  void registerCall(InstanceType *instance, const std::string &name, ReturnType(ClassType::*method)(ArgsType...));
34 
39  template <typename... ArgsType, typename ReturnType, typename ClassType, typename InstanceType>
40  void registerCall(InstanceType *instance, const std::string &name, ReturnType(ClassType::*method)(ArgsType...) const);
41 
46  virtual void registerCallable(const std::string &name, const Callable &call) = 0;
47 };
48 
49 } //namespace Pothos
#define POTHOS_API
Definition: Config.hpp:41
Definition: CallRegistry.hpp:21
Definition: Callable.hpp:30