Files
firestorm/Gameleap/code/mw4/Libraries/3dsmax2/include/LOG.H
T
Cyd 2b8ca921cb Initial full mirror of c:\VWE (source + assets + toolchain + outputs) via Git LFS
Complete disaster-recovery snapshot: engine/game source, game data assets,
VC6 toolchain + DX SDKs, build outputs, deployed game, and _UNUSED archive.
Large binaries in Git LFS; text preserved byte-for-byte (core.autocrlf=false,
no eol attributes). See RECOVERY.md for the one-clone rebuild procedure.
2026-06-24 21:28:16 -05:00

101 lines
3.1 KiB
C++

//-----------------------------------------------------------------------------
// ----------------
// File ....: log.h
// ----------------
// Author...: Gus Grubba
// Date ....: November 1996
//
// History .: Nov, 27 1996 - Started
//
//-----------------------------------------------------------------------------
#ifndef ERRORLOG_H_DEFINED
#define ERRORLOG_H_DEFINED
#define NO_DIALOG FALSE
#define DISPLAY_DIALOG TRUE
#define SYSLOG_ERROR 0x00000001
#define SYSLOG_WARN 0x00000002
#define SYSLOG_INFO 0x00000004
#define SYSLOG_DEBUG 0x00000008
#define SYSLOG_LIFE_EVER 0
#define SYSLOG_LIFE_DAYS 1
#define SYSLOG_LIFE_SIZE 2
//-----------------------------------------------------------------------------
//-----------------------------------------------------------------------------
//-- Frame Range
//
class LogSys {
DWORD valTypes;
int logLife;
DWORD logDays;
DWORD logSize;
public:
//-- Maintenance methods -----------------------------------------------
//
// Methods used internally
//-- Queries what log types are enabled
virtual DWORD LogTypes ( ) { return valTypes; }
//-- Sets what log types are enabled
virtual void SetLogTypes ( DWORD types ) { valTypes = types; }
//-- Logging methods ---------------------------------------------------
//
// "type" defines the type of log entry based on LogTypes above.
//
// "dialogue" is DISPLAY_DIALOGUE if you want the message to be displayed
// in a dialogue. The system will determine if displaying a dialogue is
// appropriate based on network rendering mode. If this is just some
// information you don't want a dialogue for, or if you are handling
// the dialogue yourself, just set dialogue to NO_DIALOGUE.
//
//
// "title" is optional. If non NULL, it will be used to define the module
// that originated the log entry (and the title bar in the dialogue).
//
//
virtual void LogEntry ( DWORD type, BOOL dialogue, TCHAR *title, TCHAR *text,... ) = 0;
//-- Long Logs
//
// For long entries, such as lists, use these methods instead. You open
// the log specifying the type of log, proceed writing the lines and
// closing it at the end.
//
virtual BOOL OpenLog ( DWORD type ) = 0;
virtual void LogEntry ( TCHAR *text,... ) = 0;
virtual void CloseLog ( ) = 0;
//-- Log File Longevity ------------------------------------------------
virtual int Longevity ( ) { return logLife; }
virtual void SetLongevity ( int type ) { logLife = type; }
virtual DWORD LogDays ( ) { return logDays; }
virtual DWORD LogSize ( ) { return logSize; }
virtual void SetLogDays ( DWORD days ) { logDays = days; }
virtual void SetLogSize ( DWORD size ) { logSize = size; }
//-- State -------------------------------------------------------------
virtual void SaveState ( void ) = 0;
virtual void LoadState ( void ) = 0;
};
#endif
//-- EOF: log.h ---------------------------------------------------------------