Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members

TGo4ObjectManager Class Reference

#include <TGo4ObjectManager.h>

Inheritance diagram for TGo4ObjectManager:

TGo4Slot TGo4AccessWrapper TGo4ObjectReceiver List of all members.

Public Member Functions

 TGo4ObjectManager ()
 TGo4ObjectManager (const char *name, const char *title)
virtual ~TGo4ObjectManager ()
virtual void ProduceFullName (TString &name, TGo4Slot *toparent=0)
virtual TGo4ObjectManager * GetOM () const
void MakeFolder (const char *pathname)
TGo4Slot * Add (const char *pathname, TObject *obj, Bool_t owner=kFALSE, Bool_t canrename=kFALSE)
TGo4Slot * MakeObjSlot (const char *foldername, const char *name=0, const char *title=0)
TGo4Slot * AddLink (TGo4Slot *source, const char *pathname, const char *linkname, const char *linktitle)
TGo4Slot * AddLink (TGo4Slot *source, const char *pathname)
TGo4Slot * AddLink (const char *sourcename, const char *pathname)
TGo4Slot * GetLinked (TGo4Slot *link)
void AddFile (const char *pathname, const char *filename)
void CloseFiles (const char *pathname)
void AddDir (const char *pathname, TDirectory *dir, Bool_t owner=kFALSE, Bool_t readright=kFALSE)
void AddTree (const char *pathname, TTree *tree, Bool_t owner=kFALSE)
void AddFolder (const char *pathname, TFolder *folder, Bool_t owner=kFALSE)
void AddROOTFolder (const char *pathname, const char *foldername)
void AddROOTFolders (const char *pathname, Bool_t selected=kTRUE)
void AddProxy (const char *pathname, TGo4Proxy *cont, const char *name, const char *title="title")
TGo4Proxy * GetProxy (const char *name)
void DeleteSlot (const char *pathname)
void SaveDataToFile (TFile *f, Bool_t onlyobjs=kFALSE, TGo4Slot *startslot=0)
void ReadDataFromFile (TFile *f)
void RegisterLink (TGo4Slot *source, TGo4Slot *target, Bool_t exapndchilds=kFALSE)
void UnregisterLink (TGo4Slot *target)
virtual TGo4Access * ProvideAccess (const char *name=0)
virtual void Event (TGo4Slot *source, Int_t id, void *param=0)
void RetranslateEvent (TGo4Slot *source, Int_t id, void *param=0)
void RegisterObjectWith (TObject *obj, TGo4Slot *slot)
void UnregisterObject (TObject *obj, TGo4Slot *slot)
void PrintSlots ()
Int_t IterateSlots ()
Int_t RequestObject (const char *source, const char *targetslot, Int_t waittime_millisec=0)
virtual void RecursiveRemove (TObject *obj)

Protected Member Functions

virtual Bool_t AssignObject (const char *path, TObject *obj, Bool_t ownership)
void RemoveFromLinks (const TGo4Slot *slot)

Protected Attributes

TObjArray fLinks
TObjArray fCleanups
 list of links between slots

Constructor & Destructor Documentation

TGo4ObjectManager::TGo4ObjectManager (   ) 
 

Definition at line 77 of file TGo4ObjectManager.cxx.

TGo4ObjectManager::TGo4ObjectManager (  const char *  name,
const char *  title
) 
 

Definition at line 85 of file TGo4ObjectManager.cxx.

TGo4ObjectManager::~TGo4ObjectManager (   )  [virtual]
 

Definition at line 93 of file TGo4ObjectManager.cxx.

References TGo4Slot::DeleteChilds(), fCleanups, and fLinks.


Member Function Documentation

void TGo4ObjectManager::ProduceFullName (  TString &  name,
TGo4Slot *  toparent = 0
)  [virtual]
 

Reimplemented from TGo4Slot.

Definition at line 104 of file TGo4ObjectManager.cxx.

TGo4ObjectManager * TGo4ObjectManager::GetOM (   )  const [virtual]
 

Reimplemented from TGo4Slot.

Definition at line 109 of file TGo4ObjectManager.cxx.

