FMT 0.9.8
Forest management tools for forest planning
Loading...
Searching...
No Matches
FMTdebuglogger.hpp
Go to the documentation of this file.
1/*
2Copyright (c) 2019 Gouvernement du Québec
3
4SPDX-License-Identifier: LiLiQ-R-1.1
5License-Filename: LICENSES/EN/LiLiQ-R11unicode.txt
6*/
7
8#ifndef FMTdebuglogger_H_INCLUDED
9#define FMTdebuglogger_H_INCLUDED
10#include "FMTlogger.hpp"
11#include <boost/serialization/nvp.hpp>
12
13namespace Logging
14{
15 // DocString: FMTdebuglogger
20 class FMTEXPORT FMTdebuglogger final : public FMTlogger
21 {
22 // DocString: FMTdebuglogger::serialize
26 friend class boost::serialization::access;
27 template<class Archive>
28 void serialize(Archive& ar, const unsigned int version)
29 {
30 ar & boost::serialization::make_nvp("FMTlogger", boost::serialization::base_object<FMTlogger>(*this));
31 }
32 public:
33 // DocString: FMTdebuglogger()
38 // DocString: FMTdebuglogger::operator=
42 FMTdebuglogger & operator = (const FMTdebuglogger & rhs) = default;
43 // DocString: FMTdebuglogger(const FMTdebuglogger&)
47 FMTdebuglogger(const FMTdebuglogger& rhs) = default;
48 #ifdef FMTWITHOSI
49 // DocString: FMTdebuglogger::print
54 int print() override;
55 // DocString: FMTdebuglogger::checkSeverity
60 void checkSeverity() override;
61 // DocString: FMTdebuglogger::clone
65 FMTlogger* clone() const override;
66 #endif
67 // DocString: FMTdebuglogger()
71 ~FMTdebuglogger() = default;
72 };
73}
74
75BOOST_CLASS_EXPORT_KEY(Logging::FMTdebuglogger)
76
77#endif
78
#define FMTEXPORT
Definition: FMTutility.hpp:92
Definition: FMTdebuglogger.hpp:21
int print() override
void checkSeverity() override
FMTdebuglogger(const FMTdebuglogger &rhs)=default
FMTlogger * clone() const override
Definition: FMTlogger.hpp:37
Namespace for the log management, provides different log handlers.
Definition: FMTdebuglogger.hpp:14