⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 fault.cpp

📁 linux下开发的soap协议。建议大家学习学习!
💻 CPP
字号:
/*	Contributed by Allan Kelly, June 17, 2002	Provides C++ alternatives for	soap_print_fault and soap_print_fault_location functions*//******************************************************************************/SOAP_FMAC1voidSOAP_FMAC2soap_print_fault(struct soap *soap, std::ostream& msg){ if (soap->error)  { if (!*soap_faultcode(soap))      soap_set_fault(soap);    if (!*soap_faultstring(soap))      *soap_faultstring(soap) = "";    msg << "SOAP FAULT: "        << *soap_faultcode(soap) << std::endl        << "\"" << *soap_faultstring(soap) << "\"" << std::endl;    if (*soap_faultdetail(soap))      msg << "Detail: " << *soap_faultdetail(soap) << std::endl;  }}/******************************************************************************/SOAP_FMAC1voidSOAP_FMAC2soap_print_fault_location(struct soap *soap, std::ostream& msg){ int c;  if (soap->error && soap->buflen > 0)  { if (soap->bufidx == 0)      soap->bufidx = 1;    c = soap->buf[soap->bufidx-1];    soap->buf[soap->bufidx-1] = '\0';    if (soap->bufidx < soap->buflen)      msg << soap->buf << static_cast<char> (c) << std::endl          << "** HERE **" << std::endl << soap->buf+soap->bufidx          << std::endl;    else      msg << soap->buf << static_cast<char> (c) << std::endl          << "** HERE **" << std::endl;  }}/******************************************************************************/

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -