#include <Url.h>

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 |
Class base::Url supports following format: [protocol://][hostname[:port]][/filename.ext][?options]
Definition at line 11 of file Url.h.
| base::Url::Url | ( | const std::string & | url | ) |
| 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] |
Definition at line 36 of file Url.h.
References fHostName.
Referenced by roc::Factory::DoConnect(), roc::AbbDevice::GetOpticPath(), roc::Board::IsOpticAddress(), and roc::Board::IsUdpAddress().
| 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] |
| 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] |
| std::string base::Url::GetPortStr | ( | ) | const |
| std::string base::Url::GetProtocol | ( | ) | const [inline] |
Definition at line 35 of file Url.h.
References fProtocol.
Referenced by roc::AbbDevice::GetOpticPath(), roc::Board::IsLmdFileAddress(), roc::Board::IsOpticAddress(), and roc::Board::IsUdpAddress().
| std::string base::Url::GetUrl | ( | ) | const [inline] |
| 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] |
Definition at line 33 of file Url.h.
References fValid.
Referenced by roc::Factory::DoConnect(), roc::AbbFactory::DoConnect(), roc::Board::IsLmdFileAddress(), and roc::Board::IsUdpAddress().
| void base::Url::Reset | ( | ) |
| bool base::Url::SetUrl | ( | const std::string & | url, | |
| bool | showerr = true | |||
| ) |
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] |
std::string base::Url::fUrl [protected] |
bool base::Url::fValid [protected] |
1.7.1