From 6e106a2cc52e3857cbd55d67d54b4589f3425c51 Mon Sep 17 00:00:00 2001 From: Mike Buland Date: Sat, 20 Oct 2007 20:51:59 +0000 Subject: Made the logger use a uint32_t for it's mask, no more negative confusion. Also brought back the formula class with some cool twists, and added a basic stack class, very cute, fast, and little. --- src/logger.h | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) (limited to 'src/logger.h') diff --git a/src/logger.h b/src/logger.h index f561e88..0e7d812 100644 --- a/src/logger.h +++ b/src/logger.h @@ -69,17 +69,18 @@ namespace Bu virtual ~Logger(); public: - void log( int nLevel, const char *sFile, const char *sFunction, int nLine, const char *sFormat, ...); + void log( uint32_t nLevel, const char *sFile, const char *sFunction, int nLine, const char *sFormat, ...); void setFormat( const Bu::FString &str ); - void setMask( int n ); - void setLevel( int n ); + void setMask( uint32_t n ); + void setLevel( uint32_t n ); + uint32_t getMask(); - void hexDump( int nLevel, const char *sFile, const char *sFunction, int nLine, const void *pData, long nDataLen, const char *lpName ); + void hexDump( uint32_t nLevel, const char *sFile, const char *sFunction, int nLine, const void *pData, long nDataLen, const char *lpName ); private: Bu::FString sLogFormat; - int nLevelMask; + uint32_t nLevelMask; }; } -- cgit v1.2.3