34#include <NDEVR/BaseValues.h>
35#include <NDEVR/ProgressInfo.h>
36#include <NDEVR/Buffer.h>
37#include <NDEVR/LogMessage.h>
54 m_linked_logs.add(stream);
58 m_linked_logs.removeElement(stream);
67 addMessage(messages[i]);
72 for (
uint04 i = 0; i < m_linked_logs.size(); i++)
74 m_linked_logs[i]->removeStream(
this);
76 m_linked_logs.clear();
80 m_ignore_message = ignore;
84 return m_ignore_message;
88 bool m_ignore_message =
false;
The equivelent of std::vector but with a bit more control. The basic array unit of the library.
Definition Buffer.hpp:56
constexpr t_index_type size() const
Definition Buffer.hpp:823
A class that allows for specific log information to be conveyed to a ProgressInfo object including in...
Definition LogMessage.h:44
A class that listens to a log object and processes the updates in a specified way....
Definition LogStream.h:46
virtual void addMessages(const Buffer< LogMessage > &messages)
Definition LogStream.h:63
virtual void attach(ProgressInfo *stream)
Definition LogStream.h:52
virtual void allowCancel(bool)
Definition LogStream.h:60
void setIgnoreMessages(bool ignore)
Definition LogStream.h:78
void clearLinks()
Definition LogStream.h:70
virtual void setProgress(fltp04 progress)=0
virtual ~LogStream()
Definition LogStream.h:48
virtual void detach(ProgressInfo *stream)
Definition LogStream.h:56
virtual void addMessage(const LogMessage &message)=0
Buffer< ProgressInfo * > m_linked_logs
Definition LogStream.h:87
bool ignoringMessages() const
Definition LogStream.h:82
A light-weight base class for Log that allows processes to update, without the need for additional in...
Definition ProgressInfo.hpp:48
float fltp04
Defines an alias representing a 4 byte floating-point number Bit layout is as follows: -Sign: 1 bit a...
Definition BaseValues.hpp:127
uint32_t uint04
-Defines an alias representing a 4 byte, unsigned integer -Can represent exact integer values 0 throu...
Definition BaseValues.hpp:96