TUrl


class description - source file - inheritance tree

class TUrl : public TObject

    private:
TUrl TUrl() public:
TUrl TUrl(char* url) TUrl TUrl(TUrl& url) virtual void ~TUrl() TClass* Class() const char* GetAnchor() const char* GetFile() const char* GetHost() const char* GetOptions() Int_t GetPort() const char* GetProtocol() const char* GetUrl() virtual TClass* IsA() Bool_t IsValid() TUrl& operator=(TUrl& rhs) virtual void Print(Option_t* option) virtual void ShowMembers(TMemberInspector& insp, char* parent) virtual void Streamer(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

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]

 Allowed protocols: http, root, ftp, news, file, rfio, hpss (default http)
 Default ports: http=80, root=432, ftp=20, news=119.

TUrl(const TUrl &url)
 TUrl copt ctor.

const char* GetUrl()
 Return full URL.

void Print(Option_t *)
 Print URL on stdout.



Inline Functions


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


Author: Fons Rademakers 17/01/97
Last update: 2.22/06 22/06/99 10.28.39 by Fons Rademakers
Copyright (c) 1995-1999, The ROOT System, All rights reserved. *


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.