/usr/include/root/TNamed.h is in libroot-core-dev 5.34.14-1build1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 | // @(#)root/base:$Id$
// Author: Rene Brun 26/12/94
/*************************************************************************
* Copyright (C) 1995-2000, Rene Brun and Fons Rademakers. *
* All rights reserved. *
* *
* For the licensing terms see $ROOTSYS/LICENSE. *
* For the list of contributors see $ROOTSYS/README/CREDITS. *
*************************************************************************/
#ifndef ROOT_TNamed
#define ROOT_TNamed
//////////////////////////////////////////////////////////////////////////
// //
// TNamed //
// //
// The basis for a named object (name, title). //
// //
//////////////////////////////////////////////////////////////////////////
#ifndef ROOT_TObject
#include "TObject.h"
#endif
#ifndef ROOT_TString
#include "TString.h"
#endif
class TNamed : public TObject {
protected:
TString fName; //object identifier
TString fTitle; //object title
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); // *MENU*
virtual void SetNameTitle(const char *name, const char *title);
virtual void SetTitle(const char *title=""); // *MENU*
virtual void ls(Option_t *option="") const;
virtual void Print(Option_t *option="") const;
virtual Int_t Sizeof() const;
ClassDef(TNamed,1) //The basis for a named object (name, title)
};
#endif
|