9 #ifndef _STRUS_ANALYZER_PROGRAM_LOAD_LIB_STD_HPP_INCLUDED
10 #define _STRUS_ANALYZER_PROGRAM_LOAD_LIB_STD_HPP_INCLUDED
18 class ErrorBufferInterface;
20 class DocumentAnalyzerInstanceInterface;
22 class QueryAnalyzerInstanceInterface;
24 class TextProcessorInterface;
26 class DocumentAnalyzerMapInterface;
28 class PatternLexerInstanceInterface;
30 class PatternMatcherInstanceInterface;
32 class PatternTermFeederInstanceInterface;
39 const std::string& src,
40 ErrorBufferInterface* errorhnd);
48 DocumentAnalyzerInstanceInterface* analyzer,
49 const TextProcessorInterface* textproc,
50 const std::string& content,
51 ErrorBufferInterface* errorhnd);
59 DocumentAnalyzerInstanceInterface* analyzer,
60 const TextProcessorInterface* textproc,
61 const std::string& filename,
62 ErrorBufferInterface* errorhnd);
70 QueryAnalyzerInstanceInterface* analyzer,
71 const TextProcessorInterface* textproc,
72 const std::string& content,
73 ErrorBufferInterface* errorhnd);
81 QueryAnalyzerInstanceInterface* analyzer,
82 const TextProcessorInterface* textproc,
83 const std::string& filename,
84 ErrorBufferInterface* errorhnd);
92 const TextProcessorInterface* textproc,
93 const std::string& filename,
94 ErrorBufferInterface* errorhnd);
101 const std::string& source,
102 ErrorBufferInterface* errorhnd);
111 DocumentAnalyzerMapInterface* analyzermap,
112 const TextProcessorInterface* textproc,
113 const std::string& source,
114 ErrorBufferInterface* errorhnd);
123 DocumentAnalyzerMapInterface* analyzermap,
124 const TextProcessorInterface* textproc,
125 const std::string& filename,
126 ErrorBufferInterface* errorhnd);
136 const TextProcessorInterface* textproc,
137 PatternTermFeederInstanceInterface* feeder,
138 PatternMatcherInstanceInterface* matcher,
139 const std::string& content,
140 ErrorBufferInterface* errorhnd);
150 const TextProcessorInterface* textproc,
151 PatternTermFeederInstanceInterface* feeder,
152 PatternMatcherInstanceInterface* matcher,
153 const std::string& filename,
154 ErrorBufferInterface* errorhnd);
164 const TextProcessorInterface* textproc,
165 PatternLexerInstanceInterface* lexer,
166 PatternMatcherInstanceInterface* matcher,
167 const std::string& content,
168 ErrorBufferInterface* errorhnd);
178 const TextProcessorInterface* textproc,
179 PatternLexerInstanceInterface* lexer,
180 PatternMatcherInstanceInterface* matcher,
181 const std::string& filename,
182 ErrorBufferInterface* errorhnd);
bool load_QueryAnalyzer_program_std(QueryAnalyzerInstanceInterface *analyzer, const TextProcessorInterface *textproc, const std::string &content, ErrorBufferInterface *errorhnd)
Load a program given as source without includes to a document analyzer.
Structure describing the MIME type plus some attributes that could be relevant for analysis of a docu...
bool load_DocumentAnalyzer_program_std(DocumentAnalyzerInstanceInterface *analyzer, const TextProcessorInterface *textproc, const std::string &content, ErrorBufferInterface *errorhnd)
Load a program given as source without includes to a document analyzer.
bool is_DocumentAnalyzer_programfile(const TextProcessorInterface *textproc, const std::string &filename, ErrorBufferInterface *errorhnd)
Test if a file is an analyzer program file.
bool load_DocumentAnalyzerMap_programfile(DocumentAnalyzerMapInterface *analyzermap, const TextProcessorInterface *textproc, const std::string &filename, ErrorBufferInterface *errorhnd)
Load a map of definitions describing how different document types are mapped to an analyzer program f...
bool load_QueryAnalyzer_programfile_std(QueryAnalyzerInstanceInterface *analyzer, const TextProcessorInterface *textproc, const std::string &filename, ErrorBufferInterface *errorhnd)
Load a program given as source file name to a query analyzer, recursively expanding include directive...
bool load_PatternMatcher_programfile(const TextProcessorInterface *textproc, PatternTermFeederInstanceInterface *feeder, PatternMatcherInstanceInterface *matcher, const std::string &filename, ErrorBufferInterface *errorhnd)
Load a pattern matcher program with a term feeder from a resource file.
bool load_DocumentAnalyzer_programfile_std(DocumentAnalyzerInstanceInterface *analyzer, const TextProcessorInterface *textproc, const std::string &filename, ErrorBufferInterface *errorhnd)
Load a program given as source file name to a document analyzer, recursively expanding include direct...
bool load_PatternMatcher_program(const TextProcessorInterface *textproc, PatternTermFeederInstanceInterface *feeder, PatternMatcherInstanceInterface *matcher, const std::string &content, ErrorBufferInterface *errorhnd)
Load a pattern matcher program with a term feeder from source.
analyzer::DocumentClass parse_DocumentClass(const std::string &src, ErrorBufferInterface *errorhnd)
parse the document class from source
bool is_DocumentAnalyzer_program(const std::string &source, ErrorBufferInterface *errorhnd)
Test if a file is an analyzer program file.
bool load_DocumentAnalyzerMap_program(DocumentAnalyzerMapInterface *analyzermap, const TextProcessorInterface *textproc, const std::string &source, ErrorBufferInterface *errorhnd)
Load a map of definitions describing how different document types are mapped to an analyzer program f...