87 for (
auto node =
xml.begin(); node !=
xml.end(); ++node) {
88 if (
strcmp(node->get_name(),
"MyNcbiResponse") == 0) {
89 for (
auto data_node = node->begin(); data_node != node->end(); ++data_node) {
90 if (
strcmp(data_node->get_name(),
"UserId") == 0) {
93 else if (
strcmp(data_node->get_name(),
"UserName") == 0) {
96 else if (
strcmp(data_node->get_name(),
"EmailAddress") == 0) {
124 for (
auto item = nset.
begin() ; item != nset.
end(); ++item ) {
void HandleResponse() override
void HandleResponse() override
TConsumeCallback m_Consume
void ReceiveHttpResponseData(string data)
virtual void HandleResponse()
void SetHttpResponseStatus(long status)
EPSG_MyNCBIResponseStatus GetResponseStatus() const
TDataErrorCallback m_ErrorCallback
string GetHttpResponseData() const
long GetHttpResponseStatus() const
long m_HttpResponseStatus
string m_HttpResponseData
void SetResponseStatus(EPSG_MyNCBIResponseStatus status)
EPSG_MyNCBIResponseStatus m_ResponseStatus
The xml::document class is used to hold the XML tree and various bits of information about it.
The xml::node_set::const_iterator class is used to iterate over nodes in a node set.
The xml::node_set class is used to store xpath query result set.
iterator begin()
Get an iterator that points to the beginning of the xpath query result node set.
iterator end()
Get an iterator that points one past the last node in the xpath query result node set.
The xml::xpath_expression class is used to store xpath query string and optional XML namespaces.
@ eDiag_Error
Error message.
@ e500_InternalServerError
#define END_NCBI_SCOPE
End previously defined NCBI scope.
#define BEGIN_NCBI_SCOPE
Define ncbi namespace.
@ fConvErr_NoThrow
Do not throw an exception on error.
EPSG_MyNCBIResponseStatus
int strcmp(const char *str1, const char *str2)