void TGo4ObjectManager::MakeFolder (  const char *  pathname  ) 
 

Definition at line 114 of file TGo4ObjectManager.cxx.

References TGo4Slot::GetSlot().

Referenced by TGo4BrowserProxy::CreateMemoryFolder(), TGo4Interface::TGo4Interface(), and TGo4MainWindow::TGo4MainWindow().

TGo4Slot * TGo4ObjectManager::Add (  const char *  pathname,
TObject *  obj,
Bool_t  owner = kFALSE,
Bool_t  canrename = kFALSE
) 
 

Definition at line 120 of file TGo4ObjectManager.cxx.

References MakeObjSlot(), and TGo4Slot::SetProxy().

Referenced by TGo4BrowserProxy::SaveToMemory().

TGo4Slot * TGo4ObjectManager::MakeObjSlot (  const char *  foldername,
const char *  name = 0,
const char *  title = 0
) 
 

Definition at line 234 of file TGo4ObjectManager.cxx.

References TGo4Slot::FindChild(), TGo4Slot::GetSlot(), and TGo4Slot::TGo4Slot().

Referenced by Add(), AddDir(), AddFolder(), AddLink(), AddProxy(), AddROOTFolder(), AddTree(), and TGo4MainWindow::editorServiceSlot().

TGo4Slot * TGo4ObjectManager::AddLink (  TGo4Slot *  source,
const char *  pathname,
const char *  linkname,
const char *  linktitle
) 
 

Definition at line 252 of file TGo4ObjectManager.cxx.

References fLinks, TGo4ObjManLink::GetSource(), TGo4ObjManLink::GetTarget(), MakeObjSlot(), and TGo4Slot::SetProxy().

Referenced by AddLink(), TGo4MainWindow::editorServiceSlot(), and TGo4Interface::TGo4Interface().

TGo4Slot * TGo4ObjectManager::AddLink (  TGo4Slot *  source,
const char *  pathname
) 
 

Definition at line 279 of file TGo4ObjectManager.cxx.

References MakeObjSlot(), and TGo4Slot::SetProxy().

TGo4Slot * TGo4ObjectManager::AddLink (  const char *  sourcename,
const char *  pathname
) 
 

Definition at line 297 of file TGo4ObjectManager.cxx.

References AddLink(), and TGo4Slot::GetSlot().

TGo4Slot * TGo4ObjectManager::GetLinked (  TGo4Slot *  link  ) 
 

Definition at line 302 of file TGo4ObjectManager.cxx.

References TGo4LinkProxy::GetLink(), and TGo4Slot::GetProxy().

void TGo4ObjectManager::AddFile (  const char *  pathname,
const char *  filename
) 
 

Definition at line 138 of file TGo4ObjectManager.cxx.

References AddDir().

Referenced by TGo4BrowserProxy::OpenFile(), and TGo4MainWindow::OpenRemoteFileSlot().

void TGo4ObjectManager::CloseFiles (  const char *  pathname  ) 
 

Definition at line 143 of file TGo4ObjectManager.cxx.

References TGo4Slot::GetChild(), TGo4Slot::GetProxy(), TGo4Slot::GetSlot(), TGo4DirProxy::IsFile(), and TGo4Slot::NumChilds().

Referenced by TGo4MainWindow::CloseAllFilesSlot().

void TGo4ObjectManager::AddDir (  const char *  pathname,
TDirectory *  dir,
Bool_t  owner = kFALSE,
Bool_t  readright = kFALSE
) 
 

Definition at line 157 of file TGo4ObjectManager.cxx.

References MakeObjSlot(), and TGo4Slot::SetProxy().

Referenced by AddFile().

void TGo4ObjectManager::AddTree (  const char *  pathname,
TTree *  tree,
Bool_t  owner = kFALSE
) 
 

Definition at line 170 of file TGo4ObjectManager.cxx.

References MakeObjSlot(), and TGo4Slot::SetProxy().

void TGo4ObjectManager::AddFolder (  const char *  pathname,
TFolder *  folder,
Bool_t  owner = kFALSE
) 
 

