GSI Object Oriented Online Offline (Go4) GO4-6.4.0
Loading...
Searching...
No Matches
TGo4Slot Class Reference

#include <TGo4Slot.h>

+ Inheritance diagram for TGo4Slot:

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

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 AddChild (TGo4Slot *child)
 
void CleanProxy ()
 
void RemoveChild (TGo4Slot *child)
 

Protected Attributes

Int_t fAssignCnt {0}
 ! counts number of object assignment
 
Int_t fAssignFlag {-1}
 ! use in object manager to poll until object is assigned
 
TObjArray * fChilds {nullptr}
 
TGo4SlotfParent {nullptr}
 
TObjArray fPars
 
TGo4ProxyfProxy {nullptr}
 !
 

Detailed Description

Definition at line 25 of file TGo4Slot.h.

Member Enumeration Documentation

◆ anonymous enum

anonymous enum
Enumerator
evDelete 
evCreate 
evObjAssigned 
evContAssigned 
evObjUpdated 
evSubslotUpdated 
evObjDeleted 

Definition at line 45 of file TGo4Slot.h.

◆ ESlotBits

enum TGo4Slot::ESlotBits
protected
Enumerator
kStartDelete 

Definition at line 28 of file TGo4Slot.h.

Constructor & Destructor Documentation

◆ TGo4Slot() [1/3]

TGo4Slot::TGo4Slot ( )

◆ TGo4Slot() [2/3]

TGo4Slot::TGo4Slot ( TGo4Slot * parent)

Definition at line 67 of file TGo4Slot.cxx.

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

◆ TGo4Slot() [3/3]

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

Definition at line 79 of file TGo4Slot.cxx.

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

◆ ~TGo4Slot()

TGo4Slot::~TGo4Slot ( )
virtual

Member Function Documentation

◆ AddChild()

void TGo4Slot::AddChild ( TGo4Slot * child)
protected

Definition at line 537 of file TGo4Slot.cxx.

References TGo4Slot(), and fChilds.

Referenced by TGo4Slot(), and TGo4Slot().

◆ AssignObject()

◆ ClassDefOverride()

TGo4Slot::ClassDefOverride ( TGo4Slot ,
1  )

References TGo4Slot().

◆ CleanProxy()

void TGo4Slot::CleanProxy ( )
protected

Definition at line 287 of file TGo4Slot.cxx.

References fProxy.

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

◆ DefineSubSlot()

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

Definition at line 431 of file TGo4Slot.cxx.

References TGo4Slot(), GetChild(), and NumChilds().

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

◆ Delete()

void TGo4Slot::Delete ( Option_t * opt = "")
override

◆ DeleteChild()

void TGo4Slot::DeleteChild ( const char * name)

Definition at line 188 of file TGo4Slot.cxx.

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

◆ DeleteChilds()

void TGo4Slot::DeleteChilds ( const char * startedwith = nullptr)

◆ DoingDelete()

Bool_t TGo4Slot::DoingDelete ( ) const
inline

Definition at line 125 of file TGo4Slot.h.

References kStartDelete.

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

◆ Event()

void TGo4Slot::Event ( TGo4Slot * source,
Int_t id,
void * param = nullptr )
virtual

◆ FindChild()

◆ FindFolderSeparator()

const char * TGo4Slot::FindFolderSeparator ( const char * name)
static

Definition at line 641 of file TGo4Slot.cxx.

Referenced by ProduceFolderAndName().

◆ FindSlot()

TGo4Slot * TGo4Slot::FindSlot ( const char * fullpath,
const char ** subname = nullptr )

Definition at line 469 of file TGo4Slot.cxx.

References TGo4Slot(), DefineSubSlot(), FindSlot(), GetParent(), and GetSlot().

Referenced by FindSlot(), and TGo4DabcAccess::ProcessCommandReply().

◆ ForwardEvent()

◆ GetAssignCnt()

Int_t TGo4Slot::GetAssignCnt ( ) const
inline

Definition at line 104 of file TGo4Slot.h.

References fAssignCnt.

Referenced by TGo4HttpProxy::ProcessUpdateTimer().

◆ GetAssignedObject()

