Processor provider, the class that provides access to configured global objects to processors. More...
#include <procProvider.hpp>
Classes | |
class | CommandHandlerDef |
Definition of a command handler with its configuration. More... | |
Public Member Functions | |
ProcessorProvider (const ProcProviderConfig *conf, const module::ModulesDirectory *modules, prgbind::ProgramLibrary *programs_) | |
Constructor. More... | |
virtual | ~ProcessorProvider () |
Destructor. More... | |
bool | resolveDB (const db::DatabaseProvider &db) |
Pass the references to the built database interfaces and let the provider find its transaction database. More... | |
bool | loadPrograms () |
Load all configured programs. More... | |
virtual cmdbind::CommandHandler * | cmdhandler (const std::string &command, const std::string &docformat) const |
Create a new command handler for a command and for a document format (e.g. XML,JSON,...) More... | |
virtual cmdbind::ProtocolHandler * | protocolHandler (const std::string &protocol) const |
Create a new protocol handler. More... | |
virtual bool | hasProtocol (const std::string &protocol) const |
Find out if a protocol with a specific name exists. More... | |
virtual bool | hasCommand (const std::string &command) const |
Find out if a command with a specific name exists. More... | |
virtual db::Database * | transactionDatabase () const |
Get a reference to the transaction database. More... | |
virtual db::Transaction * | transaction (const std::string &name) const |
Return a database transaction object for a transaction identified by name. More... | |
virtual db::Transaction * | transaction (const std::string &dbname, const std::string &name) const |
Return a database transaction object for a transaction identified by name on an alternative database than the default transaction database. More... | |
virtual const langbind::AuthorizationFunction * | authorizationFunction (const std::string &name) const |
Get a reference to an authorization function identified by name. More... | |
virtual const langbind::AuditFunction * | auditFunction (const std::string &name) const |
Get a reference to an audit function identified by name. More... | |
virtual const types::NormalizeFunction * | normalizeFunction (const std::string &name) const |
Get a reference to a normalization function identified by name. More... | |
virtual const types::NormalizeFunctionType * | normalizeFunctionType (const std::string &name) const |
Get a reference to a normalization function type identified by name. More... | |
virtual const langbind::FormFunction * | formFunction (const std::string &name) const |
Get a reference to a form function type identified by name. More... | |
virtual const types::FormDescription * | formDescription (const std::string &name) const |
Get a reference to a form description identified by name. More... | |
virtual const langbind::FilterType * | filterType (const std::string &name) const |
Get a reference to a filter type identified by name. More... | |
virtual const types::CustomDataType * | customDataType (const std::string &name) const |
Get a reference to a custom data type identified by name. More... | |
virtual cmdbind::DoctypeDetector * | doctypeDetector () const |
Create a new document type and format detector (defined in modules) More... | |
virtual const std::string & | referencePath () const |
Get the application reference path for local path expansion. More... | |
Public Member Functions inherited from _Wolframe::proc::ProcessorProviderInterface | |
virtual | ~ProcessorProviderInterface () |
Destructor. More... | |
Private Attributes | |
std::string | m_dbLabel |
idenfifier of the transaction database More... | |
db::Database * | m_db |
reference to the transaction database More... | |
const db::DatabaseProvider * | m_dbProvider |
alternative database More... | |
std::vector< CommandHandlerDef > | m_cmd |
list of defined command handlers More... | |
types::keymap< std::size_t > | m_cmdMap |
map of command names to indices in 'm_cmd' More... | |
types::keymap < cmdbind::ProtocolHandlerUnitR > | m_protocols |
map protocol identifiers to handler units More... | |
std::vector < cmdbind::DoctypeDetectorType > | m_doctypes |
list of document type detectors loaded from modules More... | |
std::vector< std::string > | m_programfiles |
list of all programs to load More... | |
prgbind::ProgramLibrary * | m_programs |
program library More... | |
std::string | m_referencePath |
application reference path More... | |
Processor provider, the class that provides access to configured global objects to processors.
_Wolframe::proc::ProcessorProvider::ProcessorProvider | ( | const ProcProviderConfig * | conf, |
const module::ModulesDirectory * | modules, | ||
prgbind::ProgramLibrary * | programs_ | ||
) |
Constructor.
|
virtual |
Destructor.
|
virtual |
Get a reference to an audit function identified by name.
Implements _Wolframe::proc::ProcessorProviderInterface.
|
virtual |
Get a reference to an authorization function identified by name.
Implements _Wolframe::proc::ProcessorProviderInterface.
|
virtual |
Create a new command handler for a command and for a document format (e.g. XML,JSON,...)
Implements _Wolframe::proc::ProcessorProviderInterface.
|
virtual |
Get a reference to a custom data type identified by name.
Implements _Wolframe::proc::ProcessorProviderInterface.
|
virtual |
Create a new document type and format detector (defined in modules)
Implements _Wolframe::proc::ProcessorProviderInterface.
|
virtual |
Get a reference to a filter type identified by name.
Implements _Wolframe::proc::ProcessorProviderInterface.
|
virtual |
Get a reference to a form description identified by name.
Implements _Wolframe::proc::ProcessorProviderInterface.
|
virtual |
Get a reference to a form function type identified by name.
Implements _Wolframe::proc::ProcessorProviderInterface.
|
virtual |
Find out if a command with a specific name exists.
Implements _Wolframe::proc::ProcessorProviderInterface.
|
virtual |
Find out if a protocol with a specific name exists.
Implements _Wolframe::proc::ProcessorProviderInterface.
bool _Wolframe::proc::ProcessorProvider::loadPrograms | ( | ) |
Load all configured programs.
|
virtual |
Get a reference to a normalization function identified by name.
Implements _Wolframe::proc::ProcessorProviderInterface.
|
virtual |
Get a reference to a normalization function type identified by name.
Implements _Wolframe::proc::ProcessorProviderInterface.
|
virtual |
Create a new protocol handler.
Implements _Wolframe::proc::ProcessorProviderInterface.
|
virtual |
Get the application reference path for local path expansion.
Implements _Wolframe::proc::ProcessorProviderInterface.
bool _Wolframe::proc::ProcessorProvider::resolveDB | ( | const db::DatabaseProvider & | db | ) |
Pass the references to the built database interfaces and let the provider find its transaction database.
|
virtual |
Return a database transaction object for a transaction identified by name.
Implements _Wolframe::proc::ProcessorProviderInterface.
|
virtual |
Return a database transaction object for a transaction identified by name on an alternative database than the default transaction database.
Implements _Wolframe::proc::ProcessorProviderInterface.
|
virtual |
Get a reference to the transaction database.
Implements _Wolframe::proc::ProcessorProviderInterface.
|
private |
list of defined command handlers
|
private |
map of command names to indices in 'm_cmd'
|
private |
reference to the transaction database
|
private |
idenfifier of the transaction database
|
private |
alternative database
|
private |
list of document type detectors loaded from modules
|
private |
list of all programs to load
|
private |
program library
|
private |
map protocol identifiers to handler units
|
private |
application reference path
Copyright © 2014 - Project Wolframe - All Rights Reserved