Classes | Namespaces | Typedefs | Enumerations | Functions

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

#include "Base/spStandard.hpp"
#include "Base/spInputOutputString.hpp"
#include "Base/spDimension.hpp"
#include "Base/spMaterialColor.hpp"
#include <fstream>
#include <string.h>
#include <boost/function.hpp>

Go to the source code of this file.

Classes

class  sp::io::Log::ScopedTab

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;".


Typedefs

typedef boost::function< void(const
io::stringc &Message, s32
Flags)> 
sp::io::Log::MessageCallback

Enumerations

enum  sp::io::ELogTimeFormats { sp::io::LOGTIME_DISABLE, sp::io::LOGTIME_HHMMSS, sp::io::LOGTIME_MILLISECS }
 

Log message time information formats.

More...
enum  sp::io::ELogMessageFlags {
  sp::io::LOG_MSGBOX = 0x01, sp::io::LOG_TIME = 0x02, sp::io::LOG_WARNING = 0x04, sp::io::LOG_ERROR = 0x08,
  sp::io::LOG_DEBUG = 0x10, sp::io::LOG_NONEWLINE = 0x20, sp::io::LOG_NOTAB = 0x40
}
 

Flags for printed log messages.

More...
enum  sp::io::ELogOutputContexts { sp::io::LOGCONTEXT_NONE = 0x00, sp::io::LOGCONTEXT_CONSOLE = 0x01, sp::io::LOGCONTEXT_FILE = 0x02 }
 

Log output contexts for runtime debugging.

More...

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 void sp::io::Log::openConsole (const stringc &Title="")
SP_EXPORT void sp::io::Log::closeConsole ()
SP_EXPORT void sp::io::Log::clearConsole ()
SP_EXPORT void sp::io::Log::pauseConsole ()
SP_EXPORT stringc sp::io::Log::getFormatedTime ()
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines