strusAnalyzer  0.17
contentIteratorInterface.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  */
10 #ifndef _STRUS_ANALYZER_CONTENT_ITERATOR_INTERFACE_HPP_INCLUDED
11 #define _STRUS_ANALYZER_CONTENT_ITERATOR_INTERFACE_HPP_INCLUDED
14 #include <vector>
15 #include <string>
16 
18 namespace strus
19 {
20 
24 {
25 public:
28 
34  virtual bool getNext(
35  const char*& expression, std::size_t& expressionsize,
36  const char*& segment, std::size_t& segmentsize)=0;
37 };
38 
39 }//namespace
40 #endif
41 
Structure describing an item of the structure statistics analysis of a document.
Structure describing the MIME type plus some attributes that could be relevant for analysis of a docu...
virtual ~ContentIteratorInterface()
Destructor.
Definition: contentIteratorInterface.hpp:27
Defines an iterator on content provided by a segmenter.
Definition: contentIteratorInterface.hpp:23
virtual bool getNext(const char *&expression, std::size_t &expressionsize, const char *&segment, std::size_t &segmentsize)=0
Fetch next content item.