Mobile API Reference  MicroStrategy 2019
MessageDomain.h
Go to the documentation of this file.
1 //==============================================================================================
2 // FILENAME : MessageDomain.h
3 // AUTHOR : vovechkin
4 // CREATION : 2005-03-11
5 // Copyright (C) MicroStrategy Incorporated 2005
6 // All Rights Reserved
7 //==============================================================================================
8 #ifndef MBase_MessageDomain_h
9 #define MBase_MessageDomain_h
10 
11 #include "Base.h"
12 
13 namespace MBase
14 {
27  typedef unsigned short MessageDomain;
28 
29  // This value is reserved for special uses.
31 
32  // For error codes returned by errno.
33  // This is an alias for a platform-specific domain.
35 
36 #if defined(WIN32)
37  // For error codes returned by Win32 APIs (via ::GetLastError() call)
38  DLL_BASE_EXIM extern const MessageDomain MESSAGE_DOMAIN_WIN32_API;
39 
40  // For standard (structured) exceptions
41  DLL_BASE_EXIM extern const MessageDomain MESSAGE_DOMAIN_WIN32_EXCEPTION;
42 #else
43  // For error messages returned by dl* functions (via ::dlerror())
45 
46  // For UNIX signals.
47  // This is an alias for a platform-specific domain.
49 #endif // WIN32
50 
51  // For MicroStrategy server messages
53 
57  DLL_BASE_EXIM const char* ToString(MBase::MessageDomain iDomain);
58 
63 }
64 
65 #endif // MBase_MessageDomain_h
#define DLL_BASE_EXIM
Definition: Base.h:20
DLL_BASE_EXIM MBase::MessageDomain ToMessageDomain(const char *ipDomain)
DLL_BASE_EXIM const MessageDomain MESSAGE_DOMAIN_SERVER
DLL_BASE_EXIM const char * ToString(MBase::MessageDomain iDomain)
unsigned short MessageDomain
Definition: MessageDomain.h:27
Definition: Allocator.h:47
DLL_BASE_EXIM const MessageDomain MESSAGE_DOMAIN_UNKNOWN
DLL_BASE_EXIM const MessageDomain MESSAGE_DOMAIN_UNIX_SIGNAL
DLL_BASE_EXIM const MessageDomain MESSAGE_DOMAIN_ERRNO
DLL_BASE_EXIM const MessageDomain MESSAGE_DOMAIN_UNIX_DLERROR