Line 1... |
Line 1... |
// $Id: RlinkPort.hpp 380 2011-04-25 18:14:52Z mueller $
|
// $Id: RlinkPort.hpp 465 2012-12-27 21:29:38Z mueller $
|
//
|
//
|
// Copyright 2011- by Walter F.J. Mueller <W.F.J.Mueller@gsi.de>
|
// Copyright 2011- 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 11... |
Line 11... |
// or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
|
// or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
|
// for complete details.
|
// for complete details.
|
//
|
//
|
// Revision History:
|
// Revision History:
|
// Date Rev Version Comment
|
// Date Rev Version Comment
|
|
// 2012-12-26 465 1.0.2 add CloseFd() method
|
// 2011-04-24 380 1.0.1 use boost::noncopyable (instead of private dcl's)
|
// 2011-04-24 380 1.0.1 use boost::noncopyable (instead of private dcl's)
|
// 2011-03-27 375 1.0 Initial version
|
// 2011-03-27 375 1.0 Initial version
|
// 2011-01-15 356 0.1 First draft
|
// 2011-01-15 356 0.1 First draft
|
// ---------------------------------------------------------------------------
|
// ---------------------------------------------------------------------------
|
|
|
|
|
/*!
|
/*!
|
\file
|
\file
|
\version $Id: RlinkPort.hpp 380 2011-04-25 18:14:52Z mueller $
|
\version $Id: RlinkPort.hpp 465 2012-12-27 21:29:38Z mueller $
|
\brief Declaration of class RlinkPort.
|
\brief Declaration of class RlinkPort.
|
*/
|
*/
|
|
|
#ifndef included_Retro_RlinkPort
|
#ifndef included_Retro_RlinkPort
|
#define included_Retro_RlinkPort 1
|
#define included_Retro_RlinkPort 1
|
Line 95... |
Line 96... |
bool ParseUrl(const std::string& url, const std::string& optlist,
|
bool ParseUrl(const std::string& url, const std::string& optlist,
|
RerrMsg& emsg);
|
RerrMsg& emsg);
|
bool AddOpt(const std::string& key, const std::string& val,
|
bool AddOpt(const std::string& key, const std::string& val,
|
bool hasval, const std::string& optlist,
|
bool hasval, const std::string& optlist,
|
RerrMsg& emsg);
|
RerrMsg& emsg);
|
|
void CloseFd(int& fd);
|
|
|
protected:
|
protected:
|
bool fIsOpen; //!< is open flag
|
bool fIsOpen; //!< is open flag
|
std::string fUrl; //!< full url given with open
|
std::string fUrl; //!< full url given with open
|
std::string fScheme; //!< url scheme part
|
std::string fScheme; //!< url scheme part
|