Nazara Engine  0.4
A fast, complete, cross-platform API designed for game development
StdLogger.hpp
1 // Copyright (C) 2017 Jérôme Leclercq
2 // This file is part of the "Nazara Engine - Core module"
3 // For conditions of distribution and use, see copyright notice in Config.hpp
4 
5 #pragma once
6 
7 #ifndef NAZARA_STDLOGGER_HPP
8 #define NAZARA_STDLOGGER_HPP
9 
10 #include <Nazara/Prerequesites.hpp>
11 #include <Nazara/Core/AbstractLogger.hpp>
12 
13 namespace Nz
14 {
15  class NAZARA_CORE_API StdLogger : public AbstractLogger
16  {
17  public:
18  StdLogger() = default;
19  StdLogger(const StdLogger&) = default;
20  StdLogger(StdLogger&&) = default;
21  ~StdLogger();
22 
23  void EnableStdReplication(bool enable) override;
24 
25  bool IsStdReplicationEnabled() const override;
26 
27  void Write(const String& string) override;
28  void WriteError(ErrorType type, const String& error, unsigned int line = 0, const char* file = nullptr, const char* function = nullptr) override;
29 
30  StdLogger& operator=(const StdLogger&) = default;
31  StdLogger& operator=(StdLogger&&) = default;
32  };
33 }
34 
35 #endif // NAZARA_STDLOGGER_HPP
TODO: Inherit SoundEmitter from Node.
Definition: Algorithm.hpp:12
Core class that represents a logger writing to standard output (stdout, stderr)
Definition: StdLogger.hpp:15
Core class that represents a string.
Definition: String.hpp:22
Core class that represents the behaviour of the log classes.
Definition: AbstractLogger.hpp:15