Observes high-level ParaView events, and serializes them to a stream as XML for possible playback (as a test-case, demo, tutorial, etc).
More...
#include <pqXMLEventObserver.h>
Inherits pqEventObserver.
Observes high-level ParaView events, and serializes them to a stream as XML for possible playback (as a test-case, demo, tutorial, etc).
To use, connect the onRecordEvent() slot to the pqEventTranslator::recordEvent() signal.
- Note
- Output is sent to the stream from this object's destructor, so you must ensure that it goes out of scope before trying to playback the stream.
- See also
- pqEventTranslator, pqStdoutEventObserver, pqXMLEventSource.
Definition at line 23 of file pqXMLEventObserver.h.
◆ pqXMLEventObserver()
pqXMLEventObserver::pqXMLEventObserver |
( |
QObject * |
p | ) |
|
◆ ~pqXMLEventObserver()
pqXMLEventObserver::~pqXMLEventObserver |
( |
| ) |
|
|
override |
◆ setStream()
void pqXMLEventObserver::setStream |
( |
QTextStream * |
stream | ) |
|
|
override |
◆ onRecordEvent
void pqXMLEventObserver::onRecordEvent |
( |
const QString & |
Widget, |
|
|
const QString & |
Command, |
|
|
const QString & |
Arguments, |
|
|
const int & |
eventType |
|
) |
| |
|
overrideslot |
Record on event in xml file.
The documentation for this class was generated from the following file: