xrootd
Main Page
Namespaces
Classes
Files
File List
File Members
src
XrdClient
XrdClientUrlInfo.hh
Go to the documentation of this file.
1
2
// //
3
// XrdClientUrlInfo //
4
// //
5
// Author: Fabrizio Furano (INFN Padova, 2004) //
6
// Adapted from TXNetFile (root.cern.ch) originally done by //
7
// Alvise Dorigo, Fabrizio Furano, INFN Padova, 2003 //
8
// Revised by G. Ganis, CERN, June 2005 //
9
// //
10
// Class handling information about an url //
11
// The purpose of this class is to allow: //
12
// - parsing a string url into its components //
13
// - reading/writing the single components //
14
// - reading the modified full url //
15
// //
17
18
// $Id$
19
20
#ifndef _XRC_URLINFO_H
21
#define _XRC_URLINFO_H
22
23
#include "
XrdOuc/XrdOucString.hh
"
24
25
//
26
// The information an url may contain
27
// Plus utilities for parsing and rebuilding an url
28
//
29
30
class
XrdClientUrlInfo
{
31
public
:
32
XrdOucString
Proto
;
33
XrdOucString
Passwd
;
34
XrdOucString
User
;
35
XrdOucString
Host
;
36
int
Port
;
37
XrdOucString
HostAddr
;
38
XrdOucString
HostWPort
;
39
XrdOucString
File
;
40
41
void
Clear
();
42
void
TakeUrl
(
XrdOucString
url);
43
XrdOucString
GetUrl
();
44
45
XrdClientUrlInfo
(
const
char
*url);
46
XrdClientUrlInfo
(
const
XrdOucString
&url);
47
XrdClientUrlInfo
(
const
XrdClientUrlInfo
&url);
48
XrdClientUrlInfo
();
49
50
void
SetAddrFromHost
();
51
52
inline
bool
IsValid
() {
return
(
Port
>= 0); }
53
54
XrdClientUrlInfo
&
operator=
(
const
XrdOucString
&url);
55
XrdClientUrlInfo
&
operator=
(
const
XrdClientUrlInfo
&url);
56
};
57
58
59
#endif
Generated by
1.8.1.2