Definition at line 180 of file TGo4ObjectManager.cxx.

References MakeObjSlot(), and TGo4Slot::SetProxy().

void TGo4ObjectManager::AddROOTFolder (  const char *  pathname,
const char *  foldername
) 
 

Definition at line 189 of file TGo4ObjectManager.cxx.

References TGo4FolderProxy::LocateROOTFolder(), MakeObjSlot(), and TGo4Slot::SetProxy().

Referenced by AddROOTFolders().

void TGo4ObjectManager::AddROOTFolders (  const char *  pathname,
Bool_t  selected = kTRUE
) 
 

Definition at line 200 of file TGo4ObjectManager.cxx.

References AddROOTFolder(), and TGo4Slot::GetSlot().

void TGo4ObjectManager::AddProxy (  const char *  pathname,
TGo4Proxy *  cont,
const char *  name,
const char *  title = "title"
) 
 

Definition at line 220 of file TGo4ObjectManager.cxx.

References MakeObjSlot(), and TGo4Slot::SetProxy().

Referenced by TGo4MainWindow::AddAnalysisProxy(), TGo4BrowserProxy::ConnectHServer(), TGo4MainWindow::GetWidgetTopSlot(), TGo4Interface::TGo4Interface(), and TGo4MainWindow::TGo4MainWindow().

TGo4Proxy * TGo4ObjectManager::GetProxy (  const char *  name  ) 
 

Definition at line 227 of file TGo4ObjectManager.cxx.

References TGo4Slot::GetProxy(), and TGo4Slot::GetSlot().

Referenced by TGo4MainWindow::Browser().

void TGo4ObjectManager::DeleteSlot (  const char *  pathname  ) 
 

Definition at line 503 of file TGo4ObjectManager.cxx.

References TGo4Slot::GetSlot().

Referenced by TGo4BrowserProxy::DeleteDataSource().

void TGo4ObjectManager::SaveDataToFile (  TFile *  f,
Bool_t  onlyobjs = kFALSE,
TGo4Slot *  startslot = 0
) 
 

Definition at line 370 of file TGo4ObjectManager.cxx.

References TGo4Iter::getname(), TGo4Iter::getslot(), TGo4Iter::isfolder(), TGo4Iter::levelchange(), TGo4Iter::next(), and TGo4Slot::SaveData().

Referenced by TGo4BrowserProxy::SaveBrowserToFile().

void TGo4ObjectManager::ReadDataFromFile (  TFile *  f  ) 
 

Definition at line 408 of file TGo4ObjectManager.cxx.

References TGo4Iter::getname(), TGo4Iter::getslot(), TGo4Iter::isfolder(), TGo4Iter::levelchange(), TGo4Iter::next(), and TGo4Slot::ReadData().

void TGo4ObjectManager::RegisterLink (  TGo4Slot *  source,
TGo4Slot *  target,
Bool_t  exapndchilds = kFALSE
) 
 

Definition at line 311 of file TGo4ObjectManager.cxx.

References fLinks.

Referenced by TGo4BrowserProxy::Initialize(), and TGo4LinkProxy::Initialize().

void TGo4ObjectManager::UnregisterLink (  TGo4Slot *  target  ) 
 

Definition at line 316 of file TGo4ObjectManager.cxx.

References RemoveFromLinks().

Referenced by TGo4BrowserProxy::Finalize(), and TGo4LinkProxy::Finalize().

virtual TGo4Access* TGo4ObjectManager::ProvideAccess (  const char *  name = 0  )  [inline, virtual]
 

Reimplemented from TGo4AccessWrapper.

Definition at line 80 of file TGo4ObjectManager.h.

References TGo4Slot::ProvideSlotAccess().

void TGo4ObjectManager::Event (  TGo4Slot *  source,
Int_t  id,
void *  param = 0
)  [virtual]
 

Reimplemented from TGo4Slot.

Definition at line 355 of file TGo4ObjectManager.cxx.

References TGo4Slot::evDelete, TGo4Slot::Event(), RemoveFromLinks(), RetranslateEvent(), and UnregisterObject().

