#ifndef ROOT_TNamed
#define ROOT_TNamed
#ifndef ROOT_TObject
#include "TObject.h"
#endif
#ifndef ROOT_TString
#include "TString.h"
#endif
class TNamed : public TObject {
protected:
TString fName;
TString fTitle;
public:
TNamed(): fName(), fTitle() { }
TNamed(const char *name, const char *title) : fName(name), fTitle(title) { }
TNamed(const TString &name, const TString &title) : fName(name), fTitle(title) { }
TNamed(const TNamed &named);
TNamed& operator=(const TNamed& rhs);
virtual ~TNamed() { }
virtual void Clear(Option_t *option ="");
virtual TObject *Clone(const char *newname="") const;
virtual Int_t Compare(const TObject *obj) const;
virtual void Copy(TObject &named) const;
virtual void FillBuffer(char *&buffer);
virtual const char *GetName() const { return fName; }
virtual const char *GetTitle() const { return fTitle; }
virtual ULong_t Hash() const { return fName.Hash(); }
virtual Bool_t IsSortable() const { return kTRUE; }
virtual void SetName(const char *name);
virtual void SetNameTitle(const char *name, const char *title);
virtual void SetTitle(const char *title="");
virtual void ls(Option_t *option="") const;
virtual void Print(Option_t *option="") const;
virtual Int_t Sizeof() const;
ClassDef(TNamed,1)
};
#endif
Last change: Wed Jun 25 08:49:45 2008
Last generated: 2008-06-25 08:49
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.