8 #ifndef MBase_Message_h 9 #define MBase_Message_h 13 #include "../Defines/BasicTypes.h" 14 #include "../Defines/Asserte.h" 64 bool Swap(
Message& irOther)
throw();
85 const
Message* GetLowerLevelMessageOrNULL() const;
103 const
Message* GetSameLevelMessageOrNULL() const;
135 const char* ipTemplate =
NULL);
159 return (mpMessage ==
NULL);
200 const char* ipTemplate =
NULL);
207 _ASSERT(iIndex < (mBufferSizeInBytes / mMessageSizeInBytes));
209 return *
reinterpret_cast<MBase::Message*
>(mpMessage + mMessageSizeInBytes * iIndex);
214 return (mpMessage ==
NULL);
225 unsigned char* mpMessage;
239 bool IsEmpty()
const;
264 const char* GetTemplate()
const;
265 void SetTemplate(
const char* ipTemplate);
271 const char* GetParameter(
unsigned int iIndex)
const;
276 Message& operator << (
bool iParameter);
277 Message& operator << (
int iParameter);
278 Message& operator << (
unsigned int iParameter);
279 Message& operator << (
long iParameter);
280 Message& operator << (
unsigned long iParameter);
281 Message& operator << (
const char* ipParameter);
282 #ifndef NO_WCHAR_SUPPORT 286 typedef void (*Manipulator)(
Message& irMessage);
287 Message& operator << (Manipulator ipManipulator);
294 static void Dec(
Message& irMessage);
295 static void Hex(
Message& irMessage);
296 static void WideHex(
Message& irMessage);
297 static void WideWideHex(
Message& irMessage);
328 const char* ipTemplate,
329 const char* ipParameters[]
365 void SetNumberFormat(
unsigned char iRadix,
unsigned char iWidth);
366 void GetNumberFormat(
unsigned char& orRadix,
unsigned char& orWidth)
const;
371 unsigned char mBuffer[100];
381 #ifndef NO_BASE_EXCEPTION_COMPATIBILITY 383 const WCHAR* GetMessage()
const throw();
384 void SetMessage(const
WCHAR* ipMessage) throw();
387 inline
unsigned Int32 GetErrorCode() const throw()
389 return static_cast<unsigned Int32>(GetID());
391 #endif // NO_BASE_EXCEPTION_COMPATIBILITY 395 #endif // MBase_Message_h wchar_t WCHAR
Definition: PDCwchar.h:23
unsigned short LanguageID
Definition: Language.h:27
#define _ASSERT(x)
Definition: Asserte.h:34
Int32 MessageID
Definition: Message.h:21
Definition: ReturnString.h:36
Definition: Message.h:117
#define DLL_BASE_EXIM
Definition: Base.h:20
Definition: Message.h:320
Message * operator->() const
Definition: Message.h:145
Message & operator*() const
Definition: Message.h:139
unsigned Int32 SizeType
Definition: Message.h:36
#define Int32
Definition: BasicTypes.h:20
unsigned short MessageDomain
Definition: MessageDomain.h:27
Definition: Allocator.h:47
Definition: Message.h:179
Message * Get() const
Definition: Message.h:151
static const SizeType MIN_SIZE
Definition: Message.h:44
bool IsNull() const
Definition: Message.h:157
#define NULL
Definition: Null.h:10
bool IsNull() const
Definition: Message.h:212