crawlserv++  [under development]
Application for crawling and analyzing textual content of websites.
ConfigProperties.hpp
Go to the documentation of this file.
1 /*
2  *
3  * ---
4  *
5  * Copyright (C) 2020 Anselm Schmidt (ans[ät]ohai.su)
6  *
7  * This program is free software: you can redistribute it and/or modify
8  * it under the terms of the GNU General Public License as published by
9  * the Free Software Foundation, either version 3 of the License, or
10  * (at your option) any later version in addition to the terms of any
11  * licences already herein identified.
12  *
13  * This program is distributed in the hope that it will be useful,
14  * but WITHOUT ANY WARRANTY; without even the implied warranty of
15  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16  * GNU General Public License for more details.
17  *
18  * You should have received a copy of the GNU General Public License
19  * along with this program. If not, see <https://www.gnu.org/licenses/>.
20  *
21  * ---
22  *
23  * ConfigProperties.hpp
24  *
25  * Configuration properties (module, name and configuration).
26  *
27  * Created on: Feb 2, 2019
28  * Author: ans
29  */
30 
31 
32 #ifndef STRUCT_CONFIGPROPERTIES_HPP_
33 #define STRUCT_CONFIGPROPERTIES_HPP_
34 
35 #include <string> // std::string
36 
37 namespace crawlservpp::Struct {
38 
43 
45  std::string module;
46 
48  std::string name;
49 
51  std::string config;
52 
56 
58  ConfigProperties() = default;
59 
61 
70  const std::string& setModule,
71  const std::string& setName,
72  const std::string& setConfig
73  ) : module(setModule), name(setName), config(setConfig) {}
74 
76  };
77 
78 } /* namespace crawlservpp::Struct */
79 
80 #endif /* STRUCT_CONFIGPROPERTIES_HPP_ */
81 
ConfigProperties()=default
Default constructor.
std::string module
The name of the module using the configuration.
Definition: ConfigProperties.hpp:45
ConfigProperties(const std::string &setModule, const std::string &setName, const std::string &setConfig)
Constructor setting module, name and configuration string.
Definition: ConfigProperties.hpp:69
std::string config
The configuration string containing JSON.
Definition: ConfigProperties.hpp:51
std::string name
The name of the configuration.
Definition: ConfigProperties.hpp:48
Namespace for data structures.
Definition: AlgoThreadProperties.hpp:43
Configuration properties containing its module, name, and JSON string.
Definition: ConfigProperties.hpp:40