33#ifndef DVD_CORE_CONSOLE_H_
34#define DVD_CORE_CONSOLE_H_
45 template <
typename... T>
47 template <
typename... T>
49 template <
typename... T>
51 template <
typename... T>
53 template <
typename... T>
55 template <
typename... T>
58 template <
typename... T>
60 template <
typename... T>
62 template <
typename... T>
64 template <
typename... T>
66 template <
typename... T>
68 template <
typename... T>
71 template <
typename... T>
72 NO_INLINE static void printfn(std::ofstream& outStream,
const char* format, T&&... args);
73 template <
typename... T>
74 NO_INLINE static void printf(std::ofstream& outStream,
const char* format, T&&... args);
75 template <
typename... T>
76 NO_INLINE static void warnfn(std::ofstream& outStream,
const char* format, T&&... args);
77 template <
typename... T>
78 NO_INLINE static void warnf(std::ofstream& outStream,
const char* format, T&&... args);
79 template <
typename... T>
80 NO_INLINE static void errorfn(std::ofstream& outStream,
const char* format, T&&... args);
81 template <
typename... T>
82 NO_INLINE static void errorf(std::ofstream& outStream,
const char* format, T&&... args);
83 template <
typename... T>
85 template <
typename... T>
87 template <
typename... T>
89 template <
typename... T>
90 NO_INLINE static void d_warnf(std::ofstream& outStream,
const char* format, T&&... args);
91 template <
typename... T>
93 template <
typename... T>
132 static void Start( std::string_view logFilePath, std::string_view erroFilePath,
bool printCopyright )
noexcept;
146 static void Output(std::string_view text,
bool newline,
EntryType type);
147 static void Output(std::ostream& outStream, std::string_view text,
bool newline,
EntryType type);
Handle console commands that start with a forward slash.
constexpr int MAX_CONSOLE_ENTRIES
std::shared_mutex SharedMutex
eastl::vector< Type > vector
Project const SceneEntry & entry
constexpr T toBit(const T X)
Converts an arbitrary positive integer value to a bitwise value used for masks.
constexpr auto to_base(const Type value) -> Type
ConsolePrintCallback _cbk
static NO_INLINE void d_printfn(const char *format, T &&... args)
static NO_INLINE void d_printf(const char *format, T &&... args)
static NO_INLINE void d_errorf(std::ofstream &outStream, const char *format, T &&... args)
static NO_INLINE void printf(std::ofstream &outStream, const char *format, T &&... args)
static NO_INLINE void warnf(std::ofstream &outStream, const char *format, T &&... args)
static void ToggleFlag(const Flags flag, const bool state)
static std::ofstream s_errorStream
static NO_INLINE void errorfn(const char *format, T &&... args)
static NO_INLINE void d_errorfn(std::ofstream &outStream, const char *format, T &&... args)
static std::atomic_bool s_running
static void DecorateAndPrint(std::ostream &outStream, std::string_view text, bool newline, EntryType type)
static NO_INLINE void warnf(const char *format, T &&... args)
std::function< void(const OutputEntry &)> ConsolePrintCallback
static NO_INLINE void d_printf(std::ofstream &outStream, const char *format, T &&... args)
static void PrintToFile(const OutputEntry &entry)
static vector< ConsolePrintCallbackEntry > s_guiConsoleCallbacks
static NO_INLINE void warnfn(const char *format, T &&... args)
static SharedMutex s_callbackLock
static NO_INLINE void errorfn(std::ofstream &outStream, const char *format, T &&... args)
static NO_INLINE void d_warnf(std::ofstream &outStream, const char *format, T &&... args)
static NO_INLINE void printfn(const char *format, T &&... args)
static NO_INLINE void d_warnfn(const char *format, T &&... args)
static void Output(std::string_view text, bool newline, EntryType type)
static NO_INLINE void d_errorf(const char *format, T &&... args)
static bool IsFlagSet(const Flags flag)
static NO_INLINE void d_warnf(const char *format, T &&... args)
static bool UnbindConsoleOutput(size_t &index)
static NO_INLINE void d_errorfn(const char *format, T &&... args)
static NO_INLINE void printfn(std::ofstream &outStream, const char *format, T &&... args)
static NO_INLINE void errorf(const char *format, T &&... args)
static NO_INLINE void d_printfn(std::ofstream &outStream, const char *format, T &&... args)
static NO_INLINE void printf(const char *format, T &&... args)
static size_t BindConsoleOutput(const ConsolePrintCallback &guiConsoleCallback)
static NO_INLINE void d_warnfn(std::ofstream &outStream, const char *format, T &&... args)
static void Start(std::string_view logFilePath, std::string_view erroFilePath, bool printCopyright) noexcept
static std::ofstream s_logStream
static NO_INLINE void errorf(std::ofstream &outStream, const char *format, T &&... args)
static NO_INLINE void warnfn(std::ofstream &outStream, const char *format, T &&... args)