strusAnalyzer  0.17
analyzer_prgload_std.hpp
Go to the documentation of this file.
1 /*
2  * Copyright (c) 2018 Patrick P. Frey
3  *
4  * This Source Code Form is subject to the terms of the Mozilla Public
5  * License, v. 2.0. If a copy of the MPL was not distributed with this
6  * file, You can obtain one at http://mozilla.org/MPL/2.0/.
7  */
9 #ifndef _STRUS_ANALYZER_PROGRAM_LOAD_LIB_STD_HPP_INCLUDED
10 #define _STRUS_ANALYZER_PROGRAM_LOAD_LIB_STD_HPP_INCLUDED
12 #include <string>
13 #include <vector>
14 
15 namespace strus {
16 
18 class ErrorBufferInterface;
20 class DocumentAnalyzerInstanceInterface;
22 class QueryAnalyzerInstanceInterface;
24 class TextProcessorInterface;
26 class DocumentAnalyzerMapInterface;
28 class PatternLexerInstanceInterface;
30 class PatternMatcherInstanceInterface;
32 class PatternTermFeederInstanceInterface;
33 
38 analyzer::DocumentClass parse_DocumentClass(
39  const std::string& src,
40  ErrorBufferInterface* errorhnd);
41 
48  DocumentAnalyzerInstanceInterface* analyzer,
49  const TextProcessorInterface* textproc,
50  const std::string& content,
51  ErrorBufferInterface* errorhnd);
52 
59  DocumentAnalyzerInstanceInterface* analyzer,
60  const TextProcessorInterface* textproc,
61  const std::string& filename,
62  ErrorBufferInterface* errorhnd);
63 
70  QueryAnalyzerInstanceInterface* analyzer,
71  const TextProcessorInterface* textproc,
72  const std::string& content,
73  ErrorBufferInterface* errorhnd);
74 
81  QueryAnalyzerInstanceInterface* analyzer,
82  const TextProcessorInterface* textproc,
83  const std::string& filename,
84  ErrorBufferInterface* errorhnd);
85 
92  const TextProcessorInterface* textproc,
93  const std::string& filename,
94  ErrorBufferInterface* errorhnd);
95 
101  const std::string& source,
102  ErrorBufferInterface* errorhnd);
103 
111  DocumentAnalyzerMapInterface* analyzermap,
112  const TextProcessorInterface* textproc,
113  const std::string& source,
114  ErrorBufferInterface* errorhnd);
115 
123  DocumentAnalyzerMapInterface* analyzermap,
124  const TextProcessorInterface* textproc,
125  const std::string& filename,
126  ErrorBufferInterface* errorhnd);
127 
136  const TextProcessorInterface* textproc,
137  PatternTermFeederInstanceInterface* feeder,
138  PatternMatcherInstanceInterface* matcher,
139  const std::string& content,
140  ErrorBufferInterface* errorhnd);
141 
150  const TextProcessorInterface* textproc,
151  PatternTermFeederInstanceInterface* feeder,
152  PatternMatcherInstanceInterface* matcher,
153  const std::string& filename,
154  ErrorBufferInterface* errorhnd);
155 
164  const TextProcessorInterface* textproc,
165  PatternLexerInstanceInterface* lexer,
166  PatternMatcherInstanceInterface* matcher,
167  const std::string& content,
168  ErrorBufferInterface* errorhnd);
169 
178  const TextProcessorInterface* textproc,
179  PatternLexerInstanceInterface* lexer,
180  PatternMatcherInstanceInterface* matcher,
181  const std::string& filename,
182  ErrorBufferInterface* errorhnd);
183 
184 } //namespace
185 #endif
186 
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...