strusAnalyzer  0.17
documentAnalyzerContextInterface.hpp
Go to the documentation of this file.
1 /*
2  * Copyright (c) 2014 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  */
10 #ifndef _STRUS_ANALYZER_DOCUMENT_ANALYZER_CONTEXT_INTERFACE_HPP_INCLUDED
11 #define _STRUS_ANALYZER_DOCUMENT_ANALYZER_CONTEXT_INTERFACE_HPP_INCLUDED
13 #include <vector>
14 #include <string>
15 
17 namespace strus
18 {
19 
22 {
23 public:
26 
31  virtual void putInput( const char* chunk, std::size_t chunksize, bool eof)=0;
32 
36  virtual bool analyzeNext( analyzer::Document& doc)=0;
37 };
38 
39 }//namespace
40 #endif
virtual bool analyzeNext(analyzer::Document &doc)=0
Analyze the next sub document from the input feeded with putInput(const char*,std::size_t) ...
Defines the context for analyzing multi part documents, iterating on the sub documents defined...
Definition: documentAnalyzerContextInterface.hpp:21
virtual ~DocumentAnalyzerContextInterface()
Destructor.
Definition: documentAnalyzerContextInterface.hpp:25
virtual void putInput(const char *chunk, std::size_t chunksize, bool eof)=0
Feed the analyzer with the next chunk of input to process.
Structure of a document as result of document analysis.
Structure of a document created as result of a document analysis.
Definition: document.hpp:25