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

const SAPDBErr_MessageList DBMSrvKnl_Session::KernelMessage (  ) 

Returns the kernel message.

public member

Definition at line 306 of file DBMSrvKnl_Session.cpp.

References SAPDBErr_MessageList::ClearMessageList(), PIn_ReplySegment::ErrorCode(), PIn_ReplySegment::FindPart(), PIn_ReplyPacket::GetFirstSegment(), PIn_Part::IsValid(), PIn_SQLPacket::IsValid(), and PIn_MessageListPart::MessageList().

{
  SAPDBErr_MessageList oKernelMsg;

  oKernelMsg.ClearMessageList();

  PIn_ReplyPacket  oPacket(this->pReceivePacket);
  // check answer packet
  if (oPacket.IsValid()) {
    PIn_ReplySegment oSegment = oPacket.GetFirstSegment ();
    if (oSegment.ErrorCode() == 0) {
      PIn_Part oPart   = oSegment.FindPart(sp1pk_message_list);
      if (oPart.IsValid()) {
        PIn_MessageListPart oMsgListPart(oPart);
        oKernelMsg = oMsgListPart.MessageList();
      } // end if
    } // end if
  } // end if

  return oKernelMsg;
} // end DBMSrvKnl_Session :: KernelMessage


Generated by  Doxygen 1.6.0   Back to index