Public Types | Public Member Functions | Static Public Member Functions | Protected Types | Protected Member Functions | Protected Attributes

TGo4Slot Class Reference

#include <TGo4Slot.h>

Inheritance diagram for TGo4Slot:
TGo4ObjectManager

List of all members.

Public Types

enum  {
  evDelete = 0, evCreate = 1, evObjAssigned = 2, evContAssigned = 3,
  evObjUpdated = 4, evSubslotUpdated = 5, evObjDeleted = 6
}

Public Member Functions

 TGo4Slot ()
 TGo4Slot (TGo4Slot *parent)
 TGo4Slot (TGo4Slot *parent, const char *name, const char *title)
virtual ~TGo4Slot ()
TGo4SlotGetParent () const
void SetParent (TGo4Slot *parent)
Bool_t IsParent (const TGo4Slot *slot) const
virtual void ProduceFullName (TString &name, TGo4Slot *toparent=0)
TString GetFullName (TGo4Slot *toparent=0)
virtual TGo4ObjectManagerGetOM () const
const char * GetInfo ()
Int_t GetSizeInfo ()
void SetPar (const char *name, const char *value)
const char * GetPar (const char *name) const
void RemovePar (const char *name)
void SetIntPar (const char *name, Int_t value)
Bool_t GetIntPar (const char *name, Int_t &value)
void PrintPars (Int_t level=3)
Int_t NumChilds () const
TGo4SlotGetChild (Int_t n) const
TGo4SlotFindChild (const char *name)
Int_t GetIndexOf (TGo4Slot *child)
TGo4SlotGetNextChild (TGo4Slot *child)
TGo4SlotGetNext ()
void DeleteChild (const char *name)
void DeleteChilds (const char *startedwith=0)
virtual void Delete (Option_t *opt="")
TGo4SlotDefineSubSlot (const char *name, const char *&subname) const
TGo4SlotGetSlot (const char *name, Bool_t force=kFALSE)
TGo4SlotFindSlot (const char *fullpath, const char **subname=0)
Bool_t ShiftSlotBefore (TGo4Slot *slot, TGo4Slot *before)
Bool_t ShiftSlotAfter (TGo4Slot *slot, TGo4Slot *after)
void SetProxy (TGo4Proxy *cont)
TGo4ProxyGetProxy () const
Int_t GetSlotKind () const
const char * GetSlotClassName () const
Bool_t IsAcceptObject (TClass *cl)
Bool_t AssignObject (TObject *obj, Bool_t owner)
TObject * GetAssignedObject ()
virtual void Update (Bool_t strong=kFALSE)
Int_t GetAssignFlag () const
void ResetAssignFlag ()
Bool_t HasSubLevels () const
Bool_t HasSlotsSubLevels () const
TGo4LevelIterMakeLevelIter () const
TGo4AccessProvideSlotAccess (const char *name)
void SaveData (TDirectory *dir, Bool_t onlyobjs=kFALSE)
void ReadData (TDirectory *dir)
virtual void Event (TGo4Slot *source, Int_t id, void *param=0)
void ForwardEvent (TGo4Slot *source, Int_t id, void *param=0)
virtual void RecursiveRemove (TObject *obj)
virtual void Print (Option_t *option) const
Bool_t DoingDelete () const
 ClassDef (TGo4Slot, 1)

Static Public Member Functions

static const char * FindFolderSeparator (const char *name)
static void ProduceFolderAndName (const char *fullname, TString &foldername, TString &objectname)

Protected Types

enum  ESlotBits { kStartDelete = BIT(23) }

Protected Member Functions

void CleanProxy ()
void AddChild (TGo4Slot *child)
void RemoveChild (TGo4Slot *child)

Protected Attributes

TGo4SlotfParent
TObjArray * fChilds
TObjArray fPars
TGo4ProxyfProxy
Int_t fAssignFlag

Detailed Description

Definition at line 25 of file TGo4Slot.h.


Member Enumeration Documentation

anonymous enum
Enumerator:
evDelete 
evCreate 
evObjAssigned 
evContAssigned 
evObjUpdated 
evSubslotUpdated 
evObjDeleted 

Definition at line 44 of file TGo4Slot.h.

enum TGo4Slot::ESlotBits [protected]
Enumerator:
kStartDelete 

Definition at line 28 of file TGo4Slot.h.


Constructor & Destructor Documentation

TGo4Slot::TGo4Slot (  ) 

Definition at line 64 of file TGo4Slot.cxx.

References kStartDelete.

Referenced by GetSlot(), and TGo4ObjectManager::MakeObjSlot().

TGo4Slot::TGo4Slot ( TGo4Slot parent  ) 

Definition at line 75 of file TGo4Slot.cxx.

References AddChild(), evCreate, Event(), and kStartDelete.

TGo4Slot::TGo4Slot ( TGo4Slot parent,
const char *  name,
const char *  title 
)

Definition at line 91 of file TGo4Slot.cxx.

References AddChild(), evCreate, Event(), and kStartDelete.

TGo4Slot::~TGo4Slot (  )  [virtual]

Member Function Documentation

void TGo4Slot::AddChild ( TGo4Slot child  )  [protected]

Definition at line 553 of file TGo4Slot.cxx.

References fChilds.

Referenced by TGo4Slot().

TGo4Slot::ClassDef ( TGo4Slot  ,
 
)
void TGo4Slot::CleanProxy (  )  [protected]

Definition at line 300 of file TGo4Slot.cxx.

References TGo4Proxy::Finalize(), and fProxy.

Referenced by ReadData(), SetProxy(), and ~TGo4Slot().

TGo4Slot * TGo4Slot::DefineSubSlot ( const char *  name,
const char *&  subname 
) const

Definition at line 447 of file TGo4Slot.cxx.

References GetChild(), and NumChilds().

Referenced by FindSlot(), GetSlot(), and ProvideSlotAccess().

void TGo4Slot::Delete ( Option_t *  opt = ""  )  [virtual]
void TGo4Slot::DeleteChild ( const char *  name  ) 

Definition at line 204 of file TGo4Slot.cxx.

References DoingDelete(), fChilds, FindChild(), and NumChilds().

void TGo4Slot::DeleteChilds ( const char *  startedwith = 0  ) 
Bool_t TGo4Slot::DoingDelete (  )  const [inline]

Definition at line 123 of file TGo4Slot.h.

References kStartDelete.

Referenced by Delete(), DeleteChild(), DeleteChilds(), and TGo4LinkProxy::Finalize().

void TGo4Slot::Event ( TGo4Slot source,
Int_t  id,
void *  param = 0 
) [virtual]
const char * TGo4Slot::FindFolderSeparator ( const char *  name  )  [static]

Definition at line 659 of file TGo4Slot.cxx.

Referenced by ProduceFolderAndName().

TGo4Slot * TGo4Slot::FindSlot ( const char *  fullpath,
const char **  subname = 0 
)
TObject * TGo4Slot::GetAssignedObject (  ) 

Definition at line 369 of file TGo4Slot.cxx.

References fProxy, and TGo4Proxy::GetAssignedObject().

