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

#include <QueryActions.h>

Inheritance diagram for kDB::Repository::krQuery::QueryActions::Test:
Collaboration diagram for kDB::Repository::krQuery::QueryActions::Test:

Classes

struct  Private
 

Public Member Functions

cres_qresult< knowCore::Valueexecute (const kDB::Repository::krQuery::Context &_context, const QString &_key, const knowCore::ValueHash &_parameters) override
 
- Public Member Functions inherited from kDB::Repository::krQuery::Interfaces::Action

Detailed Description

Define a krQL Query that reacts to "test" for testing purposes.

For instance:

test:
print: a message
return: 42

Print "a message" in a terminal and return 42.

Member Function Documentation

◆ execute()

cres_qresult< knowCore::Value > Test::execute ( const kDB::Repository::krQuery::Context & _context,
const QString & _key,
const knowCore::ValueHash & _parameters )
overridevirtual

Execute the action with the given _key and _parameters

Implements kDB::Repository::krQuery::Interfaces::Action.


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