Mobile API Reference  MicroStrategy 2019
Logger.h
Go to the documentation of this file.
1 //==============================================================================================
2 // FILENAME : Logger.h
3 // AUTHOR : Juan Pablo Muraira
4 // CREATION : 10/23/2001
5 // Copyright (C) MicroStrategy Incorporated 2001
6 //==============================================================================================
7 #ifndef MSynch_Logger_h
8 #define MSynch_Logger_h
9 
10 #include "PDCHeader/PDCwchar.h"
11 
13 #include "Base/Defines/SmartPtrI.h"
14 #include "Base/Base/LastError.h"
15 
16 namespace MSynch
17 {
19  // Another component should implement MSynch::Logger interface and pass it
20  // to the synch component. Synch will log its messages through this interface.
21  // Only fatal errors will be logged (Lock order violations).
23  class Logger:
24  virtual public MBase::ReferenceCounted
25  {
26  public:
29 
30  virtual void LogFatal(const char* ipMessage, MBase::ErrorCode iMessageID) const = 0;
31  };
32 
33  // this typedef is obsolete
35 }
36 
37 #endif // MSynch_Logger_h
MBase::ReturnPtrI< Logger > ReturnPtr
Definition: Logger.h:28
MBase::SmartPtrI< Logger > Ptr
Definition: Logger.h:27
unsigned Int32 ErrorCode
Definition: LastError.h:31
Definition: ReferenceCountedImpl.h:18
Definition: ReturnPtrI.h:47
Logger::Ptr LoggerPtr
Definition: Logger.h:34
Definition: Logger.h:23
virtual void LogFatal(const char *ipMessage, MBase::ErrorCode iMessageID) const =0
Definition: ReturnPtrI.h:22
Definition: ReferenceCounted.h:58