Line 1... |
Line 1... |
// $Id: RlinkPortFactory.cpp 492 2013-02-24 22:14:47Z mueller $
|
// $Id: RlinkPortFactory.cpp 516 2013-05-05 21:24:52Z mueller $
|
//
|
//
|
// Copyright 2011-2013 by Walter F.J. Mueller <W.F.J.Mueller@gsi.de>
|
// Copyright 2011-2013 by Walter F.J. Mueller <W.F.J.Mueller@gsi.de>
|
//
|
//
|
// This program is free software; you may redistribute and/or modify it under
|
// This program is free software; you may redistribute and/or modify it under
|
// the terms of the GNU General Public License as published by the Free
|
// the terms of the GNU General Public License as published by the Free
|
Line 19... |
Line 19... |
// 2011-01-15 356 0.1 First draft
|
// 2011-01-15 356 0.1 First draft
|
// ---------------------------------------------------------------------------
|
// ---------------------------------------------------------------------------
|
|
|
/*!
|
/*!
|
\file
|
\file
|
\version $Id: RlinkPortFactory.cpp 492 2013-02-24 22:14:47Z mueller $
|
\version $Id: RlinkPortFactory.cpp 516 2013-05-05 21:24:52Z mueller $
|
\brief Implemenation of RlinkPortFactory.
|
\brief Implemenation of RlinkPortFactory.
|
*/
|
*/
|
|
|
#include "librtools/RparseUrl.hpp"
|
#include "librtools/RparseUrl.hpp"
|
|
|
Line 50... |
Line 50... |
{
|
{
|
string scheme = RparseUrl::FindScheme(url);
|
string scheme = RparseUrl::FindScheme(url);
|
|
|
if (scheme.length() == 0) {
|
if (scheme.length() == 0) {
|
emsg.Init("RlinkPortFactory::New()",
|
emsg.Init("RlinkPortFactory::New()",
|
string("no scheme specified in url '" + url + string("'")));
|
string("no scheme specified in url '" + url + "'"));
|
return 0;
|
return 0;
|
}
|
}
|
|
|
if (scheme == "fifo") {
|
if (scheme == "fifo") {
|
return new RlinkPortFifo();
|
return new RlinkPortFifo();
|