Loading...
Searching...
No Matches
stream.hpp
Go to the documentation of this file.
1
2#pragma once
3
4#include "clog/common.hpp"
5
6namespace by {
7
13 class _nout stream {
15
16 public:
17 stream(nbool isEnable = true);
18 virtual ~stream();
19
20 public:
25 virtual nbool logBypass(const nchar* message);
26
27 nbool logBypass(const std::string& message);
28
33 nbool isNull() const;
34 virtual nbool isEnable() const;
35 virtual void setEnable(nbool isEnable);
36 virtual const std::string& getName() const = 0;
41 virtual nbool init();
42 virtual nbool isInit() const;
47 virtual nbool rel();
48
49 private:
50 nbool _isEnable;
51 };
52}
Base class for all logging output streams.
Definition stream.hpp:13
virtual nbool init()
Initializes the stream, transitioning its state from RELEASED to INITIALIZED.
virtual nbool logBypass(const nchar *message)
Log message directly without formatting.
nbool isNull() const
Checks if this stream is a null object.
virtual nbool rel()
Releases the stream's resources, transitioning its state from INITIALIZED to RELEASED.
Rich logging support with polymorphic type conversion.
Definition richLog.hpp:34