FMT 1.2.0
Forest management tools for forest planning
Loading...
Searching...
No Matches
FMTExcelLogger.h
Go to the documentation of this file.
1#ifndef FMTEXCELLOGGER_Hm_included
2#define FMTEXCELLOGGER_Hm_included
3
4#include <vector>
5#include <string>
6#include <memory>
7#include <unordered_map>
8#include "FMTObject.h"
9#include "FMTLogger.h"
10
11
12namespace Logging
13{
14 // DocString: FMTExcelLogger
19 {
20 public:
21 // DocString: FMTExcelLogger()
26 // DocString: FMTExcelLogger::getPrintOut
31 std::string getPrintOut() const;
32 // DocString: FMTExcelLogger::clearOut
36 void clearOut();
37 #ifdef FMTWITHOSI
38 // DocString: FMTExcelLogger::clone
43 virtual FMTLogger* clone() const;
44 #endif
45 // DocString: FMTExcelLogger::Clone
50 virtual std::unique_ptr <FMTLogger> Clone() const;
51 protected:
52 // DocString: FMTExcelLogger::_cout
57 void _cout(const char* message) const override;
58 private:
59 mutable std::string printout;
60 };
61
62}
63#endif
#define FMTEXPORT
Definition: FMTutility.h:125
Logger used by the Excel add-in that stores the output in a string instead of printing it.
Definition: FMTExcelLogger.h:19
std::string getPrintOut() const
Return the stored output.
FMTExcelLogger()
Default constructor for FMTExcelLogger.
void _cout(const char *message) const override
Append a message to the stored output.
void clearOut()
Clear the stored output.
virtual std::unique_ptr< FMTLogger > Clone() const
Clone the FMTExcelLogger.
virtual FMTLogger * clone() const
Clone the FMTExcelLogger.
Base class handling the level of information printed by FMT.
Definition: FMTLogger.h:37
Namespace for the log management, provides different log handlers.
Definition: FMTDebugLogger.h:14