strusAnalyzer  0.17
aggregatorFunctionInterface.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_AGGREGATOR_INTERFACE_HPP_INCLUDED
11 #define _STRUS_ANALYZER_AGGREGATOR_INTERFACE_HPP_INCLUDED
12 #include <vector>
13 #include <string>
14 
16 namespace strus
17 {
18 
20 class AggregatorFunctionInstanceInterface;
21 
25 {
26 public:
29 
33  virtual AggregatorFunctionInstanceInterface* createInstance( const std::vector<std::string>& args) const=0;
34 
37  virtual const char* getDescription() const=0;
38 };
39 
40 }//namespace
41 #endif
42 
virtual ~AggregatorFunctionInterface()
Destructor.
Definition: aggregatorFunctionInterface.hpp:28
Interface for the aggregator function constructor.
Definition: aggregatorFunctionInterface.hpp:24
virtual AggregatorFunctionInstanceInterface * createInstance(const std::vector< std::string > &args) const =0
Create a parameterized aggregator function instance.
virtual const char * getDescription() const =0
Get a description of the function for user help.
Interface for a parameterized aggregator function.
Definition: aggregatorFunctionInstanceInterface.hpp:22