kDB: Knowledge DataBase
Loading...
Searching...
No Matches
kDB::Repository::krQuery::Engine Class Reference

#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::Valueexecute (const QString &_text)
 
knowCore::ReturnValue< knowCore::Valueexecute (const Context &_context, const QString &_text)
 

Detailed Description

Execution engine for k(DB) Request Query Language

Member Function Documentation

◆ add()

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.

Parameters
_action_owned_by_engineset 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".

◆ execute() [1/2]

knowCore::ReturnValue< knowCore::Value > kDB::Repository::krQuery::Engine::execute ( const Context & _context,
const QString & _text )

Execute a query with the given context.

◆ execute() [2/2]

knowCore::ReturnValue< knowCore::Value > kDB::Repository::krQuery::Engine::execute ( const QString & _text)

Execute a query. Using a default context.

◆ remove()

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.


The documentation for this class was generated from the following file: