#ifndef ROOT_TUri
#define ROOT_TUri
#ifndef ROOT_TObject
#include "TObject.h"
#endif
#ifndef ROOT_TString
#include "TString.h"
#endif
class TUri;
Bool_t operator==(const TUri &u1, const TUri &u2);
class TUri : public TObject {
friend Bool_t operator==(const TUri &u1, const TUri &u2);
private:
TString fScheme;
TString fUserinfo;
TString fHost;
TString fPort;
TString fPath;
TString fQuery;
TString fFragment;
Bool_t fHasScheme;
Bool_t fHasUserinfo;
Bool_t fHasHost;
Bool_t fHasPort;
Bool_t fHasPath;
Bool_t fHasQuery;
Bool_t fHasFragment;
public:
TUri(const TUri &uri);
TUri() { Reset(); }
TUri(const TString &uri);
TUri(const char *uri);
TUri &operator=(const TUri &rhs);
virtual ~TUri() { }
const TString GetUri() const;
const TString GetScheme() const { return fScheme; }
const TString GetHierPart() const;
const TString GetRelativePart() const;
const TString GetAuthority() const;
const TString GetUserInfo() const { return fUserinfo; }
const TString GetHost() const { return fHost; }
const TString GetPort() const { return fPort; }
const TString GetPath() const { return fPath; }
const TString GetQuery() const { return fQuery; }
const TString GetFragment() const { return fFragment; }
Bool_t HasScheme() const { return fHasScheme; }
Bool_t HasHierPart() const { return IsHierPart(GetHierPart()); }
Bool_t HasAuthority() const { return fHasHost; }
Bool_t HasUserInfo() const { return fHasUserinfo; }
Bool_t HasHost() const { return fHasHost; }
Bool_t HasPort() const { return fHasPort; }
Bool_t HasPath() const { return fHasPath; }
Bool_t HasQuery() const { return fHasQuery; }
Bool_t HasFragment() const { return fHasFragment; }
Bool_t HasRelativePart() const { return IsRelativePart(GetRelativePart()); }
Bool_t SetUri(const TString &uri);
Bool_t SetScheme(const TString &scheme);
Bool_t SetHierPart(const TString &hier);
Bool_t SetAuthority(const TString &authority);
Bool_t SetUserInfo(const TString &userinfo);
Bool_t SetHost(const TString &host);
Bool_t SetPort(const TString &port);
Bool_t SetPath(const TString &path);
Bool_t SetQuery(const TString &path);
Bool_t SetFragment(const TString &fragment);
Bool_t SetRelativePart(const TString&);
void Print(Option_t *option = "") const;
Bool_t IsSortable() const { return kTRUE; }
void Normalise();
void Reset();
Bool_t IsAbsolute() const;
Bool_t IsRelative() const;
Bool_t IsUri() const;
Bool_t IsReference() const;
static Bool_t IsUnreserved(const TString &string);
static const TString PctEncode(const TString &source);
static const TString PctDecode(const TString &source);
static const TString PctDecodeUnreserved(const TString &source);
static const TString PctNormalise(const TString &source);
static Bool_t IsScheme(const TString&);
static Bool_t IsHierPart(const TString&);
static Bool_t IsAuthority(const TString&);
static Bool_t IsUserInfo(const TString&);
static Bool_t IsHost(const TString&);
static Bool_t IsIpv4(const TString&);
static Bool_t IsRegName(const TString&);
static Bool_t IsPort(const TString&);
static Bool_t IsPath(const TString&);
static Bool_t IsPathAbsolute(const TString&);
static Bool_t IsPathAbempty(const TString&);
static Bool_t IsPathNoscheme(const TString&);
static Bool_t IsPathRootless(const TString&);
static Bool_t IsPathEmpty(const TString&);
static Bool_t IsQuery(const TString&);
static Bool_t IsFragment(const TString&);
static Bool_t IsRelativePart(const TString&);
static const TString RemoveDotSegments(const TString&);
static TUri Transform(const TUri &reference, const TUri &base);
static const TString MergePaths(const TUri &reference, const TUri &base);
ClassDef(TUri, 1)
};
#endif
Last change: Wed Jun 25 08:54:36 2008
Last generated: 2008-06-25 08:54
This page has been automatically generated. If you have any comments or suggestions about the page layout send a mail to ROOT support, or contact the developers with any questions or problems regarding ROOT.