kDB: Knowledge DataBase
Loading...
Searching...
No Matches
kDBDocuments::kdQLFileLoader Class Reference
Inheritance diagram for kDBDocuments::kdQLFileLoader:
Collaboration diagram for kDBDocuments::kdQLFileLoader:

Public Member Functions

bool canLoad (const QString &_path, const QString &_mime_type, const knowCore::ValueHash &_options) override
 
cres_qresult< QStringListloadFile (const QString &_path, const kDB::Repository::Connection &_connection, const knowCore::ValueHash &_options) override
 
- Public Member Functions inherited from kDBBaseKnowledge::Interfaces::FileLoader

Member Function Documentation

◆ canLoad()

bool kdQLFileLoader::canLoad ( const QString & _path,
const QString & _mime_type,
const knowCore::ValueHash & _options )
overridevirtual

Check if this loader can be used on a specific file. _options contains an options file that is store alongside a base knowledge YAML file.

Implements kDBBaseKnowledge::Interfaces::FileLoader.

◆ loadFile()

cres_qresult< QStringList > kdQLFileLoader::loadFile ( const QString & _path,
const kDB::Repository::Connection & _connection,
const knowCore::ValueHash & _options )
overridevirtual

Load the file from _path into the database for the given connection _connection.

Returns
a list of files on which this file depend.

Implements kDBBaseKnowledge::Interfaces::FileLoader.


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