void TGo4ObjectManager::RetranslateEvent (  TGo4Slot *  source,
Int_t  id,
void *  param = 0
) 
 

Definition at line 336 of file TGo4ObjectManager.cxx.

References TGo4ObjManLink::CheckEventSource(), TGo4Slot::Event(), fLinks, TGo4Slot::GetFullName(), and TGo4ObjManLink::GetTarget().

Referenced by Event(), and TGo4LinkProxy::Finalize().

void TGo4ObjectManager::RegisterObjectWith (  TObject *  obj,
TGo4Slot *  slot
) 
 

Definition at line 437 of file TGo4ObjectManager.cxx.

References fCleanups.

Referenced by TGo4DrawCloneProxy::AssignClone(), TGo4ObjectProxy::Initialize(), and TGo4CanvasProxy::Initialize().

void TGo4ObjectManager::UnregisterObject (  TObject *  obj,
TGo4Slot *  slot
) 
 

Definition at line 444 of file TGo4ObjectManager.cxx.

References fCleanups, TGo4ObjManCleanup::GetObject(), and TGo4ObjManCleanup::GetSlot().

Referenced by TGo4DrawCloneProxy::CleanupClone(), Event(), TGo4ObjectProxy::Finalize(), and TGo4CanvasProxy::Finalize().

void TGo4ObjectManager::PrintSlots (   ) 
 

Definition at line 483 of file TGo4ObjectManager.cxx.

References TGo4Iter::getname(), TGo4Iter::level(), and TGo4Iter::next().

Int_t TGo4ObjectManager::IterateSlots (   ) 
 

Definition at line 495 of file TGo4ObjectManager.cxx.

References TGo4Iter::next().

Int_t TGo4ObjectManager::RequestObject (  const char *  source,
const char *  targetslot,
Int_t  waittime_millisec = 0
) 
 

Definition at line 509 of file TGo4ObjectManager.cxx.

References TGo4Access::AssignObjectTo(), TGo4Slot::GetAssignFlag(), TGo4Access::GetObjectClass(), TGo4Slot::GetSlot(), TGo4Slot::ProvideSlotAccess(), and TGo4Slot::ResetAssignFlag().

Referenced by TGo4BrowserProxy::RequestBrowserObject().

void TGo4ObjectManager::RecursiveRemove (  TObject *  obj  )  [virtual]
 

Reimplemented from TGo4Slot.

Definition at line 460 of file TGo4ObjectManager.cxx.

References TGo4Slot::evObjDeleted, fCleanups, TGo4ObjManCleanup::GetObject(), and TGo4ObjManCleanup::GetSlot().

Referenced by TGo4DrawCloneProxy::CleanupClone().

Bool_t TGo4ObjectManager::AssignObject (  const char *  path,
TObject *  obj,
Bool_t  ownership
)  [protected, virtual]
 

Implements TGo4ObjectReceiver.

Definition at line 545 of file TGo4ObjectManager.cxx.

References TGo4Slot::AssignObject(), and TGo4Slot::GetSlot().

void TGo4ObjectManager::RemoveFromLinks (  const TGo4Slot *  slot  )  [protected]
 

Definition at line 321 of file TGo4ObjectManager.cxx.

References fLinks, TGo4ObjManLink::GetSource(), and TGo4ObjManLink::GetTarget().

Referenced by Event(), and UnregisterLink().


Member Data Documentation

TObjArray TGo4ObjectManager::fLinks [protected]
 

Definition at line 102 of file TGo4ObjectManager.h.

Referenced by AddLink(), RegisterLink(), RemoveFromLinks(), RetranslateEvent(), and ~TGo4ObjectManager().

TObjArray TGo4ObjectManager::fCleanups [protected]
 

list of links between slots

Definition at line 104 of file TGo4ObjectManager.h.

Referenced by RecursiveRemove(), RegisterObjectWith(), UnregisterObject(), and ~TGo4ObjectManager().


The documentation for this class was generated from the following files:
Generated on Fri Nov 28 13:01:07 2008 for Go4-v3.04-1 by  doxygen 1.4.2