TObject * TGo4Slot::GetAssignedObject ( )

Definition at line 356 of file TGo4Slot.cxx.

References fProxy.

Referenced by TGo4ViewPanel::CheckForSpecialObjects(), TGo4ViewPanel::CheckObjectsAssigments(), TGo4BrowserProxy::CheckPictureMonitor(), TGo4BrowserProxy::ClearMemoryItem(), TGo4ViewPanel::CollectMainDrawObjects(), TGo4ViewPanel::CollectSpecialObjects(), TGo4Browser::ContextMenuActivated(), TGo4BrowserProxy::DefineFileObject(), TGo4ViewPanel::DeleteDrawObject(), TGo4MainWindow::editorServiceSlot(), TGo4ViewPanel::GetActiveObj(), TGo4BrowserProxy::GetBrowserObject(), 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(), TGo4DrawCloneProxy::ProcessEvent(), TGo4RootBrowserProxy::ProcessEvent(), TGo4WidgetProxy::ProcessEvent(), TGo4ViewPanel::ProcessPadRedraw(), TGo4HttpProxy::ProcessRegularMultiRequest(), TGo4HttpProxy::ProcessUpdateTimer(), TGo4BrowserProxy::ProduceExplicitCopy(), TGo4ViewPanel::ProduceSuperimposeObject(), TGo4ViewPanel::RedrawLegend(), TGo4ViewPanel::RedrawSpecialObjects(), TGo4ViewPanel::RefreshButtons(), TGo4BrowserProxy::RenameMemoryItem(), TGo4BrowserProxy::SaveItemToFile(), TGo4ViewPanel::SetConditionBtn_clicked(), TGo4ViewPanel::SetSelectedMarkerByMouseClick(), TGo4Browser::SetViewItemProperties(), TGo4AnalysisProxy::SubmitAnalysisSettings(), TGo4HttpProxy::SubmitAnalysisSettings(), TGo4BrowserProxy::SyncBrowserSlots(), TGo4MBSViewer::TrendHisto(), TGo4BrowserProxy::UpdateObjectInFile(), and TGo4FitPanel::UpdateObjectReferenceInSlot().

◆ GetAssignFlag()

Int_t TGo4Slot::GetAssignFlag ( ) const
inline

Definition at line 102 of file TGo4Slot.h.

References fAssignFlag.

Referenced by TGo4ObjectManager::RequestObject().

◆ GetChild()

◆ GetFullName()

◆ GetIndexOf()

Int_t TGo4Slot::GetIndexOf ( const TGo4Slot * child) const

◆ GetInfo()

const char * TGo4Slot::GetInfo ( )

Definition at line 312 of file TGo4Slot.cxx.

References fProxy.

Referenced by TGo4SlotIter::info().

◆ GetIntPar()

◆ GetNext()

TGo4Slot * TGo4Slot::GetNext ( ) const

Definition at line 258 of file TGo4Slot.cxx.

References TGo4Slot(), GetNextChild(), and GetParent().

Referenced by TGo4BrowserProxy::SyncBrowserSlots().

◆ GetNextChild()

TGo4Slot * TGo4Slot::GetNextChild ( const TGo4Slot * child) const

Definition at line 236 of file TGo4Slot.cxx.

References TGo4Slot(), GetChild(), and NumChilds().

Referenced by GetNext().

◆ GetOM()

◆ GetPar()

◆ GetParent()

◆ GetProxy()

◆ GetSizeInfo()

Int_t TGo4Slot::GetSizeInfo ( )

Definition at line 321 of file TGo4Slot.cxx.

References fProxy.

Referenced by TGo4SlotIter::sizeinfo().

◆ GetSlot()

◆ GetSlotClassName()

const char * TGo4Slot::GetSlotClassName ( ) const

Definition at line 334 of file TGo4Slot.cxx.

References fProxy.

Referenced by TGo4SlotIter::GetClassName().

◆ GetSlotKind()

Int_t TGo4Slot::GetSlotKind ( ) const

Definition at line 329 of file TGo4Slot.cxx.

References fProxy, and TGo4Access::kndFolder.

Referenced by TGo4SlotIter::GetKind().

