Pothos  0.7.0-gf7fbae99
The Pothos dataflow programming software suite
Client.hpp
Go to the documentation of this file.
1 
11 #pragma once
12 #include <Pothos/Config.hpp>
15 #include <memory>
16 #include <string>
17 #include <iosfwd>
18 
19 namespace Pothos {
20 
26 {
27 public:
28 
30  RemoteClient(void);
31 
39  RemoteClient(const std::string &uri, const long timeoutUs = 100000);
40 
42  const std::string &getUri(void) const;
43 
45  explicit operator bool(void) const;
46 
51  std::iostream &getIoStream(void) const;
52 
56  ProxyEnvironment::Sptr makeEnvironment(const std::string &name, const ProxyEnvironmentArgs &args = ProxyEnvironmentArgs());
57 
62  static ProxyEnvironment::Sptr makeEnvironment(std::istream &is, std::ostream &os,
63  const std::string &name, const ProxyEnvironmentArgs &args = ProxyEnvironmentArgs());
64 
69  static ProxyEnvironment::Sptr makeEnvironment(std::iostream &io,
70  const std::string &name, const ProxyEnvironmentArgs &args = ProxyEnvironmentArgs());
71 
78  static std::string lookupIpFromNodeId(const std::string nodeId);
79 
80 private:
81  struct Impl;
82  std::shared_ptr<Impl> _impl;
83 };
84 
85 } //namespace Pothos
#define POTHOS_API
Definition: Config.hpp:41
Definition: ArchiveEntry.hpp:20
std::shared_ptr< ProxyEnvironment > Sptr
Definition: Environment.hpp:46
Definition: RefHolder.hpp:24
std::map< std::string, std::string > ProxyEnvironmentArgs
Definition: Environment.hpp:26
Definition: Client.hpp:25