Stride Reference Manual  - generated for commit 9643b11
AbstractPopBuilder.cpp
Go to the documentation of this file.
1 /*
2  * This is free software: you can redistribute it and/or modify it
3  * under the terms of the GNU General Public License as published by
4  * the Free Software Foundation, either version 3 of the License, or
5  * any later version.
6  * The software is distributed in the hope that it will be useful,
7  * but WITHOUT ANY WARRANTY; without even the implied warranty of
8  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
9  * GNU General Public License for more details.
10  * You should have received a copy of the GNU General Public License
11  * along with the software. If not, see <http://www.gnu.org/licenses/>.
12  *
13  * Copyright 2018, 2019 Jan Broeckhove and Bistromatics group.
14  */
15 
21 #include "AbstractPopBuilder.h"
22 
23 #include "util/LogUtils.h"
24 
25 #include <boost/property_tree/ptree.hpp>
26 #include <spdlog/common.h>
27 
28 namespace stride {
29 
30 using namespace std;
31 using namespace boost::property_tree;
32 
33 AbstractPopBuilder::AbstractPopBuilder(const boost::property_tree::ptree& config, util::RnMan& rnMan,
34  std::shared_ptr<spdlog::logger> strideLogger)
35  : m_config(config), m_rn_man(rnMan), m_stride_logger(std::move(strideLogger))
36 {
37  if (!m_stride_logger) {
39  }
40 }
41 
42 } // namespace stride
AbstractPopBuilder(const boost::property_tree::ptree &config, util::RnMan &rnMan, std::shared_ptr< spdlog::logger > strideLogger=nullptr)
Initializing constructor.
STL namespace.
Logging (spdlog) utilities.
std::shared_ptr< spdlog::logger > m_stride_logger
Namespace for the simulator and related classes.
Definition: Calendar.cpp:28
static std::shared_ptr< spdlog::logger > CreateNullLogger(const std::string &logger_name="null_logger")
Return a (not-yet-registered) null logger, without registering it.
Definition: LogUtils.cpp:71
Base Class for PopBuilders.