FMT 0.9.8
Forest management tools for forest planning
Loading...
Searching...
No Matches
FMTtasklogger.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 FMTtasklogger_H_INCLUDED
9#define FMTtasklogger_H_INCLUDED
10
11#include "FMTlogger.hpp"
12#include "FMTutility.hpp"
13#include <boost/serialization/nvp.hpp>
14
15namespace Logging
16{
17// DocString: FMTtasklogger
21class FMTEXPORT FMTtasklogger final : public FMTlogger
22 {
23 // DocString: FMTtasklogger::serialize
27 friend class boost::serialization::access;
28 template<class Archive>
29 void serialize(Archive& ar, const unsigned int version)
30 {
31 ar & boost::serialization::make_nvp("FMTlogger", boost::serialization::base_object<FMTlogger>(*this));
32 }
33 public:
34 // DocString: FMTtasklogger()
39 // DocString: FMTtasklogger(const FMTtasklogger&)
43 FMTtasklogger(const FMTtasklogger&) = default;
44 // DocString: FMTtasklogger::operator=
48 FMTtasklogger& operator = (const FMTtasklogger&) = default;
49 // DocString: FMTtasklogger::~FMTtasklogger
53 ~FMTtasklogger()=default;
54 #ifdef FMTWITHOSI
55 // DocString: FMTtasklogger::print
60 int print() override;
61 // DocString: FMTtasklogger::checkSeverity
65 void checkSeverity() override;
66 // DocString: FMTtasklogger::clone
70 FMTlogger* clone() const override;
71 #endif
72 };
73}
74
75BOOST_CLASS_EXPORT_KEY(Logging::FMTtasklogger)
76
77#endif
#define FMTEXPORT
Definition: FMTutility.hpp:92
Definition: FMTlogger.hpp:37
Definition: FMTtasklogger.hpp:22
void checkSeverity() override
FMTlogger * clone() const override
int print() override
FMTtasklogger(const FMTtasklogger &)=default
Namespace for the log management, provides different log handlers.
Definition: FMTdebuglogger.hpp:14