Public Member Functions | Protected Member Functions | Protected Attributes

base::Url Class Reference

#include <Url.h>

Collaboration diagram for base::Url:
Collaboration graph
[legend]

Public Member Functions

 Url ()
 Url (const char *url)
 Url (const std::string &url)
virtual ~Url ()
void Reset ()
bool SetUrl (const std::string &url, bool showerr=true)
std::string GetUrl () const
bool IsValid () const
std::string GetProtocol () const
std::string GetHostName () const
int GetPort () const
std::string GetPortStr () const
std::string GetFileName () const
std::string GetFullName () const
std::string GetOptions () const
bool HasOption (const std::string &optname) const
std::string GetOptionValue (const std::string &optname) const

Protected Member Functions

bool GetOption (const std::string &optname, std::string *value=0) const

Protected Attributes

std::string fUrl
bool fValid
std::string fProtocol
std::string fHostName
int fPort
std::string fFileName
std::string fOptions

Detailed Description

Class base::Url supports following format: [protocol://][hostname[:port]][/filename.ext][?options]

Definition at line 11 of file Url.h.


Constructor & Destructor Documentation

base::Url::Url (  ) 

Definition at line 6 of file Url.cxx.

References SetUrl().

base::Url::Url ( const char *  url  ) 

Definition at line 11 of file Url.cxx.

References SetUrl().

base::Url::Url ( const std::string &  url  ) 

Definition at line 16 of file Url.cxx.

References SetUrl().

base::Url::~Url (  )  [virtual]

Definition at line 21 of file Url.cxx.


Member Function Documentation

std::string base::Url::GetFileName (  )  const [inline]

Definition at line 39 of file Url.h.

References fFileName.

Referenced by roc::AbbFactory::DoConnect().

std::string base::Url::GetFullName (  )  const

Definition at line 84 of file Url.cxx.

References fFileName, and fHostName.

Referenced by roc::Factory::DoConnect(), and roc::Board::IsLmdFileAddress().

std::string base::Url::GetHostName (  )  const [inline]
bool base::Url::GetOption ( const std::string &  optname,
std::string *  value = 0 
) const [protected]

Definition at line 105 of file Url.cxx.

References fOptions.

Referenced by GetOptionValue(), and HasOption().

std::string base::Url::GetOptions (  )  const [inline]

Definition at line 42 of file Url.h.

References fOptions.

std::string base::Url::GetOptionValue ( const std::string &  optname  )  const

Definition at line 146 of file Url.cxx.

References GetOption().

Referenced by roc::Factory::DoConnect().

int base::Url::GetPort (  )  const [inline]

Definition at line 37 of file Url.h.

References fPort.

Referenced by roc::Factory::DoConnect().

std::string base::Url::GetPortStr (  )  const

Definition at line 95 of file Url.cxx.

References fPort.

Referenced by roc::Factory::DoConnect().

std::string base::Url::GetProtocol (  )  const [inline]
std::string base::Url::GetUrl (  )  const [inline]

Definition at line 32 of file Url.h.

References fUrl.

bool base::Url::HasOption ( const std::string &  optname  )  const [inline]

Definition at line 43 of file Url.h.

References GetOption().

Referenced by roc::Factory::DoConnect(), and roc::AbbFactory::DoConnect().

bool base::Url::IsValid (  )  const [inline]
void base::Url::Reset (  ) 
bool base::Url::SetUrl ( const std::string &  url,
bool  showerr = true 
)

Definition at line 25 of file Url.cxx.

References fFileName, fHostName, fOptions, fPort, fProtocol, fUrl, and fValid.

Referenced by Url().


Field Documentation

std::string base::Url::fFileName [protected]

Definition at line 18 of file Url.h.

Referenced by GetFileName(), GetFullName(), and SetUrl().

std::string base::Url::fHostName [protected]

Definition at line 16 of file Url.h.

Referenced by GetFullName(), GetHostName(), and SetUrl().

std::string base::Url::fOptions [protected]

Definition at line 19 of file Url.h.

Referenced by GetOption(), GetOptions(), and SetUrl().

int base::Url::fPort [protected]

Definition at line 17 of file Url.h.

Referenced by GetPort(), GetPortStr(), and SetUrl().

std::string base::Url::fProtocol [protected]

Is URL valid

Definition at line 15 of file Url.h.

Referenced by GetProtocol(), and SetUrl().

std::string base::Url::fUrl [protected]

Definition at line 13 of file Url.h.

Referenced by GetUrl(), and SetUrl().

bool base::Url::fValid [protected]

Full URL

Definition at line 14 of file Url.h.

Referenced by IsValid(), and SetUrl().


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