Namespaces | Functions | Variables

D:/SoftwareEntwicklung/C++/HLC/Tools/SoftPixelEngine/repository/sources/Base/spInputOutputLog.cpp File Reference

#include "Base/spInputOutputLog.hpp"
#include "Base/spTimer.hpp"
#include "Platform/spSoftPixelDeviceOS.hpp"
#include <iostream>

Namespaces

namespace  sp
 

!!


namespace  sp::io
 

All simple text output and string class are in this namespace.


namespace  sp::io::Log
 

Log class has been changed to an own namespace. The syntax remains the same but now you can use "using namespace io::Log;".


Functions

SP_EXPORT void sp::io::Log::setMessageCallback (const MessageCallback &Proc)
SP_EXPORT void sp::io::Log::error (const stringc &Message, s32 Flags)
SP_EXPORT void sp::io::Log::warning (const stringc &Message, s32 Flags=LOG_TIME)
 Prints a warning message in yellow.
SP_EXPORT void sp::io::Log::debug (const stringc &ProcName, const stringc &Message="Invalid arguments", s32 Flags=LOG_TIME)
 Prints a debug message in pink.
SP_EXPORT void sp::io::Log::message (const stringc &Message, s32 Flags=LOG_TIME)
 Prints a standard message.
SP_EXPORT void sp::io::Log::setTimeFormat (const ELogTimeFormats Format)
SP_EXPORT ELogTimeFormats sp::io::Log::getTimeFormat ()
SP_EXPORT void sp::io::Log::setTabString (const stringc &TabStr)
 Sets the string which is to be added when "upperTab" is called.
SP_EXPORT stringc sp::io::Log::getTabString ()
SP_EXPORT stringc sp::io::Log::getCurrentTab ()
 Returns the current string of the whole tab.
SP_EXPORT void sp::io::Log::upperTab ()
 Adds the tab string to the current tab.
SP_EXPORT void sp::io::Log::lowerTab ()
 Removes the tab string from the current tab.
SP_EXPORT void sp::io::Log::setOutputContext (const s32 Context)
SP_EXPORT s32 sp::io::Log::getOutputContext ()
SP_EXPORT bool sp::io::Log::open (const stringc &Filename)
SP_EXPORT void sp::io::Log::close ()
SP_EXPORT void sp::io::Log::pause (bool isPaused)
 Opens or closes the output stream temporarily.
SP_EXPORT stringc sp::io::Log::getFormatedTime ()

Variables

ELogTimeFormats sp::io::Log::LogTimeFormat = LOGTIME_DISABLE
s32 sp::io::Log::LogContext = LOGCONTEXT_CONSOLE
stringc sp::io::Log::LogTabString = " "
stringc sp::io::Log::LogTab
std::ofstream sp::io::Log::LogFile
io::stringc sp::io::Log::LogFilename
bool sp::io::Log::isLogFile = false
bool sp::io::Log::isLogPaused = false
MessageCallback sp::io::Log::LogMessageCallback
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines