00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020 #ifndef _UTILSH
00021 #define _UTILSH
00022
00023 #include <string>
00024 #include <iostream>
00025 #include <fstream>
00026 #include <iomanip>
00027 #ifdef HAVE_CONFIG_H //
00028 #include <config.h>
00029 #endif
00030
00031
00032 #ifndef WSDLPULL_EXPORT
00033 #if (defined _MSC_VER) && (defined _MT)
00034 #define WSDLPULL_EXPORT __declspec (dllimport)
00035 #else
00036 #define WSDLPULL_EXPORT
00037 #endif
00038 #endif
00039
00040
00041 namespace XmlUtils {
00042 int parseInt (std::string s, int radix = 10);
00043 std::ostream & dbsp (std::ostream & str);
00044 std::ostream & blk (std::ostream & str);
00045 bool WSDLPULL_EXPORT fetchUri(std::string uri,std::string & path);
00046 std::string WSDLPULL_EXPORT acceptSecretKey(const std::string& field);
00047 #ifdef _WIN32
00048 void winPost(const std::string uri,const std::string data, std::string action,char* &results);
00049 #endif
00050
00051 bool WSDLPULL_EXPORT getProxy ();
00052 void WSDLPULL_EXPORT setProxy (const bool bProxy);
00053
00054 std::string WSDLPULL_EXPORT getProxyHost ();
00055 void WSDLPULL_EXPORT setProxyHost (const std::string& sProxyHost);
00056
00057 std::string WSDLPULL_EXPORT getProxyUser ();
00058 void WSDLPULL_EXPORT setProxyUser (const std::string& sProxyUser);
00059
00060 std::string WSDLPULL_EXPORT getProxyPass ();
00061 void WSDLPULL_EXPORT setProxyPass (const std::string& sProxyPass);
00062 };
00063 #endif