Diana Software
Public Member Functions | Private Attributes | List of all members
QEventInspector Class Reference

Visitor class to inspect the QEvent content. More...

Public Member Functions

 QEventInspector (QEventAssembler *eva)
 constructor More...
 
QEventGetEvent ()
 Get the event. More...
 
const QEventGetEvent () const
 Get the event (const version) More...
 
std::vector< QEventLabelGetLabels () const
 Get all QObject labels. More...
 
std::vector< QEventLabelGetWriteLabels () const
 Get labels of QObjects to be written. More...
 
QObject ** Get (const char *owner, const char *name) const
 Get reference of a QObject (can be used with TTree::SetBranchAddress). More...
 
const QAliasesGetAliases () const
 get aliases (const version) More...
 
template<typename Q >
bool Contains (const char *owner, const char *name) const
 Check to see if the event contains a particular object. More...
 
template<typename Q >
bool Contains (const char *label) const
 Check to see if the event contains a particular object. More...
 

Private Attributes

QEventAssemblerfEventAssembler
 the QEventAssembler object. More...
 

Detailed Description

Visitor class to inspect the QEvent content.

Author
Marco Vignati

The QEventInspector is a QEvent visitor that can retreive the list of all QObject (s). This class is used by the QWriter (s), to know that is the content of the QEvent, and which QObject (s) should be written. Unlike QEventAssembler, this class does not own the QEvent, but simply stores a reference to the QEventAssembler that contains the QEvent.

Definition at line 24 of file QEventInspector.hh.

Constructor & Destructor Documentation

◆ QEventInspector()

QEventInspector::QEventInspector ( QEventAssembler eva)
inline

constructor

Definition at line 28 of file QEventInspector.hh.

References fEventAssembler.

Member Function Documentation

◆ Contains() [1/2]

template<typename Q >
bool QEventInspector::Contains ( const char *  label) const
inline

Check to see if the event contains a particular object.

Definition at line 69 of file QEventInspector.hh.

References QEventAssembler::Contains(), and fEventAssembler.

◆ Contains() [2/2]

template<typename Q >
bool QEventInspector::Contains ( const char *  owner,
const char *  name 
) const
inline

Check to see if the event contains a particular object.

Definition at line 64 of file QEventInspector.hh.

References QEventAssembler::Contains(), and fEventAssembler.

◆ Get()

QObject** QEventInspector::Get ( const char *  owner,
const char *  name 
) const
inline

Get reference of a QObject (can be used with TTree::SetBranchAddress).

Definition at line 56 of file QEventInspector.hh.

References fEventAssembler, and QEventAssembler::Get().

Referenced by QRootFileWriterBase::Open().

◆ GetAliases()

const QAliases& QEventInspector::GetAliases ( ) const
inline

get aliases (const version)

Definition at line 62 of file QEventInspector.hh.

References fEventAssembler, and QEventAssembler::GetAliases().

Referenced by QRootFileWriterBase::Open().

◆ GetEvent() [1/2]

QEvent& QEventInspector::GetEvent ( )
inline

Get the event.

Definition at line 32 of file QEventInspector.hh.

References fEventAssembler, and QEventAssembler::GetEvent().

Referenced by QFileWriter::Do(), QRootFileWriterBase::Dump(), and QFileWriter::Init().

◆ GetEvent() [2/2]

const QEvent& QEventInspector::GetEvent ( ) const
inline

Get the event (const version)

Definition at line 38 of file QEventInspector.hh.

References fEventAssembler, and QEventAssembler::GetEvent().

◆ GetLabels()

std::vector<QEventLabel> QEventInspector::GetLabels ( ) const
inline

Get all QObject labels.

Definition at line 44 of file QEventInspector.hh.

References fEventAssembler, and QEventAssembler::GetLabels().

◆ GetWriteLabels()

std::vector<QEventLabel> QEventInspector::GetWriteLabels ( ) const
inline

Get labels of QObjects to be written.

Definition at line 50 of file QEventInspector.hh.

References fEventAssembler, and QEventAssembler::GetWriteLabels().

Referenced by QRootFileWriterBase::Open().

Member Data Documentation

◆ fEventAssembler

QEventAssembler* QEventInspector::fEventAssembler
private

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