14 #ifndef TGO4OBJECTMANAGER_H
15 #define TGO4OBJECTMANAGER_H
20 #include "TObjArray.h"
43 TGo4Slot*
Add(
const char* pathname, TObject* obj, Bool_t owner = kFALSE, Bool_t canrename = kFALSE);
55 void AddFile(
const char* pathname,
const char* filename);
59 void AddDir(
const char* pathname, TDirectory* dir, Bool_t owner = kFALSE, Bool_t readright = kFALSE);
61 void AddTree(
const char* pathname, TTree* tree, Bool_t owner = kFALSE);
63 void AddFolder(
const char* pathname, TFolder* folder, Bool_t owner = kFALSE);
65 void AddROOTFolder(
const char* pathname,
const char* foldername);
67 void AddROOTFolders(
const char* pathname, Bool_t selected = kTRUE);
69 void AddProxy(
const char* pathname,
TGo4Proxy* cont,
const char* name,
const char* title =
"title");
84 virtual void Event(
TGo4Slot* source, Int_t
id,
void* param = 0);
93 Int_t
RequestObject(
const char* source,
const char* targetslot, Int_t waittime_millisec = 0);
99 virtual Bool_t
AssignObject(
const char* path, TObject* obj, Bool_t ownership);
void UnregisterObject(TObject *obj, TGo4Slot *slot)
ClassDef(TGo4ObjectManager, 1)
list of registered cleanups
virtual ~TGo4ObjectManager()
Int_t RequestObject(const char *source, const char *targetslot, Int_t waittime_millisec=0)
void AddFile(const char *pathname, const char *filename)
void UnregisterLink(TGo4Slot *target)
TGo4Proxy * GetProxy() const
void MakeFolder(const char *pathname)
void AddROOTFolder(const char *pathname, const char *foldername)
void RegisterLink(TGo4Slot *source, TGo4Slot *target, Bool_t exapndchilds=kFALSE)
void RetranslateEvent(TGo4Slot *source, Int_t id, void *param=0)
virtual TGo4ObjectManager * GetOM() const
void RegisterObjectWith(TObject *obj, TGo4Slot *slot)
void DeleteSlot(const char *pathname)
void AddFolder(const char *pathname, TFolder *folder, Bool_t owner=kFALSE)
virtual void ProduceFullName(TString &name, TGo4Slot *toparent=0)
TGo4Slot * MakeObjSlot(const char *foldername, const char *name=0, const char *title=0)
void AddTree(const char *pathname, TTree *tree, Bool_t owner=kFALSE)
void SaveDataToFile(TFile *f, Bool_t onlyobjs=kFALSE, TGo4Slot *startslot=0)
void AddROOTFolders(const char *pathname, Bool_t selected=kTRUE)
virtual Bool_t AssignObject(const char *path, TObject *obj, Bool_t ownership)
void AddDir(const char *pathname, TDirectory *dir, Bool_t owner=kFALSE, Bool_t readright=kFALSE)
void AddProxy(const char *pathname, TGo4Proxy *cont, const char *name, const char *title="title")
virtual void Event(TGo4Slot *source, Int_t id, void *param=0)
void CloseFiles(const char *pathname)
virtual void RecursiveRemove(TObject *obj)
virtual TGo4Access * ProvideAccess(const char *name=0)
TGo4Slot * GetLinked(TGo4Slot *link)
TGo4Access * ProvideSlotAccess(const char *name)
void RemoveFromLinks(const TGo4Slot *slot)
TObjArray fCleanups
list of links between slots
TGo4Slot * Add(const char *pathname, TObject *obj, Bool_t owner=kFALSE, Bool_t canrename=kFALSE)
void ReadDataFromFile(TFile *f)
TGo4Slot * AddLink(TGo4Slot *source, const char *pathname, const char *linkname, const char *linktitle)