43 bool GetOption(
const std::string &optname,
int optionnumber = -1, std::string *value =
nullptr)
const;
48 Url(
const std::string &url);
52 bool SetUrl(
const std::string &url,
bool showerr =
true);
71 std::string
GetOptionStr(
const std::string &optname,
const std::string &dflt =
"")
const;
72 int GetOptionInt(
const std::string &optname,
int dflt = 0)
const;
73 double GetOptionDouble(
const std::string &optname,
double dflt = 0.)
const;
74 bool GetOptionBool(
const std::string &optname,
bool dflt =
false)
const;
77 static std::string
ComposeItemName(
int nodeid,
const std::string &itemname =
"");
83 static std::string
ComposePortName(
int nodeid,
const std::string &fullportname,
int portid = -1);
86 static bool DecomposeItemName(
const std::string &url,
int& nodeid, std::string& itemtname);
Uniform Resource Locator interpreter.
std::string fFileName
file name
std::string fUrl
Full URL.
std::string GetOptionsPart(int number=0) const
std::string fHostName
host name
std::string GetOptionStr(const std::string &optname, const std::string &dflt="") const
bool SetUrl(const std::string &url, bool showerr=true)
std::string GetFullName() const
bool GetOptionBool(const std::string &optname, bool dflt=false) const
std::string GetFileName() const
bool HasOption(const std::string &optname) const
int GetOptionInt(const std::string &optname, int dflt=0) const
std::string fOptions
list of options
std::string GetHostName() const
std::string GetProtocol() const
std::string GetPortStr() const
std::string fProtocol
protocol
static void ReplaceSpecialSymbols(std::string &opt)
!
std::string GetHostNameWithPort(int dfltport=0) const
static bool DecomposeItemName(const std::string &url, int &nodeid, std::string &itemtname)
Method decompose from url nodeid and full item name, which includes all parents.
std::string GetOptions() const
double GetOptionDouble(const std::string &optname, double dflt=0.) const
void SetOptions(const std::string &opt)
Method allows to set URL options directly to be able use all Get methods.
bool GetOption(const std::string &optname, int optionnumber=-1, std::string *value=nullptr) const
std::string GetUrl() const
static std::string ComposeItemName(int nodeid, const std::string &itemname="")
!
static std::string ComposePortName(int nodeid, const std::string &fullportname, int portid=-1)
! Method creates url string with port address, which includes nodeid and full portname If optional pa...