w11 - cpp 0.794
Backend server for Rlink and w11
Loading...
Searching...
No Matches
Retro::RparseUrl Class Reference

FIXME_docs. More...

#include <RparseUrl.hpp>

Collaboration diagram for Retro::RparseUrl:
[legend]

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_tOpts () 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
 

Detailed Description

FIXME_docs.

Definition at line 27 of file RparseUrl.hpp.

Member Typedef Documentation

◆ omap_t

typedef std::map<std::string, std::string> Retro::RparseUrl::omap_t

Definition at line 29 of file RparseUrl.hpp.

Constructor & Destructor Documentation

◆ RparseUrl()

Retro::RparseUrl::RparseUrl ( )

Default constructor.

Definition at line 39 of file RparseUrl.cpp.

◆ ~RparseUrl()

Retro::RparseUrl::~RparseUrl ( )
virtual

Destructor.

Definition at line 49 of file RparseUrl.cpp.

Member Function Documentation

◆ Set() [1/2]

◆ Set() [2/2]

bool Retro::RparseUrl::Set ( const std::string &  url,
const std::string &  optlist,
const std::string &  scheme,
RerrMsg emsg 
)

FIXME_docs.

Definition at line 130 of file RparseUrl.cpp.

References FindScheme(), and Set().

◆ SetPath()

void Retro::RparseUrl::SetPath ( const std::string &  path)
inline

FIXME_docs.

Definition at line 20 of file RparseUrl.ipp.

References fPath.

Referenced by Retro::RlinkPortCuff::Open(), and Retro::RlinkPortTerm::Open().

◆ Clear()

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().

◆ Url()

const std::string & Retro::RparseUrl::Url ( ) const
inline

FIXME_docs.

Definition at line 29 of file RparseUrl.ipp.

References fUrl.

Referenced by Retro::Rw11Unit::AttachUrl(), and Retro::RtclRlinkConnect::M_open().

◆ Scheme()

const std::string & Retro::RparseUrl::Scheme ( ) const
inline

FIXME_docs.

Definition at line 37 of file RparseUrl.ipp.

References fScheme.

◆ Path()

◆ DirName()

std::string Retro::RparseUrl::DirName ( ) const

FIXME_docs.

Definition at line 156 of file RparseUrl.cpp.

References fPath.

◆ FileName()

std::string Retro::RparseUrl::FileName ( ) const

FIXME_docs.

Definition at line 165 of file RparseUrl.cpp.

References fPath.

Referenced by FileStem(), and FileType().

◆ FileStem()

std::string Retro::RparseUrl::FileStem ( ) const

FIXME_docs.

Definition at line 175 of file RparseUrl.cpp.

References FileName().

◆ FileType()

std::string Retro::RparseUrl::FileType ( ) const

FIXME_docs.

Definition at line 185 of file RparseUrl.cpp.

References FileName().

◆ Opts()

const RparseUrl::omap_t & Retro::RparseUrl::Opts ( ) const
inline

FIXME_docs.

Definition at line 53 of file RparseUrl.ipp.

References fOptMap.

◆ FindOpt() [1/2]

◆ FindOpt() [2/2]

bool Retro::RparseUrl::FindOpt ( const std::string &  name,
std::string &  value 
) const

FIXME_docs.

Definition at line 206 of file RparseUrl.cpp.

References fOptMap.

◆ Dump()

void Retro::RparseUrl::Dump ( std::ostream &  os,
int  ind = 0,
const char *  text = 0 
) 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().

◆ FindScheme()

std::string Retro::RparseUrl::FindScheme ( const std::string &  url,
const std::string &  def = "" 
)
static

◆ AddOpt()

bool Retro::RparseUrl::AddOpt ( const std::string &  key,
const std::string &  val,
bool  hasval,
const std::string &  optlist,
RerrMsg emsg 
)
protected

FIXME_docs.

Definition at line 257 of file RparseUrl.cpp.

References fOptMap, and Retro::RerrMsg::Init().

Referenced by Set().

Member Data Documentation

◆ fUrl

std::string Retro::RparseUrl::fUrl
protected

full url given with open

Definition at line 65 of file RparseUrl.hpp.

Referenced by Clear(), Dump(), Set(), and Url().

◆ fScheme

std::string Retro::RparseUrl::fScheme
protected

url scheme part

Definition at line 66 of file RparseUrl.hpp.

Referenced by Clear(), Dump(), Scheme(), and Set().

◆ fPath

std::string Retro::RparseUrl::fPath
protected

url path part

Definition at line 67 of file RparseUrl.hpp.

Referenced by Clear(), DirName(), Dump(), FileName(), Path(), Set(), and SetPath().

◆ fOptMap

omap_t Retro::RparseUrl::fOptMap
protected

option map

Definition at line 68 of file RparseUrl.hpp.

Referenced by AddOpt(), Clear(), Dump(), FindOpt(), Opts(), and Set().


The documentation for this class was generated from the following files: