hiep sua file

This commit is contained in:
2025-12-29 17:43:35 +07:00
parent d8b17df593
commit 5bdd606fff
30 changed files with 1981 additions and 987 deletions

View File

@@ -11,7 +11,7 @@
using namespace XmlRpc;
using namespace robot::XmlRpc;
// Static data
const char XmlRpcClient::REQUEST_BEGIN[] =

View File

@@ -19,7 +19,7 @@
#endif // _WINDOWS
using namespace XmlRpc;
using namespace robot::XmlRpc;
XmlRpcDispatch::XmlRpcDispatch()

View File

@@ -7,7 +7,7 @@
#include "xmlrpcpp/XmlRpcException.h"
using namespace XmlRpc;
using namespace robot::XmlRpc;
XmlRpcServer::XmlRpcServer()

View File

@@ -11,7 +11,7 @@
#endif
using namespace XmlRpc;
using namespace robot::XmlRpc;
// Static data
const char XmlRpcServerConnection::METHODNAME_TAG[] = "<methodName>";

View File

@@ -2,6 +2,7 @@
#include "xmlrpcpp/XmlRpcServerMethod.h"
#include "xmlrpcpp/XmlRpcServer.h"
namespace robot {
namespace XmlRpc {
@@ -19,3 +20,4 @@ namespace XmlRpc {
} // namespace XmlRpc
} // namespace robot

View File

@@ -30,7 +30,7 @@ extern "C" {
#endif // MAKEDEPEND
using namespace XmlRpc;
using namespace robot::XmlRpc;

View File

@@ -3,6 +3,7 @@
#include "xmlrpcpp/XmlRpcSocket.h"
#include "xmlrpcpp/XmlRpcUtil.h"
namespace robot {
namespace XmlRpc {
@@ -33,3 +34,4 @@ namespace XmlRpc {
}
} // namespace XmlRpc
} // namespace robot

View File

@@ -11,7 +11,7 @@
#include "xmlrpcpp/XmlRpc.h"
using namespace XmlRpc;
using namespace robot::XmlRpc;
//#define USE_WINDOWS_DEBUG // To make the error and log messages go to VC++ debug output
@@ -21,7 +21,7 @@ using namespace XmlRpc;
#endif
// Version id
const char XmlRpc::XMLRPC_VERSION[] = "XMLRPC++ 0.7";
const char robot::XmlRpc::XMLRPC_VERSION[] = "XMLRPC++ 0.7";
// Default log verbosity: 0 for no messages through 5 (writes everything)
int XmlRpcLogHandler::_verbosity = 0;
@@ -63,8 +63,8 @@ XmlRpcErrorHandler* XmlRpcErrorHandler::_errorHandler = &defaultErrorHandler;
// Easy API for log verbosity
int XmlRpc::getVerbosity() { return XmlRpcLogHandler::getVerbosity(); }
void XmlRpc::setVerbosity(int level) { XmlRpcLogHandler::setVerbosity(level); }
int robot::XmlRpc::getVerbosity() { return XmlRpcLogHandler::getVerbosity(); }
void robot::XmlRpc::setVerbosity(int level) { XmlRpcLogHandler::setVerbosity(level); }

View File

@@ -11,6 +11,7 @@
# include <stdio.h>
#endif
namespace robot {
namespace XmlRpc {
@@ -598,10 +599,11 @@ namespace XmlRpc {
}
} // namespace XmlRpc
} // namespace robot
// ostream
std::ostream& operator<<(std::ostream& os, XmlRpc::XmlRpcValue& v)
std::ostream& operator<<(std::ostream& os, robot::XmlRpc::XmlRpcValue& v)
{
// If you want to output in xml format:
//return os << v.toXml();