strus  0.17
statisticsProcessorInterface.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_STATISTICS_PROCESSOR_INTERFACE_HPP_INCLUDED
11 #define _STRUS_STATISTICS_PROCESSOR_INTERFACE_HPP_INCLUDED
12 #include <string>
13 
14 namespace strus
15 {
16 
18 class StatisticsViewerInterface;
20 class StatisticsBuilderInterface;
21 
25 {
26 public:
29 
35  const void* msgptr, std::size_t msgsize) const=0;
36 
40  virtual StatisticsBuilderInterface* createBuilder() const=0;
41 };
42 
43 }//namespace
44 #endif
45 
Interface for a viewer of a statistics message (distributed index)
Definition: statisticsViewerInterface.hpp:18
virtual ~StatisticsProcessorInterface()
Destructor.
Definition: statisticsProcessorInterface.hpp:28
Interface for a builder for a statistics message (distributed index)
Definition: statisticsBuilderInterface.hpp:19
virtual StatisticsBuilderInterface * createBuilder() const =0
Creates a builder for a statistics message.
Interface for packing/unpacking messages with statistics used for query evaluation.
Definition: statisticsProcessorInterface.hpp:24
virtual StatisticsViewerInterface * createViewer(const void *msgptr, std::size_t msgsize) const =0
Creates a viewer for the contents of a statistics message.