strusAnalyzer  0.17
subContentDefinitionView.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  */
11 #ifndef _STRUS_ANALYZER_SUB_CONTENT_DEFINITION_VIEW_HPP_INCLUDED
12 #define _STRUS_ANALYZER_SUB_CONTENT_DEFINITION_VIEW_HPP_INCLUDED
14 
16 namespace strus {
18 namespace analyzer {
19 
23 {
24 public:
29  :m_selectexpr(o.m_selectexpr),m_documentClass(o.m_documentClass){}
30 
34  SubContentDefinitionView( const std::string& selectexpr_, const analyzer::DocumentClass& documentClass_)
35  :m_selectexpr(selectexpr_),m_documentClass(documentClass_){}
36 
39  const analyzer::DocumentClass& documentClass() const {return m_documentClass;}
40 
43  const std::string& selection() const {return m_selectexpr;}
44 
45 private:
46  std::string m_selectexpr;
47  analyzer::DocumentClass m_documentClass;
48 };
49 
50 }}//namespace
51 #endif
52 
Defines a description of the properties of an original document processed by the segmenter.
Definition: documentClass.hpp:21
SubContentDefinitionView()
Default constructor.
Definition: subContentDefinitionView.hpp:26
Structure describing the MIME type plus some attributes that could be relevant for analysis of a docu...
const analyzer::DocumentClass & documentClass() const
Get the name of this sub document type.
Definition: subContentDefinitionView.hpp:39
SubContentDefinitionView(const SubContentDefinitionView &o)
Copy constructor.
Definition: subContentDefinitionView.hpp:28
Structure describing the internal representation of a sub content definition in the document analyzer...
Definition: subContentDefinitionView.hpp:22
const std::string & selection() const
Get the segmenter selection expression.
Definition: subContentDefinitionView.hpp:43
SubContentDefinitionView(const std::string &selectexpr_, const analyzer::DocumentClass &documentClass_)
Constructor.
Definition: subContentDefinitionView.hpp:34