23 Info(
"Skip events set to false");
31 Info(
"Skipping events with non valid but required objects");
34 Debug(
"NOT skipping events with non valid but required objects");
46 bool requiredAreValid =
true;
49 for(
size_t l = 0; l < labels.size(); l++) {
50 const char* owner = labels[l].owner.c_str();
51 const char* name = labels[l].name.c_str();
55 requiredAreValid =
false;
62 if(requiredAreValid) {
73 Panic(
"Missing method: \"void Do(QEvent& ev)\" or \"void Do(QEvent& ev, const QEventList& neigh)\" not implemented");
QRunDataHandle rHandle(753)
#define Q_BEGIN_NAMESPACE
void Debug(const char *descr,...) const
Send a debug message (used to debug the module) with printf syntax.
unsigned int GetIteration() const
Get Current sequence iteration.
void Info(const char *descr,...) const
Send an info message (information) with printf syntax.
void Panic(const char *descr,...) const
Send a panic message (stops the framework) with printf syntax.
int GetInt(const std::string &parname, int defVal, bool warnCfg=true) const
Get an int parameter from config file ( see GetDouble() )
bool GetBool(const std::string &parname, bool defVal, bool warnCfg=true) const
Get a bool parameter from config file ( see GetDouble() )
const std::vector< QEventLabel > & GetRequiredLabels() const
Get labels of objects required by this module.
void SetRunAgain(bool b)
Set that the sequence will be reiterated.
void SetNeedNeighbours(bool need)
set wheter this module needs neighbours
bool wrapped into a QObject
Visitor class of QEvent that provides full handling of QEvent.
QEvent & GetEvent()
Get the QEvent.
list of references to const QEvent (s)
void Get(const char *owner, ReadHandle< Q > &handle) const
Get a QObject Handle in read mode.
void Add(WriteHandle< Q > &handle)
Add a QObject to the event.
virtual void Done()=0
Done method is called after event loop.
void End()
End method is called after event loop, and calls Done()
bool Process(QEventAssembler &eva, QEventList &neigh, const bool exec, QEventList &oneigh)
Process method is called for each event, and calls Do()
bool fSkipRequiredNotValid
Skip events containing non-valid required objects.
virtual void Init(QEvent &ev)=0
Init method is called before event loop.
bool fSkipEvents
flag to skip the Do() execution on filtered events
size_t fRunOnIteration
Specify on which iteration the module runs.
virtual void Do(QEvent &ev)
Do method is called on each event, getting the event as argument.
bool fFirstCall
flag to check first Do() call
void Begin(QEventAssembler &eva)
Begin method is called before event loop, and calls Init()
virtual ~QModule()
destructor
read handle to access QEvent QObject's.