![]() |
Olympe Engine 2.0
2D Game Engine with ECS Architecture
|
#include <system_utils.h>
Public Types | |
| using | Manip = std::ostream &(*)(std::ostream &) |
Public Member Functions | |
| Log () | |
| bool | Init (const std::string &filename="olympe.log") |
| void | Shutdown () |
| void | SetOutputs (unsigned flags) |
| unsigned | GetOutputs () const |
| template<typename T > | |
| auto | operator<< (const T &v) -> decltype(std::declval< std::ostringstream & >()<< v, std::declval< Log & >()) |
| Log & | operator<< (Manip m) |
Private Member Functions | |
| void | writeToOutputs (const std::string &s) |
| void | flushCompleteLinesIfAny () |
| void | flushRemaining () |
Private Attributes | |
| std::mutex | m_ |
| std::ostringstream | buffer_ |
| unsigned | outputs_ |
| std::ofstream | file_ |
| bool | file_open_ |
Definition at line 37 of file system_utils.h.
| using Logging::Log::Manip = std::ostream& (*)(std::ostream&) |
Definition at line 81 of file system_utils.h.
|
inline |
Definition at line 40 of file system_utils.h.
|
inlineprivate |
Definition at line 129 of file system_utils.h.
References buffer_, GetComponentTypeID_Static(), m_, and writeToOutputs().
Referenced by operator<<(), and operator<<().
Here is the call graph for this function:
Here is the caller graph for this function:
|
inlineprivate |
Definition at line 144 of file system_utils.h.
References buffer_, GetComponentTypeID_Static(), m_, and writeToOutputs().
Referenced by operator<<().
Here is the call graph for this function:
Here is the caller graph for this function:
|
inline |
Definition at line 66 of file system_utils.h.
References outputs_.
Definition at line 43 of file system_utils.h.
References file_, file_open_, GetComponentTypeID_Static(), and m_.
Referenced by Logging::InitLogger().
Here is the call graph for this function:
Here is the caller graph for this function:
|
inline |
Definition at line 70 of file system_utils.h.
References buffer_, flushCompleteLinesIfAny(), GetComponentTypeID_Static(), and m_.
Here is the call graph for this function:Definition at line 82 of file system_utils.h.
References buffer_, flushCompleteLinesIfAny(), flushRemaining(), GetComponentTypeID_Static(), and m_.
Here is the call graph for this function:Definition at line 60 of file system_utils.h.
References GetComponentTypeID_Static(), m_, and outputs_.
Here is the call graph for this function:
|
inline |
Definition at line 53 of file system_utils.h.
References file_, file_open_, GetComponentTypeID_Static(), and m_.
Referenced by Logging::ShutdownLogger().
Here is the call graph for this function:
Here is the caller graph for this function:Definition at line 108 of file system_utils.h.
References SystemLogSink::AppendToLogWindow(), file_, file_open_, GetComponentTypeID_Static(), Logging::Out_Cout, Logging::Out_File, Logging::Out_Panel, and outputs_.
Referenced by flushCompleteLinesIfAny(), and flushRemaining().
Here is the call graph for this function:
Here is the caller graph for this function:
|
private |
Definition at line 157 of file system_utils.h.
Referenced by flushCompleteLinesIfAny(), flushRemaining(), operator<<(), and operator<<().
|
private |
Definition at line 159 of file system_utils.h.
Referenced by Init(), Shutdown(), and writeToOutputs().
|
private |
Definition at line 160 of file system_utils.h.
Referenced by Init(), Shutdown(), and writeToOutputs().
|
mutableprivate |
Definition at line 156 of file system_utils.h.
Referenced by flushCompleteLinesIfAny(), flushRemaining(), Init(), operator<<(), operator<<(), SetOutputs(), and Shutdown().
|
private |
Definition at line 158 of file system_utils.h.
Referenced by GetOutputs(), SetOutputs(), and writeToOutputs().