Public Slots | Public Member Functions | List of all members
pqXMLEventObserver Class Reference

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.

Public Slots

void onRecordEvent (const QString &Widget, const QString &Command, const QString &Arguments, const int &eventType) override
 Record on event in xml file. More...
 

Public Member Functions

 pqXMLEventObserver (QObject *p)
 
 ~pqXMLEventObserver () override
 
void setStream (QTextStream *stream) override
 

Detailed Description

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.

Constructor & Destructor Documentation

◆ pqXMLEventObserver()

pqXMLEventObserver::pqXMLEventObserver ( QObject *  p)

◆ ~pqXMLEventObserver()

pqXMLEventObserver::~pqXMLEventObserver ( )
override

Member Function Documentation

◆ 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: