1 #ifndef ENV_INT_HPP_INCLUDED 2 #define ENV_INT_HPP_INCLUDED 3 4 #include "xmlrpc-c/c_util.h" 5 #include "xmlrpc-c/util.h" 6 7 namespace xmlrpc_c { 8 9 class XMLRPC_DLLEXPORT env_wrap { 10 /*---------------------------------------------------------------------------- 11 A wrapper to assist in using the Xmlrpc-c C libraries in 12 Xmlrpc-c C++ code. 13 14 To use the C libraries, you have to use type xmlrpc_env, but that type 15 does not have an automatic destructor (because it's C), so it's hard 16 to throw an error from a context in which a variable of that type 17 exists. This wrapper provides that automatic destructor. 18 -----------------------------------------------------------------------------*/ 19 public: 20 env_wrap(); 21 ~env_wrap(); 22 xmlrpc_env env_c; 23 }; 24 25 26 } // namespace 27 #endif 28