/***************************************************************************** ************************* AIRBORNE SYSTEMS ************************* ************************* COMPUTING DEVICES CANADA ************************* ****************************************************************************** Filename: CMsgLog.h Project: LOCATOR Purpose: C++ definition for the LOCATOR CMsgLog class. Define a global variable Msg in the main module, and an extern in all other modules which include this file. Release: V1.0 Author: Denis Dumas Date: 30-Jul-1999 Modified: *****************************************************************************/ #ifndef __CMSGLOG_H__ #define __CMSGLOG_H__ class CMsgLog { public : CMsgLog(); virtual ~CMsgLog(); int Init ( const char * const pDir, const char * const pFileName ); void Log ( const char * const pStr1, const char * const pStr2, const char * const pStr3 ); void Log ( const char * const pStr1, const char * const pStr2 ); void Log ( const char * const pStr, const short pIdata ); void Log ( const char * const pStr, const int pIdata ); void Log ( const char * const pStr, const long pIdata ); void Log ( const char * const pStr, const float pFdata ); void Log ( const char * const pStr, const double pFdata ); void Log ( const char * const pStr, const unsigned short pUdata ); void Log ( const char * const pStr, const unsigned int pUdata ); void Log ( const char * const pStr, const unsigned long pUdata ); private : char cTimeString[30], cLogFileName[100], cFirstField[60]; bool cIsInitialized; bool GenTime(); void FillFirstField ( const char * const pStr ); }; // Define the global message log object here. #ifdef __MAIN__ CMsgLog gMsg; #else extern CMsgLog gMsg; #endif #endif