xrootd
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 
31  public:
36  int Port;
40 
41  void Clear();
42  void TakeUrl(XrdOucString url);
44 
45  XrdClientUrlInfo(const char *url);
46  XrdClientUrlInfo(const XrdOucString &url);
49 
50  void SetAddrFromHost();
51 
52  inline bool IsValid() { return (Port >= 0); }
53 
56 };
57 
58 
59 #endif