Referenced by TGo4ViewPanel::CheckForSpecialObjects(), TGo4ViewPanel::CheckObjectsAssigments(), TGo4BrowserProxy::CheckPictureMonitor(), TGo4BrowserProxy::ClearMemoryItem(), TGo4ViewPanel::CollectMainDrawObjects(), TGo4ViewPanel::CollectSpecialObjects(), TGo4Browser::ContextMenuActivated(), TGo4BrowserProxy::DefineFileObject(), TGo4ViewPanel::DeleteDrawObject(), TGo4MainWindow::editorServiceSlot(), TGo4ViewPanel::GetActiveObj(), TGo4Interface::GetAnalStatus(), TGo4LinkProxy::GetAssignedObject(), TGo4ViewPanel::GetDrawObject(), TGo4ViewPanel::GetDrawObjectLinkName(), TGo4ViewPanel::GetPadHistogram(), TGo4ViewPanel::GetPadMainObject(), TGo4ViewPanel::GetPadMainObjectSlot(), TGo4ViewPanel::GetPadOptions(), TGo4ViewPanel::GetSelectedObject(), TGo4ViewPanel::GetSelectedSlot(), TGo4ViewPanel::GetSlotPad(), TGo4DrawCloneProxy::Initialize(), TGo4Browser::ListView_customContextMenuRequested(), TGo4ViewPanel::LogMarkerValues(), TGo4ViewPanel::MakePictureForPad(), TGo4ViewPanel::MenuCommandExecutedSlot(), TGo4ViewPanel::PadClickedSlot(), TGo4WidgetProxy::ProcessEvent(), TGo4DrawCloneProxy::ProcessEvent(), TGo4RootBrowserProxy::ProcessEvent(), TGo4ViewPanel::ProcessPadRedraw(), TGo4BrowserProxy::ProduceExplicitCopy(), TGo4ViewPanel::ProduceSuperimposeObject(), TGo4ViewPanel::RedrawLegend(), TGo4ViewPanel::RedrawSpecialObjects(), TGo4ViewPanel::RefreshButtons(), TGo4BrowserProxy::RenameMemoryItem(), TGo4BrowserProxy::SaveItemToFile(), TGo4ViewPanel::SetConditionBtn_clicked(), TGo4ViewPanel::SetSelectedMarkerByMouseClick(), TGo4Browser::SetViewItemProperties(), TGo4AnalysisProxy::SubmitAnalysisSettings(), TGo4BrowserProxy::SyncBrowserSlots(), TGo4MBSViewer::TrendHisto(), TGo4BrowserProxy::UpdateObjectInFile(), TGo4FitPanel::UpdateObjectReferenceInSlot(), TGo4DabcMonitor::updateStats(), and TGo4DabcMonitor::updateTrending().

Int_t TGo4Slot::GetAssignFlag (  )  const [inline]

Definition at line 101 of file TGo4Slot.h.

References fAssignFlag.

Referenced by TGo4ObjectManager::RequestObject().

Int_t TGo4Slot::GetIndexOf ( TGo4Slot child  ) 

Definition at line 242 of file TGo4Slot.cxx.

References GetChild(), and NumChilds().

Referenced by TGo4ViewPanel::ProduceSuperimposeObject().

const char * TGo4Slot::GetInfo (  ) 

Definition at line 326 of file TGo4Slot.cxx.

References fProxy, and TGo4Proxy::GetContainedObjectInfo().

Referenced by TGo4SlotIter::info().

TGo4Slot * TGo4Slot::GetNext (  ) 

Definition at line 271 of file TGo4Slot.cxx.

References GetNextChild(), and GetParent().

Referenced by TGo4BrowserProxy::SyncBrowserSlots().

TGo4Slot * TGo4Slot::GetNextChild ( TGo4Slot child  ) 

Definition at line 251 of file TGo4Slot.cxx.

References GetChild(), and NumChilds().

Referenced by GetNext().

Int_t TGo4Slot::GetSizeInfo (  ) 

Definition at line 335 of file TGo4Slot.cxx.

References fProxy, and TGo4Proxy::GetObjectSizeInfo().

Referenced by TGo4SlotIter::sizeinfo().

TGo4Slot * TGo4Slot::GetSlot ( const char *  name,
Bool_t  force = kFALSE 
)
const char * TGo4Slot::GetSlotClassName (  )  const
Int_t TGo4Slot::GetSlotKind (  )  const

Definition at line 343 of file TGo4Slot.cxx.

