strusAnalyzer  0.17
documentAnalyzerMapView.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_DOCUMENT_ANALYZER_MAP_VIEW_HPP_INCLUDED
12 #define _STRUS_ANALYZER_DOCUMENT_ANALYZER_MAP_VIEW_HPP_INCLUDED
14 #include <string>
15 #include <vector>
16 
18 namespace strus {
20 namespace analyzer {
21 
25 {
26 public:
28  :m_mimeType(o.m_mimeType),m_scheme(o.m_scheme),m_analyzer(o.m_analyzer){}
29  DocumentAnalyzerMapElementView( const std::string& mimeType_, const std::string& scheme_, const DocumentAnalyzerView& analyzer_)
30  :m_mimeType(mimeType_),m_scheme(scheme_),m_analyzer(analyzer_){}
31 
32  const std::string& mimeType() const {return m_mimeType;}
33  const std::string& scheme() const {return m_scheme;}
34  const DocumentAnalyzerView& analyzer() const {return m_analyzer;}
35 
36 private:
37  std::string m_mimeType;
38  std::string m_scheme;
39  DocumentAnalyzerView m_analyzer;
40 };
41 
45 {
46 public:
51  :m_definitions(o.m_definitions)
52  {}
55  DocumentAnalyzerMapView( const std::vector<DocumentAnalyzerMapElementView>& definitions_)
56  :m_definitions(definitions_)
57  {}
58 
59  const std::vector<DocumentAnalyzerMapElementView>& definitions() const {return m_definitions;}
60 
61 private:
62  std::vector<DocumentAnalyzerMapElementView> m_definitions;
63 };
64 
65 }}//namespace
66 #endif
67 
Structure describing the internal representation of a document analyzer map for introspection.
Definition: documentAnalyzerMapView.hpp:44
Structure describing the internal representation of a document analyzer for introspection.
const std::vector< DocumentAnalyzerMapElementView > & definitions() const
Definition: documentAnalyzerMapView.hpp:59
const std::string & mimeType() const
Definition: documentAnalyzerMapView.hpp:32
DocumentAnalyzerMapElementView(const DocumentAnalyzerMapElementView &o)
Definition: documentAnalyzerMapView.hpp:27
DocumentAnalyzerMapView()
Default constructor.
Definition: documentAnalyzerMapView.hpp:48
DocumentAnalyzerMapView(const std::vector< DocumentAnalyzerMapElementView > &definitions_)
Constructor.
Definition: documentAnalyzerMapView.hpp:55
const DocumentAnalyzerView & analyzer() const
Definition: documentAnalyzerMapView.hpp:34
const std::string & scheme() const
Definition: documentAnalyzerMapView.hpp:33
DocumentAnalyzerMapElementView(const std::string &mimeType_, const std::string &scheme_, const DocumentAnalyzerView &analyzer_)
Definition: documentAnalyzerMapView.hpp:29
Structure describing the internal representation of a document analyzer for introspection.
Definition: documentAnalyzerView.hpp:26
DocumentAnalyzerMapView(const DocumentAnalyzerMapView &o)
Copy constructor.
Definition: documentAnalyzerMapView.hpp:50
Structure describing the internal representation of one element of a document analyzer map for intros...
Definition: documentAnalyzerMapView.hpp:24