FMT 0.9.8
Forest management tools for forest planning
Loading...
Searching...
No Matches
FMTdefaultlogger.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 FMTdefaultlogger_H_INCLUDED
9#define FMTdefaultlogger_H_INCLUDED
10#include "FMTlogger.hpp"
11#include <boost/serialization/nvp.hpp>
12
13namespace Logging
14{
15 // DocString: FMTdefaultlogger
21 {
22 // DocString: FMTdefaultlogger::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: FMTdefaultlogger()
38 // DocString: ~FMTdefaultlogger()
42 ~FMTdefaultlogger() = default;
43 // DocString: FMTdefaultlogger::operator=
47 FMTdefaultlogger & operator = (const FMTdefaultlogger & rhs) = default;
48 // DocString: FMTdefaultlogger(const FMTdefaultlogger&)
52 FMTdefaultlogger(const FMTdefaultlogger& rhs) = default;
53 #ifdef FMTWITHOSI
54 // DocString: FMTdefaultlogger::print
59 int print() override;
60 // DocString: FMTdefaultlogger::checkSeverity
65 void checkSeverity() override;
66 // DocString: FMTdefaultlogger::clone
70 FMTlogger* clone() const override;
71 #endif
72 };
73
74}
75
76BOOST_CLASS_EXPORT_KEY(Logging::FMTdefaultlogger)
77
78#endif
#define FMTEXPORT
Definition: FMTutility.hpp:92
Definition: FMTdefaultlogger.hpp:21
void checkSeverity() override
FMTlogger * clone() const override
FMTdefaultlogger(const FMTdefaultlogger &rhs)=default
Definition: FMTlogger.hpp:37
Namespace for the log management, provides different log handlers.
Definition: FMTdebuglogger.hpp:14