Logo Search packages:      
Sourcecode: maxdb-7.5.00 version File versions  Download package

SAPDBErr_MessageList Class Reference

#include <SAPDBErr_MessageList.hpp>

Inheritance diagram for SAPDBErr_MessageList:

DBMSrvMsg_Error DBMSrvMsg_Info DBMSrvMsg_Warning

List of all members.


Detailed Description

EndDeclaration: SAPDBERR_DEFINE_COMPONENT_EXCEPTION_CLASS

EndChapter: Macros and defines

--------------------------------------------------------------------------- Class: SAPDBErr_MessageList Description: Creating, queueing and managing an messages.

The SAPDBErr_MessageList class provides a functionality to store and queue messagesd like success, warning and error messages. In most situations SAPDBErr_MessageList is used to store the error message for the last operation that failed. The implementation allows you to build up a list of messages which is as long as you like.

SAPDBErr_MessageList assists you in conserving memory space by allowing two objects sharing the same values buffer spaces.

Definition at line 163 of file SAPDBErr_MessageList.hpp.


Public Types

typedef RTE_ISystem::DateTime MessageDateTime
typedef SAPDB_UInt4 MessageID
enum  MessageType { Error = 1, Info, Warning }

Public Member Functions

void AppendNewMessage (SAPDBErr_MessageList const &MessageList)
void ClearMessageList ()
SAPDB_Char const *const Component () const
MessageDateTime const & DateTime () const
SAPDB_Char const *const DateTime (bool const Long) const
SAPDB_Char const *const FileName () const
const SAPDB_UInt4 ID () const
bool const IsEmpty () const
SAPDB_UInt4 const LineNumber () const
SAPDB_Char const *const Message () const
SAPDBErr_MessageList *const NextMessage () const
SAPDB_UInt4 NumOfMessages () const
SAPDBErr_MessageList operator+ (const SAPDBErr_MessageList &MessageList) const
SAPDBErr_MessageList const & operator= (const SAPDBErr_MessageList &MessageList)
 SAPDBErr_MessageList (const SAPDBErr_MessageList &MessageList)
 SAPDBErr_MessageList (SAPDB_Char const *const Component, SAPDB_Char const *const FileName, SAPDB_UInt4 const LineNumber, SAPDB_UInt4 const SystemRC, MessageType const Type, MessageID const ID, SAPDB_Char const *const Message, SAPDB_UInt4 const NumOfArgs, SAPDB_Char const *const Arg0=NULL, SAPDB_Char const *const Arg1=NULL, SAPDB_Char const *const Arg2=NULL, SAPDB_Char const *const Arg3=NULL, SAPDB_Char const *const Arg4=NULL, SAPDB_Char const *const Arg5=NULL, SAPDB_Char const *const Arg6=NULL, SAPDB_Char const *const Arg7=NULL, SAPDB_Char const *const Arg8=NULL, SAPDB_Char const *const Arg9=NULL)
 SAPDBErr_MessageList (SAPDB_Char const *const Component, SAPDB_Char const *const FileName, SAPDB_UInt4 const LineNumber, MessageType const Type, MessageID const ID, SAPDB_Char const *const Message, SAPDB_UInt4 const NumOfArgs, SAPDB_Char const *const Arg0=NULL, SAPDB_Char const *const Arg1=NULL, SAPDB_Char const *const Arg2=NULL, SAPDB_Char const *const Arg3=NULL, SAPDB_Char const *const Arg4=NULL, SAPDB_Char const *const Arg5=NULL, SAPDB_Char const *const Arg6=NULL, SAPDB_Char const *const Arg7=NULL, SAPDB_Char const *const Arg8=NULL, SAPDB_Char const *const Arg9=NULL)
SAPDB_UInt4 const SystemRC () const
SAPDB_Char const *const Type (bool const Long) const
MessageType const Type () const

Private Member Functions

void AddDataRef ()
void AddObjectRef ()
SAPDB_UInt4 BuildMessageString (SAPDB_Char const *const Message, SAPDB_Char const *const Args[], SAPDB_UInt4 const NumOfArgs, SAPDB_Char *const MessageString)
void CopyMessageList (SAPDBErr_MessageList const &MessageList)
void CreateDateTime (MessageDateTime &DateTime, SAPDB_Char *const DateTimeStr, SAPDB_UInt4 const DateTimeStrSize, SAPDB_Char *const BigDateTimeStr, SAPDB_UInt4 const BigDateTimeStrSize) const
void FillMessageList (SAPDB_Char const *const Component, SAPDB_Char const *const FileName, SAPDB_UInt4 const LineNumber, MessageType const Type, MessageID const ID, SAPDB_UInt4 const SystemRC, SAPDB_Char const *const Message, SAPDB_UInt4 const NumOfArgs, SAPDB_Char const *const Arg0, SAPDB_Char const *const Arg1, SAPDB_Char const *const Arg2, SAPDB_Char const *const Arg3, SAPDB_Char const *const Arg4, SAPDB_Char const *const Arg5, SAPDB_Char const *const Arg6, SAPDB_Char const *const Arg7, SAPDB_Char const *const Arg8, SAPDB_Char const *const Arg9)
SAPDB_UInt4 GetDataRef ()
SAPDB_UInt4 GetObjectRef ()
SAPDBErr_MessageListSplitObjectList ()
void SubtractDataRef ()
void SubtractObjectRef ()

Private Attributes

SAPDB_UInt4 m_NumOfMessages
SAPDB_UInt4 m_ObjectRefCnt
MessageData * m_pMessageData
SAPDBErr_MessageListm_pNextMessage

Static Private Attributes

static const MessageDateTime EmptyDateTimeValue = { 0,0,0,0,0,0,0,0 }

Classes

struct  MessageData

The documentation for this class was generated from the following files:

Generated by  Doxygen 1.6.0   Back to index