TUrl


class description - source file - inheritance tree

class TUrl : public TObject

    private:
TUrl TUrl() public:
TUrl TUrl(const char* url) TUrl TUrl(const TUrl& url) virtual void ~TUrl() static TClass* Class() const char* GetAnchor() const const char* GetFile() const const char* GetHost() const const char* GetOptions() const Int_t GetPort() const const char* GetProtocol() const const char* GetUrl() const virtual TClass* IsA() const Bool_t IsValid() const TUrl& operator=(const TUrl& rhs) virtual void Print(Option_t* option) const virtual void ShowMembers(TMemberInspector& insp, char* parent) virtual void Streamer(TBuffer& b) void StreamerNVirtual(TBuffer& b)

Data Members

private:
TString fUrl full URL TString fProtocol protocol: http, ftp, news, root, rfio, hpss TString fHost remote host TString fFile remote object TString fAnchor anchor in object TString fOptions options (after ?) Int_t fPort port through which to contact remote server public:

Class Description

                                                                      
 TUrl                                                                 
                                                                      
 This class represents a WWW compatible URL.                          
 It provides member functions to returns the different parts of       
 an URL.                                                              
                                                                      


TUrl(const char *url)
 Parse url character string and split in its different subcomponents.
 Use IsValid() to check if URL is legal.

 url: [proto://]host[:port]/file.ext[#anchor][?options]

 Known protocols: http, root, proof, ftp, news, file, rfio, hpss
 (default http).
 Default ports: http=80, root=1094, proof=1093, ftp=20, news=119.
 Port #1093 has been assigned by IANA (www.iana.org) to proofd.
 Port #1094 has been assigned by IANA (www.iana.org) to rootd.

TUrl(const TUrl &url)
 TUrl copt ctor.

const char* GetUrl()
 Return full URL.

void Print(Option_t *) const
 Print URL on stdout.



Inline Functions


               TUrl TUrl(const TUrl& url)
              TUrl& operator=(const TUrl& rhs)
        const char* GetProtocol() const
        const char* GetHost() const
        const char* GetFile() const
        const char* GetAnchor() const
        const char* GetOptions() const
              Int_t GetPort() const
             Bool_t IsValid() const
            TClass* Class()
            TClass* IsA() const
               void ShowMembers(TMemberInspector& insp, char* parent)
               void Streamer(TBuffer& b)
               void StreamerNVirtual(TBuffer& b)
               void ~TUrl()


Author: Fons Rademakers 17/01/97
Last update: root/net:$Name: $:$Id: TUrl.cxx,v 1.5 2000/12/13 15:13:53 brun Exp $
Copyright (C) 1995-2000, Rene Brun and Fons Rademakers. *


ROOT page - Class index - Top of the page

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.