References fProxy, and TGo4Proxy::GetObjectKind().

Referenced by TGo4SlotIter::GetKind(), and TGo4LinkProxy::GetObjectKind().

Bool_t TGo4Slot::HasSlotsSubLevels (  )  const

Definition at line 392 of file TGo4Slot.cxx.

References NumChilds().

Referenced by HasSubLevels(), TGo4HServIter::isfolder(), and TGo4SlotIter::isslotsfolder().

Bool_t TGo4Slot::HasSubLevels (  )  const

Definition at line 385 of file TGo4Slot.cxx.

References fProxy, HasSlotsSubLevels(), TGo4Proxy::HasSublevels(), and TGo4Proxy::Use().

Referenced by TGo4SlotIter::isfolder().

Bool_t TGo4Slot::IsAcceptObject ( TClass *  cl  ) 

Definition at line 353 of file TGo4Slot.cxx.

References fProxy, and TGo4Proxy::IsAcceptObject().

Referenced by TGo4LinkProxy::IsAcceptObject().

TGo4LevelIter * TGo4Slot::MakeLevelIter (  )  const
Int_t TGo4Slot::NumChilds (  )  const [inline]
void TGo4Slot::Print ( Option_t *  option  )  const [virtual]
void TGo4Slot::PrintPars ( Int_t  level = 3  ) 

Definition at line 650 of file TGo4Slot.cxx.

References fPars.

void TGo4Slot::ReadData ( TDirectory *  dir  ) 

Definition at line 432 of file TGo4Slot.cxx.

References CleanProxy(), GetPar(), TGo4Proxy::ReadData(), and SetProxy().

Referenced by TGo4ObjectManager::ReadDataFromFile().

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

Definition at line 590 of file TGo4Slot.cxx.

References fProxy, and TGo4Proxy::RemoveRegisteredObject().

Referenced by TGo4ObjectManager::RecursiveRemove().

void TGo4Slot::RemoveChild ( TGo4Slot child  )  [protected]

Definition at line 560 of file TGo4Slot.cxx.

References fChilds.

Referenced by ~TGo4Slot().

void TGo4Slot::ResetAssignFlag (  )  [inline]

Definition at line 102 of file TGo4Slot.h.

References fAssignFlag.

Referenced by TGo4ObjectManager::RequestObject().

void TGo4Slot::SaveData ( TDirectory *  dir,
Bool_t  onlyobjs = kFALSE 
)

Definition at line 426 of file TGo4Slot.cxx.

References fProxy, and TGo4Proxy::WriteData().

Referenced by TGo4ObjectManager::SaveDataToFile().

void TGo4Slot::SetParent ( TGo4Slot parent  )  [inline]

Definition at line 58 of file TGo4Slot.h.

References fParent.

Bool_t TGo4Slot::ShiftSlotAfter ( TGo4Slot slot,
TGo4Slot after 
)

Definition at line 537 of file TGo4Slot.cxx.

References fChilds.

Referenced by TGo4ViewPanel::ShiftSelectedObjectToEnd().

Bool_t TGo4Slot::ShiftSlotBefore ( TGo4Slot slot,
TGo4Slot before 
)

Definition at line 521 of file TGo4Slot.cxx.

References fChilds.

Referenced by TGo4BrowserProxy::SyncBrowserSlots().


Member Data Documentation

Int_t TGo4Slot::fAssignFlag [protected]

Definition at line 41 of file TGo4Slot.h.

Referenced by AssignObject(), GetAssignFlag(), and ResetAssignFlag().

Definition at line 37 of file TGo4Slot.h.

Referenced by GetParent(), SetParent(), and ~TGo4Slot().

TObjArray TGo4Slot::fPars [protected]

Definition at line 39 of file TGo4Slot.h.

Referenced by GetPar(), PrintPars(), RemovePar(), SetPar(), and ~TGo4Slot().


The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines