![]() |
FMT 1.2.0
Forest management tools for forest planning
|
Logger used by the Excel add-in that stores the output in a string instead of printing it. More...
#include <FMTExcelLogger.h>
Public Member Functions | |
| FMTExcelLogger () | |
| Default constructor for FMTExcelLogger. | |
| std::string | getPrintOut () const |
| Return the stored output. | |
| void | clearOut () |
| Clear the stored output. | |
| virtual FMTLogger * | clone () const |
| Clone the FMTExcelLogger. | |
| virtual std::unique_ptr< FMTLogger > | Clone () const |
| Clone the FMTExcelLogger. | |
Public Member Functions inherited from Logging::FMTLogger | |
| FMTLogger () | |
| Default constructor for FMTLogger. | |
| virtual | ~FMTLogger () |
| Default destructor for FMTLogger. | |
| FMTLogger (const FMTLogger &rhs) | |
| Copy constructor for FMTLogger. | |
| void | redirectToFile (const std::string &filename, bool logStamp=true) |
| Redirect the log information to a file. | |
| void | closeFileStream () |
| Close the file stream. | |
| FMTLogger & | operator= (const FMTLogger &rhs) |
| Copy assignment operator for FMTLogger. | |
| virtual int | print () |
| Print function overloaded from CoinMessageHandler when using the OSI solver interface. | |
| virtual void | checkSeverity () |
| Check the severity of the message to be printed by the CoinMessageHandler base class. | |
| virtual FMTLogger * | clone () const =0 |
| Clone the logger, needed for the abstract CoinMessageHandler usage. | |
| virtual std::string | getLogStamp () const |
| Return the basic log stamp as a string. | |
| virtual void | logStamp () |
| Log information about the version of FMT and its build date. | |
| virtual void | logTime () |
| Log the actual time at which the function is called. | |
| void | setStreamFlush (bool flush) |
| Force the flushing of the file stream. | |
| virtual FMTLogger & | operator<< (const std::string &msg) |
| Append a string to the log. | |
| virtual FMTLogger & | operator<< (const int &msg) |
| Append an int to the log. | |
| virtual FMTLogger & | operator<< (const double &msg) |
| Append a double to the log. | |
| virtual FMTLogger & | operator<< (const float &msg) |
| Append a float to the log. | |
| virtual FMTLogger & | operator<< (const std::time_t &msg) |
| Append a std::time_t to the log. | |
| virtual FMTLogger & | operator<< (const size_t &msg) |
| Append a size_t to the log. | |
| virtual FMTLogger & | operator<< (const unsigned int &msg) |
| Append an unsigned int to the log. | |
| virtual FMTLogger & | operator<< (const void *&msg) |
| Append the address of a void pointer to the log. | |
| virtual bool | logWithLevel (const std::string &p_msg, const int &p_messageLevel) const |
| Log a message with a given message level if message level is greater of equal to the logger level then it will be printed. | |
| virtual FMTSolverLogger * | getSolverLogger () |
| Return the abstract logger used by the OSI solver interface. | |
| virtual std::unique_ptr< FMTLogger > | Clone () const =0 |
| clone the FMTLogger | |
Protected Member Functions | |
| void | _cout (const char *message) const override |
| Append a message to the stored output. | |
Protected Member Functions inherited from Logging::FMTLogger | |
| virtual void | _cout (const char *message) const |
| Output a message, sometimes needed on Windows with boost::python to print directly into the Python window. | |
| virtual void | _setLoggingLevel (const int &level) |
| Set the solver logger logging level. | |
Additional Inherited Members | |
Protected Attributes inherited from Logging::FMTLogger | |
| std::unique_ptr< FMTSolverLogger > | m_solverref |
| std::string | m_filepath |
| string path the the potential filestream | |
| std::unique_ptr< std::ofstream > | m_FileStream |
| stream if the logger redirect the logging into somesort of file. | |
| boost::recursive_mutex | m_mtx |
| Mutex for multi-threading. | |
| bool | m_flushstream |
| If true will flush stream at each write. | |
Logger used by the Excel add-in that stores the output in a string instead of printing it.
| Logging::FMTExcelLogger::FMTExcelLogger | ( | ) |
Default constructor for FMTExcelLogger.
|
overrideprotectedvirtual |
Append a message to the stored output.
| [in] | message | the message to append. |
Reimplemented from Logging::FMTLogger.
| void Logging::FMTExcelLogger::clearOut | ( | ) |
Clear the stored output.
|
virtual |
|
virtual |
Clone the FMTExcelLogger.
Implements Logging::FMTLogger.
| std::string Logging::FMTExcelLogger::getPrintOut | ( | ) | const |
Return the stored output.