w11 - cpp 0.794
Backend server for Rlink and w11
|
FIXME_docs. More...
#include <RparseUrl.hpp>
Public Types | |
typedef std::map< std::string, std::string > | omap_t |
Public Member Functions | |
RparseUrl () | |
Default constructor. | |
virtual | ~RparseUrl () |
Destructor. | |
bool | Set (const std::string &url, const std::string &optlist, RerrMsg &emsg) |
FIXME_docs. | |
bool | Set (const std::string &url, const std::string &optlist, const std::string &scheme, RerrMsg &emsg) |
FIXME_docs. | |
void | SetPath (const std::string &path) |
FIXME_docs. | |
void | Clear () |
FIXME_docs. | |
const std::string & | Url () const |
FIXME_docs. | |
const std::string & | Scheme () const |
FIXME_docs. | |
const std::string & | Path () const |
FIXME_docs. | |
std::string | DirName () const |
FIXME_docs. | |
std::string | FileName () const |
FIXME_docs. | |
std::string | FileStem () const |
FIXME_docs. | |
std::string | FileType () const |
FIXME_docs. | |
const omap_t & | Opts () const |
FIXME_docs. | |
bool | FindOpt (const std::string &name) const |
FIXME_docs. | |
bool | FindOpt (const std::string &name, std::string &value) const |
FIXME_docs. | |
virtual void | Dump (std::ostream &os, int ind=0, const char *text=0) const |
FIXME_docs. | |
Static Public Member Functions | |
static std::string | FindScheme (const std::string &url, const std::string &def="") |
FIXME_docs. | |
Protected Member Functions | |
bool | AddOpt (const std::string &key, const std::string &val, bool hasval, const std::string &optlist, RerrMsg &emsg) |
FIXME_docs. | |
Protected Attributes | |
std::string | fUrl |
full url given with open | |
std::string | fScheme |
url scheme part | |
std::string | fPath |
url path part | |
omap_t | fOptMap |
option map | |
FIXME_docs.
Definition at line 27 of file RparseUrl.hpp.
typedef std::map<std::string, std::string> Retro::RparseUrl::omap_t |
Definition at line 29 of file RparseUrl.hpp.
Retro::RparseUrl::RparseUrl | ( | ) |
Default constructor.
Definition at line 39 of file RparseUrl.cpp.
|
virtual |
Destructor.
Definition at line 49 of file RparseUrl.cpp.
bool Retro::RparseUrl::Set | ( | const std::string & | url, |
const std::string & | optlist, | ||
RerrMsg & | emsg | ||
) |
FIXME_docs.
Definition at line 55 of file RparseUrl.cpp.
References AddOpt(), FindScheme(), fOptMap, fPath, fScheme, fUrl, and Retro::RerrMsg::Init().
Referenced by Retro::Rw11VirtDiskFile::Open(), Retro::Rw11VirtDiskRam::Open(), Retro::RlinkPortCuff::Open(), Retro::RlinkPortFifo::Open(), Retro::RlinkPortTerm::Open(), Retro::Rw11VirtEthTap::Open(), Retro::Rw11VirtStream::Open(), Retro::Rw11VirtTapeTap::Open(), Retro::Rw11VirtTermPty::Open(), Retro::Rw11VirtTermTcp::Open(), Set(), and Retro::Rw11UnitTerm::SetLog().
bool Retro::RparseUrl::Set | ( | const std::string & | url, |
const std::string & | optlist, | ||
const std::string & | scheme, | ||
RerrMsg & | emsg | ||
) |
|
inline |
FIXME_docs.
Definition at line 20 of file RparseUrl.ipp.
References fPath.
Referenced by Retro::RlinkPortCuff::Open(), and Retro::RlinkPortTerm::Open().
void Retro::RparseUrl::Clear | ( | ) |
FIXME_docs.
Definition at line 144 of file RparseUrl.cpp.
References fOptMap, fPath, fScheme, and fUrl.
Referenced by Retro::RlinkPort::Close().
|
inline |
FIXME_docs.
Definition at line 29 of file RparseUrl.ipp.
References fUrl.
Referenced by Retro::Rw11Unit::AttachUrl(), and Retro::RtclRlinkConnect::M_open().
|
inline |
|
inline |
FIXME_docs.
Definition at line 45 of file RparseUrl.ipp.
References fPath.
Referenced by Retro::Rtools::CreateBackupFile(), Retro::Rw11VirtDiskFile::Open(), Retro::RlinkPortCuff::Open(), Retro::RlinkPortFifo::Open(), Retro::RlinkPortTerm::Open(), Retro::Rw11VirtEthTap::Open(), Retro::Rw11VirtStream::Open(), Retro::Rw11VirtTapeTap::Open(), Retro::Rw11VirtDiskRam::ReadPattern(), and Retro::Rw11UnitTerm::SetLog().
std::string Retro::RparseUrl::DirName | ( | ) | const |
std::string Retro::RparseUrl::FileName | ( | ) | const |
FIXME_docs.
Definition at line 165 of file RparseUrl.cpp.
References fPath.
Referenced by FileStem(), and FileType().
std::string Retro::RparseUrl::FileStem | ( | ) | const |
std::string Retro::RparseUrl::FileType | ( | ) | const |
|
inline |
bool Retro::RparseUrl::FindOpt | ( | const std::string & | name | ) | const |
FIXME_docs.
Definition at line 196 of file RparseUrl.cpp.
References fOptMap.
Referenced by Retro::Rtools::CreateBackupFile(), Retro::Rw11VirtDiskFile::Open(), Retro::Rw11VirtDiskRam::Open(), Retro::RlinkPortFifo::Open(), Retro::RlinkPortTerm::Open(), Retro::Rw11VirtStream::Open(), Retro::Rw11VirtTapeTap::Open(), Retro::Rw11VirtTermTcp::Open(), Retro::Rw11UnitTerm::SetLog(), and Retro::RlinkPortCuff::TraceOn().
bool Retro::RparseUrl::FindOpt | ( | const std::string & | name, |
std::string & | value | ||
) | const |
|
virtual |
FIXME_docs.
Definition at line 219 of file RparseUrl.cpp.
References fOptMap, fPath, fScheme, fUrl, and Retro::RosPrintf().
Referenced by Retro::RlinkPort::Dump(), and Retro::Rw11Virt::Dump().
|
static |
FIXME_docs.
Definition at line 238 of file RparseUrl.cpp.
Referenced by Retro::RlinkPortFactory::New(), Retro::Rw11VirtDisk::New(), Retro::Rw11VirtEth::New(), Retro::Rw11VirtTape::New(), Retro::Rw11VirtTerm::New(), and Set().
|
protected |
FIXME_docs.
Definition at line 257 of file RparseUrl.cpp.
References fOptMap, and Retro::RerrMsg::Init().
Referenced by Set().
|
protected |
|
protected |
|
protected |
url path part
Definition at line 67 of file RparseUrl.hpp.
Referenced by Clear(), DirName(), Dump(), FileName(), Path(), Set(), and SetPath().
|
protected |