21#ifndef REMOTEXMLREQUEST_HXXH
22#define REMOTEXMLREQUEST_HXXH
24#include <simgear/structure/exception.hxx>
25#include <simgear/io/HTTPMemoryRequest.hxx>
26#include <simgear/props/props_io.hxx>
29 public simgear::HTTP::MemoryRequest
38 simgear::HTTP::MemoryRequest(url),
62 SG_LOG(SG_IO, SG_INFO,
"network level failure in RemoteXMLRequest");
70 int response = responseCode();
72 if (response == 200) {
74 const char* buffer = responseBody().c_str();
75 readProperties(buffer, responseBody().size(),
_target,
true);
76 }
catch (
const sg_exception &e) {
77 SG_LOG(SG_IO, SG_WARN,
"parsing XML from remote, failed: " << e.getFormattedMessage());
SGPropertyNode_ptr _complete
void setStatusProp(SGPropertyNode_ptr p)
RemoteXMLRequest(const std::string &url, SGPropertyNode *targetNode)
SGPropertyNode_ptr _target
SGPropertyNode_ptr _status
void setCompletionProp(SGPropertyNode_ptr p)
void setFailedProp(SGPropertyNode_ptr p)
SGPropertyNode_ptr _failed