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

label for QObject in the QEvent More...

Public Member Functions

 QEventLabel ()
 default constructor More...
 
 QEventLabel (const char *o, const char *n)
 constructor More...
 
 QEventLabel (const std::string &o, const std::string &n)
 constructor More...
 
 QEventLabel (const std::string &label)
 constructor from string label in the format "owner@name" More...
 
 QEventLabel (const char *label)
 constructor from char array label in the format "owner@name" More...
 
const QEventLabeloperator= (const std::string &label)
 assignment operator More...
 
std::string GetStringLabel () const
 get string in the format "owner@name" More...
 
 operator std::string () const
 cast operator, returns GetStringLabel() More...
 
bool operator< (const QEventLabel &other) const
 less operator More...
 
bool operator== (const QEventLabel &other) const
 comparison operator More...
 
const std::string & GetOwner () const
 get owner More...
 
const std::string & GetName () const
 get name More...
 

Public Attributes

std::string owner
 owner of the QObject More...
 
std::string name
 name of the QObject More...
 

Private Member Functions

void Init (const std::string &)
 function called in constructors More...
 

Detailed Description

label for QObject in the QEvent

Author
Marco Vignati

This class implements the label that uniquely identify a QObject in the QEvent. The label is composed by two strings, the QObject owner and the QObject name. The two strings can be combined in a unique string "owner@name" through the GetStringLabel() method, or through the cast operator.

Definition at line 22 of file QEventLabel.hh.

Constructor & Destructor Documentation

◆ QEventLabel() [1/5]

QEventLabel::QEventLabel ( )
inline

default constructor

Definition at line 26 of file QEventLabel.hh.

References name, and owner.

◆ QEventLabel() [2/5]

QEventLabel::QEventLabel ( const char *  o,
const char *  n 
)
inline

constructor

Definition at line 29 of file QEventLabel.hh.

◆ QEventLabel() [3/5]

QEventLabel::QEventLabel ( const std::string &  o,
const std::string &  n 
)
inline

constructor

Definition at line 32 of file QEventLabel.hh.

◆ QEventLabel() [4/5]

Q_BEGIN_NAMESPACE QEventLabel::QEventLabel ( const std::string &  label)

constructor from string label in the format "owner@name"

Definition at line 5 of file QEventLabel.cc.

References Init().

◆ QEventLabel() [5/5]

QEventLabel::QEventLabel ( const char *  label)

constructor from char array label in the format "owner@name"

Definition at line 11 of file QEventLabel.cc.

References Init().

Member Function Documentation

◆ GetName()

const std::string& QEventLabel::GetName ( ) const
inline

get name

Definition at line 57 of file QEventLabel.hh.

References name.

Referenced by QRootFileReaderBase::AddToEvent(), and QEvent::GetByLabel().

◆ GetOwner()

const std::string& QEventLabel::GetOwner ( ) const
inline

◆ GetStringLabel()

std::string QEventLabel::GetStringLabel ( ) const

◆ Init()

void QEventLabel::Init ( const std::string &  label)
private

function called in constructors

Definition at line 16 of file QEventLabel.cc.

References name, and owner.

Referenced by operator=(), and QEventLabel().

◆ operator std::string()

QEventLabel::operator std::string ( ) const
inline

cast operator, returns GetStringLabel()

Definition at line 46 of file QEventLabel.hh.

References GetStringLabel().

◆ operator<()

bool QEventLabel::operator< ( const QEventLabel other) const

less operator

Definition at line 34 of file QEventLabel.cc.

References name, and owner.

◆ operator=()

const QEventLabel & QEventLabel::operator= ( const std::string &  label)

assignment operator

Definition at line 28 of file QEventLabel.cc.

References Init().

◆ operator==()

bool QEventLabel::operator== ( const QEventLabel other) const

comparison operator

Definition at line 41 of file QEventLabel.cc.

References name, and owner.

Member Data Documentation

◆ name

std::string QEventLabel::name

◆ owner

std::string QEventLabel::owner

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