◆ HasSlotsSubLevels()

Bool_t TGo4Slot::HasSlotsSubLevels ( ) const

Definition at line 377 of file TGo4Slot.cxx.

References NumChilds().

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

◆ HasSubLevels()

Bool_t TGo4Slot::HasSubLevels ( ) const

Definition at line 370 of file TGo4Slot.cxx.

References fProxy, and HasSlotsSubLevels().

Referenced by TGo4SlotIter::isfolder().

◆ IsAcceptObject()

Bool_t TGo4Slot::IsAcceptObject ( TClass * cl) const

Definition at line 339 of file TGo4Slot.cxx.

References fProxy.

◆ IsParent()

◆ MakeLevelIter()

TGo4LevelIter * TGo4Slot::MakeLevelIter ( ) const

Definition at line 382 of file TGo4Slot.cxx.

References fProxy, and NumChilds().

Referenced by TGo4SlotIter::subiterator().

◆ NumChilds()

Int_t TGo4Slot::NumChilds ( ) const
inline

◆ Print()

void TGo4Slot::Print ( Option_t * opt = "") const
override

◆ PrintPars()

void TGo4Slot::PrintPars ( Int_t level = 3)

Definition at line 632 of file TGo4Slot.cxx.

References fPars.

◆ ProduceFolderAndName()

◆ ProduceFullName()

◆ ProvideSlotAccess()

std::unique_ptr< TGo4Access > TGo4Slot::ProvideSlotAccess ( const char * name)

◆ ReadData()

void TGo4Slot::ReadData ( TDirectory * dir)

Definition at line 416 of file TGo4Slot.cxx.

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

Referenced by TGo4ObjectManager::ReadDataFromFile().

◆ RecursiveRemove()

void TGo4Slot::RecursiveRemove ( TObject * obj)
override

Definition at line 571 of file TGo4Slot.cxx.

References fProxy.

Referenced by TGo4ObjectManager::RecursiveRemove().

◆ RemoveChild()

void TGo4Slot::RemoveChild ( TGo4Slot * child)
protected

Definition at line 544 of file TGo4Slot.cxx.

References TGo4Slot(), and fChilds.

◆ RemovePar()

◆ ResetAssignFlag()

void TGo4Slot::ResetAssignFlag ( )
inline

Definition at line 103 of file TGo4Slot.h.

References fAssignFlag.

Referenced by TGo4ObjectManager::RequestObject().

◆ SaveData()

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

Definition at line 410 of file TGo4Slot.cxx.

References fProxy.

Referenced by TGo4ObjectManager::SaveDataToFile().

◆ SetIntPar()

◆ SetPar()

◆ SetParent()

void TGo4Slot::SetParent ( TGo4Slot * parent)
inline

Definition at line 59 of file TGo4Slot.h.

References TGo4Slot(), and fParent.

◆ SetProxy()

◆ ShiftSlotAfter()

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

Definition at line 521 of file TGo4Slot.cxx.

References TGo4Slot(), and fChilds.

Referenced by TGo4ViewPanel::ShiftSelectedObjectToEnd().

◆ ShiftSlotBefore()

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

Definition at line 505 of file TGo4Slot.cxx.

References TGo4Slot(), and fChilds.

Referenced by TGo4BrowserProxy::SyncBrowserSlots().

◆ Update()

Field Documentation

◆ fAssignCnt

Int_t TGo4Slot::fAssignCnt {0}
protected

! counts number of object assignment

Definition at line 42 of file TGo4Slot.h.

Referenced by AssignObject(), and GetAssignCnt().

◆ fAssignFlag

Int_t TGo4Slot::fAssignFlag {-1}
protected

! use in object manager to poll until object is assigned

Definition at line 41 of file TGo4Slot.h.

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

◆ fChilds

TObjArray* TGo4Slot::fChilds {nullptr}
protected

◆ fParent

TGo4Slot* TGo4Slot::fParent {nullptr}
protected

Definition at line 37 of file TGo4Slot.h.

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

◆ fPars

TObjArray TGo4Slot::fPars
protected

Definition at line 39 of file TGo4Slot.h.

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

◆ fProxy


The documentation for this class was generated from the following files: