API Documentation
Loading...
Searching...
No Matches
LogManager.h
Go to the documentation of this file.
1#pragma once
2#include <NDEVR/Dictionary.h>
3#include <NDEVR/String.h>
4#include <NDEVR/Log.h>
5#include <NDEVR/BinaryFile.h>
6namespace NDEVR
7{
8 class AsciiFileOutputStream;
10 {
11 public:
13 {
14 e_move
15 , e_copy
16 , e_ignore
17 };
18 bool hasLog(const String& log_name) const;
19 ProgressInfo* getLog(const String& log_name) const;
21 {
22 return getLog("DEFAULT");
23 }
24 void writeToFile(BinaryFile& file, uint01 minimum_log_level, CompressionMode mode = CompressionMode::e_default_compression);
25 void addStream(LogStream* stream, bool add_all) override;
26 void addLog(const String& name, ProgressInfo* info);
27 void removeStream(LogStream* stream) override;
28 void setDefaultAsciiLogPath(const File& file, MoveMode mode);
29 virtual bool setProgress(fltp04) override;
30 virtual void allowCancel(bool) override;
32 virtual bool addMessage(const TranslatedString&, uint01 = 10) override;
33 virtual bool addMessage(const LogMessage&) override;
34 virtual bool addMessage(const String&, uint01 = 10) override;
35 virtual bool addMessage(const char* const, uint01 = 10) override;
36 void logStartupInformation(const String& log) const;
37 virtual void setCancelRequest(bool) override;
38 void readFromFile(BinaryFile& file);
43 };
44}
#define NDEVR_BASE_API
Definition DLLInfo.h:78
Definition BinaryFile.h:51
The equivelent of std::vector but with a bit more control. The basic array unit of the library.
Definition Buffer.hpp:64
Definition Dictionary.h:48
Definition File.h:47
Definition LogManager.h:10
MoveMode
Definition LogManager.h:13
Dictionary< String, ProgressInfo * > m_logs
Definition LogManager.h:39
File m_default_ascii_log_path
Definition LogManager.h:42
Dictionary< String, AsciiFileOutputStream * > m_ascii_streams
Definition LogManager.h:41
Buffer< LogStream * > m_streams
Definition LogManager.h:40
ProgressInfo * defaultLog() const
Definition LogManager.h:20
Definition LogMessage.h:40
Definition LogStream.h:42
Definition ProgressInfo.hpp:43
Definition String.h:40
Definition TranslatedString.h:9
Definition ACIColor.h:37
float fltp04
Defines an alias representing a 4 byte floating-point number.
Definition BaseValues.hpp:157
uint8_t uint01
-Defines an alias representing a 1 byte, unsigned integer -Can represent exact integer values 0 throu...
Definition BaseValues.hpp:98
CompressionMode
Definition Compressor.h:12