/usr/include/root/TFolder.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 66 67 68 69 70 | // @(#)root/base:$Id$
// Author: Rene Brun 02/09/2000
/*************************************************************************
* 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_TFolder
#define ROOT_TFolder
//////////////////////////////////////////////////////////////////////////
// //
// TFolder //
// //
// Describe a folder: a list of objects and folders //
// //
//////////////////////////////////////////////////////////////////////////
#ifndef ROOT_TNamed
#include "TNamed.h"
#endif
class TCollection;
class TBrowser;
class TFolder : public TNamed {
protected:
TCollection *fFolders; //pointer to the list of folders
Bool_t fIsOwner; //true if folder own its contained objects
private:
TFolder(const TFolder &folder); //folders cannot be copied
void operator=(const TFolder &);
public:
TFolder();
TFolder(const char *name, const char *title);
virtual ~TFolder();
virtual void Add(TObject *obj);
TFolder *AddFolder(const char *name, const char *title, TCollection *collection=0);
virtual void Browse(TBrowser *b);
virtual void Clear(Option_t *option="");
virtual void Copy(TObject &) const { MayNotUse("Copy(TObject &)"); }
virtual const char *FindFullPathName(const char *name) const;
virtual const char *FindFullPathName(const TObject *obj) const;
virtual TObject *FindObject(const char *name) const;
virtual TObject *FindObject(const TObject *obj) const;
virtual TObject *FindObjectAny(const char *name) const;
TCollection *GetListOfFolders() const { return fFolders; }
Bool_t IsFolder() const { return kTRUE; }
Bool_t IsOwner() const;
virtual void ls(Option_t *option="") const; // *MENU*
virtual Int_t Occurence(const TObject *obj) const;
virtual void RecursiveRemove(TObject *obj);
virtual void Remove(TObject *obj);
virtual void SaveAs(const char *filename="",Option_t *option="") const; // *MENU*
virtual void SetOwner(Bool_t owner=kTRUE);
ClassDef(TFolder,1) //Describe a folder: a list of objects and folders
};
#endif
|