Mobile API Reference
MicroStrategy 2019
|
#include <Message.h>
Classes | |
class | Localizer |
class | PlacementArrayPtr |
class | PlacementPtr |
Public Types | |
typedef unsigned Int32 | SizeType |
typedef void(* | Manipulator) (Message &irMessage) |
Public Member Functions | |
Message () | |
Message (const Message &irOther) | |
Message (MessageDomain iDomain, MessageID iID, const char *ipTemplate=NULL) | |
Message & | operator= (const Message &irOther) |
bool | Swap (Message &irOther) throw () |
~Message () throw () | |
Message & | WrapBy (MessageDomain iDomain, MessageID iID, const char *ipTemplate=NULL) |
const Message * | GetLowerLevelMessageOrNULL () const |
Message & | PrependBy (MessageDomain iDomain, MessageID iID, const char *ipTemplate=NULL) |
Message & | PrependBy (const Message &irMessage) |
const Message * | GetSameLevelMessageOrNULL () const |
bool | IsEmpty () const |
void | Clear () |
MBase::MessageDomain | GetDomain () const |
MBase::MessageID | GetID () const |
void | SetDomainAndID (MBase::MessageDomain iDomain, MessageID iID) |
const char * | GetTemplate () const |
void | SetTemplate (const char *ipTemplate) |
const char * | GetParameter (unsigned int iIndex) const |
Message & | operator<< (bool iParameter) |
Message & | operator<< (int iParameter) |
Message & | operator<< (unsigned int iParameter) |
Message & | operator<< (long iParameter) |
Message & | operator<< (unsigned long iParameter) |
Message & | operator<< (const char *ipParameter) |
Message & | operator<< (const WCHAR *ipParameter) |
Message & | operator<< (Manipulator ipManipulator) |
const char * | GetLocalizedText (MBase::LanguageID iLanguageID) const |
void | SetLocalizedText (MBase::LanguageID iLanguageID, const char *ipText) |
MBase::ReturnString | Localize (Localizer &irLocalizer, MBase::LanguageID iLanguageID) const |
const WCHAR * | GetMessage () const throw () |
void | SetMessage (const WCHAR *ipMessage) throw () |
unsigned Int32 | GetErrorCode () const throw () |
Static Public Member Functions | |
static void | Dec (Message &irMessage) |
static void | Hex (Message &irMessage) |
static void | WideHex (Message &irMessage) |
static void | WideWideHex (Message &irMessage) |
Static Public Attributes | |
static const SizeType | MIN_SIZE |
Friends | |
class | PlacementPtr |
class | PlacementArrayPtr |
MBase::Message can be used as a regular variable, return value, or a C++ exception object.
The major features are:
typedef void(* MBase::Message::Manipulator) (Message &irMessage) |
typedef unsigned Int32 MBase::Message::SizeType |
MBase::Message::Message | ( | ) |
MBase::Message::Message | ( | const Message & | irOther | ) |
MBase::Message::Message | ( | MessageDomain | iDomain, |
MessageID | iID, | ||
const char * | ipTemplate = NULL |
||
) |
MBase::Message::~Message | ( | ) | ||
throw | ( | |||
) |
void MBase::Message::Clear | ( | ) |
Erases all information, makes the message empty.
|
static |
Format manipulators. Example:
lMessage << MBase::Message::Hex << hr;
MBase::MessageDomain MBase::Message::GetDomain | ( | ) | const |
Returns the resource bundle name that corresponds to the message domain.
|
inline |
MBase::MessageID MBase::Message::GetID | ( | ) | const |
Returns the message ID.
const char* MBase::Message::GetLocalizedText | ( | MBase::LanguageID | iLanguageID | ) | const |
Returns the message text for a particular language, or NULL if the text is not available.
const Message* MBase::Message::GetLowerLevelMessageOrNULL | ( | ) | const |
Returns a pointer to a Message instance that represents a previous exception of a lower level or NULL.
const WCHAR* MBase::Message::GetMessage | ( | ) | const | |
throw | ( | |||
) |
const char* MBase::Message::GetParameter | ( | unsigned int | iIndex | ) | const |
Used to iterate over a list of parameters. If parameter is not set, returns NULL.
const Message* MBase::Message::GetSameLevelMessageOrNULL | ( | ) | const |
Returns a pointer to a Message instance that represents a previous exception of the same level or NULL.
const char* MBase::Message::GetTemplate | ( | ) | const |
Returns the default message template.
|
static |
bool MBase::Message::IsEmpty | ( | ) | const |
Returns true if message contains some fields.
MBase::ReturnString MBase::Message::Localize | ( | Localizer & | irLocalizer, |
MBase::LanguageID | iLanguageID | ||
) | const |
Localize a single message. If the message already contains localized text for iLanguageID, the irLocalizer will not be called, and the stored text will be returned. Localize a single message. If the message already contains localized text for iLanguageID, the irLocalizer will not be called, and the stored text will be returned.
Message& MBase::Message::operator<< | ( | bool | iParameter | ) |
Parameter formatting
Message& MBase::Message::operator<< | ( | int | iParameter | ) |
Message& MBase::Message::operator<< | ( | unsigned int | iParameter | ) |
Message& MBase::Message::operator<< | ( | long | iParameter | ) |
Message& MBase::Message::operator<< | ( | unsigned long | iParameter | ) |
Message& MBase::Message::operator<< | ( | const char * | ipParameter | ) |
Message& MBase::Message::operator<< | ( | Manipulator | ipManipulator | ) |
Message& MBase::Message::PrependBy | ( | MessageDomain | iDomain, |
MessageID | iID, | ||
const char * | ipTemplate = NULL |
||
) |
To chain the current message, so that it becomes the same-level message of the parameter. Note: when the message is blank (IsEmpty returns true), PrependBy behaves like a constructor.
To chain the current message, so that it becomes the same-level message of the parameter. Note: when the message is blank (IsEmpty returns true), PrependBy behaves like a constructor.
void MBase::Message::SetDomainAndID | ( | MBase::MessageDomain | iDomain, |
MessageID | iID | ||
) |
Sets the message ID and domain.
void MBase::Message::SetLocalizedText | ( | MBase::LanguageID | iLanguageID, |
const char * | ipText | ||
) |
Stores the message text for a particular language. If ipText is NULL, the stored text is erased.
void MBase::Message::SetMessage | ( | const WCHAR * | ipMessage | ) | |
throw | ( | ||||
) |
void MBase::Message::SetTemplate | ( | const char * | ipTemplate | ) |
bool MBase::Message::Swap | ( | Message & | irOther | ) | |
throw | ( | ||||
) |
Swaps two message objects.
|
static |
|
static |
Message& MBase::Message::WrapBy | ( | MessageDomain | iDomain, |
MessageID | iID, | ||
const char * | ipTemplate = NULL |
||
) |
To chain the current message, so that it becomes the lower-level message of the parameter. Note: when the message is blank (IsEmpty returns true), WrapBy behaves like a constructor.
|
friend |
|
friend |