wsdlpull svntrunk
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
34namespace XmlUtils {
35 std::string getSuffix();
36 std::string getFileName(std::string);
37 std::string creUriFile(std::string);
38 void delUriFiles();
39 void MutexInit();
40 void MutexLock();
41 void MutexUnlock();
42 int parseInt (std::string s, int radix = 10);
43 std::ostream & dbsp (std::ostream & str);
44 std::ostream & blk (std::ostream & str);
45 bool WSDLPULL_EXPORT fetchUri(std::string uri,std::string & path);
46 std::string WSDLPULL_EXPORT acceptSecretKey(const std::string& field);
47#ifdef _WIN32
48 void winPost(const std::string uri,const std::string username,
49 const std::string password,const std::string data,
50 std::string action,char* &results);
51#endif
52 //network related stuff
54 void WSDLPULL_EXPORT setProxy (const bool bProxy);
55
56 std::string WSDLPULL_EXPORT getProxyHost ();
57 void WSDLPULL_EXPORT setProxyHost (const std::string& sProxyHost);
58
59 std::string WSDLPULL_EXPORT getProxyUser ();
60 void WSDLPULL_EXPORT setProxyUser (const std::string& sProxyUser);
61
62 std::string WSDLPULL_EXPORT getProxyPass ();
63 void WSDLPULL_EXPORT setProxyPass (const std::string& sProxyPass);
64}
65#endif /* */
std::ostream & blk(std::ostream &str)
Definition: XmlUtils.cpp:110
bool WSDLPULL_EXPORT getProxy()
Definition: XmlUtils.cpp:510
std::string WSDLPULL_EXPORT getProxyHost()
Definition: XmlUtils.cpp:524
int parseInt(std::string s, int radix=10)
Definition: XmlUtils.cpp:70
std::string creUriFile(std::string)
Definition: XmlUtils.cpp:144
void WSDLPULL_EXPORT setProxyPass(const std::string &sProxyPass)
Definition: XmlUtils.cpp:559
void delUriFiles()
Definition: XmlUtils.cpp:174
bool WSDLPULL_EXPORT fetchUri(std::string uri, std::string &path)
Definition: XmlUtils.cpp:293
std::string WSDLPULL_EXPORT acceptSecretKey(const std::string &field)
Definition: XmlUtils.cpp:434
void WSDLPULL_EXPORT setProxy(const bool bProxy)
Definition: XmlUtils.cpp:517
std::string getSuffix()
Definition: XmlUtils.cpp:209
std::string WSDLPULL_EXPORT getProxyUser()
Definition: XmlUtils.cpp:538
void MutexUnlock()
Definition: XmlUtils.cpp:276
void WSDLPULL_EXPORT setProxyUser(const std::string &sProxyUser)
Definition: XmlUtils.cpp:545
std::string WSDLPULL_EXPORT getProxyPass()
Definition: XmlUtils.cpp:552
void WSDLPULL_EXPORT setProxyHost(const std::string &sProxyHost)
Definition: XmlUtils.cpp:531
void MutexLock()
Definition: XmlUtils.cpp:263
std::string getFileName(std::string)
Definition: XmlUtils.cpp:118
void MutexInit()
Definition: XmlUtils.cpp:234
std::ostream & dbsp(std::ostream &str)
Definition: XmlUtils.cpp:103
#define WSDLPULL_EXPORT