wsdlpull  1.23
XmlUtils.h
Go to the documentation of this file.
1 /*
2  * wsdlpull - A C++ parser for WSDL (Web services description language)
3  * Copyright (C) 2005-2007 Vivek Krishna
4  *
5  * This library is free software; you can redistribute it and/or
6  * modify it under the terms of the GNU Library General Public
7  * License as published by the Free Software Foundation; either
8  * version 2 of the License, or (at your option) any later version.
9  *
10  * This library is distributed in the hope that it will be useful,
11  * but WITHOUT ANY WARRANTY; without even the implied warranty of
12  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13  * Library General Public License for more details.
14  *
15  * You should have received a copy of the GNU Library General Public
16  * License along with this library; if not, write to the Free
17  * Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
18  */
19 
20 #ifndef _UTILSH
21 #define _UTILSH
22 
23 #include <string>
24 #include <iostream>
25 #include <fstream>
26 #include <iomanip>
27 #ifdef HAVE_CONFIG_H //
28 #include <config.h>
29 #endif
30 #include "wsdlpull_export.h"
31 
32 
33 //put all miscellaneous utiliy functions here
34 namespace XmlUtils {
35  int parseInt (std::string s, int radix = 10);
36  std::ostream & dbsp (std::ostream & str);
37  std::ostream & blk (std::ostream & str);
38  bool WSDLPULL_EXPORT fetchUri(std::string uri,std::string & path);
39  std::string WSDLPULL_EXPORT acceptSecretKey(const std::string& field);
40 #ifdef _WIN32
41  void winPost(const std::string uri,const std::string username,
42  const std::string password,const std::string data,
43  std::string action,char* &results);
44 #endif
45  //network related stuff
46  bool WSDLPULL_EXPORT getProxy ();
47  void WSDLPULL_EXPORT setProxy (const bool bProxy);
48 
49  std::string WSDLPULL_EXPORT getProxyHost ();
50  void WSDLPULL_EXPORT setProxyHost (const std::string& sProxyHost);
51 
52  std::string WSDLPULL_EXPORT getProxyUser ();
53  void WSDLPULL_EXPORT setProxyUser (const std::string& sProxyUser);
54 
55  std::string WSDLPULL_EXPORT getProxyPass ();
56  void WSDLPULL_EXPORT setProxyPass (const std::string& sProxyPass);
57 }
58 #endif /* */
XmlUtils::parseInt
int parseInt(std::string s, int radix=10)
Definition: XmlUtils.cpp:57
XmlUtils::setProxy
void WSDLPULL_EXPORT setProxy(const bool bProxy)
Definition: XmlUtils.cpp:333
XmlUtils::blk
std::ostream & blk(std::ostream &str)
Definition: XmlUtils.cpp:97
WSDLPULL_EXPORT
#define WSDLPULL_EXPORT
Definition: wsdlpull_export.h:33
XmlUtils
Definition: XmlUtils.h:34
XmlUtils::dbsp
std::ostream & dbsp(std::ostream &str)
Definition: XmlUtils.cpp:90
XmlUtils::setProxyUser
void WSDLPULL_EXPORT setProxyUser(const std::string &sProxyUser)
Definition: XmlUtils.cpp:361
XmlUtils::getProxyHost
std::string WSDLPULL_EXPORT getProxyHost()
Definition: XmlUtils.cpp:340
XmlUtils::getProxyUser
std::string WSDLPULL_EXPORT getProxyUser()
Definition: XmlUtils.cpp:354
XmlUtils::getProxy
bool WSDLPULL_EXPORT getProxy()
Definition: XmlUtils.cpp:326
wsdlpull_export.h
XmlUtils::setProxyHost
void WSDLPULL_EXPORT setProxyHost(const std::string &sProxyHost)
Definition: XmlUtils.cpp:347
XmlUtils::getProxyPass
std::string WSDLPULL_EXPORT getProxyPass()
Definition: XmlUtils.cpp:368
XmlUtils::acceptSecretKey
std::string WSDLPULL_EXPORT acceptSecretKey(const std::string &field)
Definition: XmlUtils.cpp:250
XmlUtils::setProxyPass
void WSDLPULL_EXPORT setProxyPass(const std::string &sProxyPass)
Definition: XmlUtils.cpp:375
XmlUtils::fetchUri
bool WSDLPULL_EXPORT fetchUri(std::string uri, std::string &path)
Definition: XmlUtils.cpp:108