2008-05-23 20:56:24 +00:00
|
|
|
#ifndef ENV_INT_HPP_INCLUDED
|
|
|
|
#define ENV_INT_HPP_INCLUDED
|
|
|
|
|
2012-10-13 11:37:25 -05:00
|
|
|
#include "xmlrpc-c/c_util.h"
|
2008-05-23 20:56:24 +00:00
|
|
|
#include "xmlrpc-c/util.h"
|
|
|
|
|
|
|
|
namespace xmlrpc_c {
|
|
|
|
|
2012-10-13 11:37:25 -05:00
|
|
|
class XMLRPC_DLLEXPORT env_wrap {
|
2008-05-23 20:56:24 +00:00
|
|
|
/*----------------------------------------------------------------------------
|
|
|
|
A wrapper to assist in using the Xmlrpc-c C libraries in
|
|
|
|
Xmlrpc-c C++ code.
|
|
|
|
|
|
|
|
To use the C libraries, you have to use type xmlrpc_env, but that type
|
|
|
|
does not have an automatic destructor (because it's C), so it's hard
|
|
|
|
to throw an error from a context in which a variable of that type
|
|
|
|
exists. This wrapper provides that automatic destructor.
|
|
|
|
-----------------------------------------------------------------------------*/
|
|
|
|
public:
|
|
|
|
env_wrap();
|
|
|
|
~env_wrap();
|
|
|
|
xmlrpc_env env_c;
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
} // namespace
|
|
|
|
#endif
|