1 #ifndef _Q_EVENT_ASSEMBLER_HH_
2 #define _Q_EVENT_ASSEMBLER_HH_
63 template<
typename Q> Q&
Add(
const char* owner,
const char* name)
72 void Add(
const char* owner,
const char* name,
QObject** evData)
90 template<
typename Q> Q&
Get(
const char* owner,
const char* name)
125 std::vector<QEventLabel>
GetRequiredLabels(
const std::string& owner =
"all")
const ;
128 void SetRequiredLabels(
const std::vector<QEventLabel>& labels,
bool incremental =
true);
139 template<
typename Q>
bool Contains(
const char *owner,
const char *name)
const
144 template<
typename Q>
bool Contains(
const char *label)
const
#define Q_BEGIN_NAMESPACE
Visitor class of QEvent that provides full handling of QEvent.
void SetOverWrite(const bool ow=true)
set that all the QEvent QObject (s) can be overwritten (calls QEvent::SetOverWrite())
QObject ** Get(const char *owner, const char *name) const
Get the QObject Address.
Q & Add(const char *owner, const char *name)
Add QObject to the event. This method has to be called before the event loop, e.g....
QEvent fEvent
the QEvent object.
QEvent & GetEvent()
Get the QEvent.
std::vector< QEventLabel > GetLabels() const
Get the list of all QObject labels in the event.
void Get(const char *owner, WriteHandle< Q > &handle)
Get QObject from the event in write mode. This method has to be called in the event loop,...
void SetOwner(const std::string *owner)
set the module that is currently acting on the QEvent calls (QEvent::SetOwner())
void Consolidate()
Consolidate QEvent.
void Assign(const QEvent &ev)
copies the underlying QEvent (calls QEvent::operator=)
const QAliases & GetAliases() const
get aliases (const version)
void Clear()
clear the underlying QEvent (calls QEvent::Clear())
bool Contains(const char *label) const
Check to see if the event contains a particular object.
Q & Get(const char *owner, const char *name)
Get QObject from the event in write mode. This method has to be called in the event loop,...
void Add(const char *owner, WriteHandle< Q > &handle)
Add QObject to the event. This method has to be called before the event loop, e.g....
void SetRequiredLabels(const std::vector< QEventLabel > &labels, bool incremental=true)
set which QObjects are required. If incremental = false, labels not in the vector are set to not requ...
std::vector< QEventLabel > GetWriteLabels() const
Get the list of all writable QObject labels.
QEventAssembler()
constructor
const QEvent & GetEvent() const
Get the QEvent (const version.
void SetReadNumber(const unsigned int readNumber)
set the event number as read by the current QReader (calls QEvent::SetReadNumber())
std::vector< QEventLabel > GetRequiredLabels(const std::string &owner="all") const
Get the list of all required QObject labels.
bool Contains(const char *owner, const char *name) const
Check to see if the event contains a particular object.
QAliases & GetAliases()
get aliases
void Add(const char *owner, const char *name, QObject **evData)
Add QObject to the event. This method has to be called before the event loop, e.g....
~QEventAssembler()
destructor
const QEventAssembler & operator=(const QEventAssembler &)
operator= (copies also the underlying QEvent)
void SetReadNumber(const unsigned int readNumber)
set the event number as read by the current reader.
QObject ** GetObject(const char *owner, const char *name) const
void Clear()
reset members to default values
void Consolidate()
keep only Required and JustAdded QObjects
void Get(const char *owner, ReadHandle< Q > &handle) const
Get a QObject Handle in read mode.
void SetOverWrite(const bool ow=true)
set whether an object can be overwritten
std::vector< QEventLabel > GetLabels() const
Get all object labels.
void SetOwner(const std::string *owner) const
set the name of the module that is currently acting on the event
void Add(WriteHandle< Q > &handle)
Add a QObject to the event.
bool Contains(const char *owner, const char *name) const
Check to see if the event contains a particular object.
const QAliases & GetAliases() const
get aliases (const version)
base class for objects handled by QEvent and QGlobalDataManager.
write handle to access and add QEvent QObject's.