kDB: Knowledge DataBase
|
#include <Action.h>
Public Member Functions | |
virtual knowCore::ReturnValue< knowCore::Value > | execute (const Context &_context, const QString &_key, const knowCore::ValueHash &_parameters)=0 |
Define an action to be executed by the krQuery engine. If holding a reference to a Connection, it should use a knowCore::WeakReference<Connection>, as the action will be indirectly owned by the connection object. However, this is not strictly needed as the Connection is given during execution in the Context.
|
pure virtual |
Execute the action with the given _key and _parameters
Implemented in kDB::Repository::krQuery::QueryActions::Test, kDBBaseKnowledge::krQueryAction, kDBDatasets::krQueryActions::Dataset, kDBSensing::krQueryActions::SalientRegion, TestAction, and TestFailAction.