Pothos  0.4.3-gabce2ce6
The Pothos dataflow programming software suite
BlockRegistryImpl.hpp
Go to the documentation of this file.
1 
11 #pragma once
13 #include <Pothos/Proxy.hpp>
14 #include <utility> //std::forward
15 
16 template <typename... ArgsType>
17 Pothos::Proxy Pothos::BlockRegistry::make(const std::string &path, ArgsType&&... args)
18 {
19  auto env = Pothos::ProxyEnvironment::make("managed");
20  auto registry = env->findProxy("Pothos/BlockRegistry");
21  return registry.callProxy(path, std::forward<ArgsType>(args)...);
22 }
static Proxy make(const std::string &path, ArgsType &&...args)
static Sptr make(const std::string &name, const ProxyEnvironmentArgs &args=ProxyEnvironmentArgs())
Definition: Proxy.hpp:28