NuriaProject Framework
0.1
The NuriaProject Framework
|
The TestCall class encapsulates a call to a test function for LazyCondition. More...
#include <lazyevaluation.hpp>
Public Member Functions | |
TestCall () | |
TestCall (const QString &name, const QVariantList &args) | |
TestCall (const Nuria::Callback &callback, const QVariantList &args) | |
const QVariantList & | arguments () const |
Nuria::Callback | callback () const |
bool | isNative () const |
QString | name () const |
The TestCall class encapsulates a call to a test function for LazyCondition.
This class makes it possible for LazyCondition and evaluators to interact with test methods. Methods can be of two types: Named or native.
A named method can be used with any evaluator, but it's up to the evaluator which methods are supported. A evaluator may support registering methods or may only provide pre-specified ones.
Native methods on the other hand are stored as Callback and thus are only usable if the evaluator is run in the application itself. These conditions can't be serialized and should be used with care.
Nuria::TestCall::TestCall | ( | ) |
Creates a invalid instance.
Nuria::TestCall::TestCall | ( | const QString & | name, |
const QVariantList & | args | ||
) |
Creates a instance refering to a named method.
Nuria::TestCall::TestCall | ( | const Nuria::Callback & | callback, |
const QVariantList & | args | ||
) |
Creates a instance refering to a native method.
const QVariantList& Nuria::TestCall::arguments | ( | ) | const |
Returns the arguments which are passed to the method. May contain other Nuria::Field instances, including method calls.
Nuria::Callback Nuria::TestCall::callback | ( | ) | const |
bool Nuria::TestCall::isNative | ( | ) | const |
QString Nuria::TestCall::name | ( | ) | const |
Returns the name of the method if this is a named method. Else a empty string is returned.