40 const std::string& url,
RerrMsg& emsg)
44 if (scheme.length() == 0) {
45 emsg.
Init(
"RlinkPortFactory::New()",
46 string(
"no scheme specified in url '" + url +
"'"));
50 if (scheme ==
"fifo") {
52 }
else if (scheme ==
"term") {
54 }
else if (scheme ==
"cuff") {
58 emsg.
Init(
"RlinkPortFactory::New()",
string(
"unknown scheme: ") + scheme);
66 const std::string& url,
RerrMsg& emsg)
68 auto upport =
New(url, emsg);
70 if (!(upport->Open(url, emsg))) upport.reset();
void Init(const std::string &meth, const std::string &text)
FIXME_docs.
static RlinkPort::port_uptr_t Open(const std::string &url, RerrMsg &emsg)
FIXME_docs.
static RlinkPort::port_uptr_t New(const std::string &url, RerrMsg &emsg)
FIXME_docs.
std::unique_ptr< RlinkPort > port_uptr_t
static std::string FindScheme(const std::string &url, const std::string &def="")
FIXME_docs.
Declaration of class ReventLoop.