Definition: commandHandler.hpp:61
Command handler interface.
Definition: commandHandler.hpp:54
Abstract class as processor provider interface.
Definition: procProviderInterface.hpp:81
boost::shared_ptr< CommandHandlerUnit > CommandHandlerUnitR
Command handler unit reference.
Definition: commandHandler.hpp:166
virtual ~CommandHandler()
Destructor.
Definition: commandHandler.hpp:69
virtual ~CommandHandlerUnit()
Destructor.
Definition: commandHandler.hpp:153
Document type information representation created by a document type recognizer.
Definition: doctypeinfo.hpp:45
Structure for document type and format.
void setLastError(const std::string &msg)
Set the last error message of command execution to be returned to the client.
Definition: commandHandler.hpp:94
Execution context passed to functions for referencing resources and to define authorization dependend...
Definition: execContext.hpp:47
const types::DoctypeInfo * doctypeInfo() const
Get info about processed document type.
Definition: commandHandler.hpp:114
virtual bool loadPrograms(const proc::ProcessorProviderInterface *provider)=0
Load all configured programs.
const char * lastError() const
Get the last error message of command execution to be returned to the client.
Definition: commandHandler.hpp:88
virtual void setOutputChunkSize(std::size_t outputChunkSize_)
Set a hint for the size of output chunks in bytes.
Definition: commandHandler.hpp:132
Definition: commandHandler.hpp:59
Interface to processor provider for language bindings and database.
std::size_t outputChunkSize() const
Get a hint for the size of output chunks in bytes.
Definition: commandHandler.hpp:126
proc::ExecContext * execContext()
Get the reference to the processor provider.
Definition: commandHandler.hpp:108
std::size_t m_outputChunkSize
Hint for the size of output chunks.
Definition: commandHandler.hpp:141
boost::shared_ptr< CommandHandler > CommandHandlerR
Definition: commandHandler.hpp:144
virtual void setDoctypeInfo(const types::DoctypeInfoR &doctypeinfo_)
Set info about processed document type.
Definition: commandHandler.hpp:120
Definition: commandHandler.hpp:60
Operation
Operation type.
Definition: commandHandler.hpp:58
std::string m_lastError
Error operation for the client.
Definition: commandHandler.hpp:138
virtual std::vector< std::string > commands() const =0
Get the list of all commands inplemented by this command handler.
virtual CommandHandler * createCommandHandler(const std::string &cmdname, const std::string &docformat)=0
Create an instance of this command handler.