kDB: Knowledge DataBase
|
#include <Engine.h>
Public Member Functions | |
Engine (const kDB::Repository::Connection &_connection) | |
void | add (const QStringList &_keys, Interfaces::Action *_action, bool _action_owned_by_engine) |
void | remove (Interfaces::Action *_action) |
knowCore::ReturnValue< knowCore::Value > | execute (const QString &_text) |
knowCore::ReturnValue< knowCore::Value > | execute (const Context &_context, const QString &_text) |
Execution engine for k(DB) Request Query Language
void kDB::Repository::krQuery::Engine::add | ( | const QStringList & | _keys, |
Interfaces::Action * | _action, | ||
bool | _action_owned_by_engine ) |
Add an _action for the list of _keys.
_action_owned_by_engine | set to true if the action should be deleted by the engine |
_keys take the form of "SOME ACTION" and will react to query with "SOME ACTION".
knowCore::ReturnValue< knowCore::Value > kDB::Repository::krQuery::Engine::execute | ( | const Context & | _context, |
const QString & | _text ) |
Execute a query with the given context.
knowCore::ReturnValue< knowCore::Value > kDB::Repository::krQuery::Engine::execute | ( | const QString & | _text | ) |
Execute a query. Using a default context.
void kDB::Repository::krQuery::Engine::remove | ( | Interfaces::Action * | _action | ) |
Remove the action. Do note that if the action will not be owned anymore by the engine, and the responsability for deletion is in the caller.