strusAnalyzer  0.17
patternMatcherInterface.hpp
Go to the documentation of this file.
1 /*
2  * Copyright (c) 2016 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_PATTERN_MATCH_INTERFACE_HPP_INCLUDED
11 #define _STRUS_ANALYZER_PATTERN_MATCH_INTERFACE_HPP_INCLUDED
12 #include <vector>
13 #include <string>
14 
15 namespace strus
16 {
18 class PatternMatcherInstanceInterface;
19 
22 {
23 public:
26 
29  virtual std::vector<std::string> getCompileOptionNames() const=0;
30 
34 
37  virtual const char* getDescription() const=0;
38 };
39 
40 } //namespace
41 #endif
42 
virtual ~PatternMatcherInterface()
Destructor.
Definition: patternMatcherInterface.hpp:25
Interface for creating an automaton for detecting patterns of tokens in a document stream...
Definition: patternMatcherInterface.hpp:21
Interface for building the automaton for detecting patterns in text.
Definition: patternMatcherInstanceInterface.hpp:22
virtual PatternMatcherInstanceInterface * createInstance() const =0
Create an instance to build the rules of a pattern matcher.
virtual const char * getDescription() const =0
Get a description of the function for user help.
virtual std::vector< std::string > getCompileOptionNames() const =0
Get the list of option names you can pass to PatternMatcherInstanceInterface::compile.