strusAnalyzer  0.17
subDocumentDefinitionView.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_DOCUMENT_DEFINITION_VIEW_HPP_INCLUDED
12 #define _STRUS_ANALYZER_SUB_DOCUMENT_DEFINITION_VIEW_HPP_INCLUDED
14 
16 namespace strus {
18 namespace analyzer {
19 
23 {
24 public:
29  :m_subDocumentTypeName(o.m_subDocumentTypeName),m_selectexpr(o.m_selectexpr){}
33  SubDocumentDefinitionView( const std::string& name_, const std::string& selectexpr_)
34  :m_subDocumentTypeName(name_),m_selectexpr(selectexpr_){}
35 
38  const std::string& subDocumentTypeName() const {return m_subDocumentTypeName;}
39 
42  const std::string& selection() const {return m_selectexpr;}
43 
44 private:
45  std::string m_subDocumentTypeName;
46  std::string m_selectexpr;
47 };
48 
49 }}//namespace
50 #endif
51 
SubDocumentDefinitionView()
Default constructor.
Definition: subDocumentDefinitionView.hpp:26
const std::string & subDocumentTypeName() const
Get the name of this sub document type.
Definition: subDocumentDefinitionView.hpp:38
const std::string & selection() const
Get the segmenter selection expression.
Definition: subDocumentDefinitionView.hpp:42
SubDocumentDefinitionView(const SubDocumentDefinitionView &o)
Copy constructor.
Definition: subDocumentDefinitionView.hpp:28
Structure describing the internal representation of a sub document definition in the document analyze...
Definition: subDocumentDefinitionView.hpp:22
Structure describing the internal representation of a sub document definition in the document analyze...
SubDocumentDefinitionView(const std::string &name_, const std::string &selectexpr_)
Constructor.
Definition: subDocumentDefinitionView.hpp:33