Xerces-C++: XMLURL.hpp Source File (original) (raw)

1

2

3

4

5

6

7

8

9

10

11

12

13

14

15

16

17

18

19

20

21

22#if !defined(XERCESC_INCLUDE_GUARD_XMLURL_HPP)

23#define XERCESC_INCLUDE_GUARD_XMLURL_HPP

24

26

28

30

31

32

33

34

36{

37public:

38

39

40

41

42

43

45 {

46 File

47 , HTTP

49 , HTTPS

50

51 , Protocols_Count

52 , Unknown

54

55

56

57

58

61

62

63

64

67 (

68 const XMLCh* const baseURL

69 , const XMLCh* const relativeURL

71 );

73 (

74 const XMLCh* const baseURL

75 , const char* const relativeURL

77 );

79 (

81 , const XMLCh* const relativeURL

82 );

84 (

86 , const char* const relativeURL

87 );

89 (

90 const XMLCh* const urlText

92 );

94 (

95 const char* const urlText

97 );

100

101

102

103

104

107 bool operator!=(const XMLURL& toCompare) const;

108

109

110

111

112

113 const XMLCh* getFragment() const;

114 const XMLCh* getHost() const;

115 const XMLCh* getPassword() const;

116 const XMLCh* getPath() const;

120 const XMLCh* getQuery() const;

121 const XMLCh* getURLText() const;

122 const XMLCh* getUser() const;

124

125

126

127

128

131 (

132 const XMLCh* const baseURL

133 , const XMLCh* const relativeURL

134 );

136 (

137 const XMLURL& baseURL

138 , const XMLCh* const relativeURL

139 );

140

142 const XMLCh* const baseURL

143 , const XMLCh* const relativeURL

145

146

147

153

154

155private:

156

157

158

159 void buildFullText();

160 void cleanUp();

161 bool conglomerateWithBase(const XMLURL& baseURL, bool useExceptions=true);

162 void parse

163 (

164 const XMLCh* const urlText

165 );

166

167

168

169

170

171

172

173

174

175

176

177

178

179

180

181

182

183

184

185

186

187

188

189

190

191

192

193

194

195

196

197

198

199

200

201

202

203

204

205

206

207

209 XMLCh* fFragment;

211 XMLCh* fPassword;

213 unsigned int fPortNum;

218 bool fHasInvalidChar;

219};

220

221

222

223

224

229

230

231

232

233

235{

236 return fFragment;

237}

238

240{

241 return fHost;

242}

243

245{

246 return fPassword;

247}

248

250{

251 return fPath;

252}

253

255{

256 return fProtocol;

257}

258

260{

261 return fQuery;

262}

263

265{

266 return fUser;

267}

268

270{

271

272

273

274

275

276 if (!fURLText)

277 ((XMLURL*)this)->buildFullText();

278

279 return fURLText;

280}

281

283{

284 return fMemoryManager;

285}

286

288

290

291

292#endif

#define MakeXMLException(theType, expKeyword)

Definition XMLException.hpp:178

#define XERCES_CPP_NAMESPACE_BEGIN

Definition XercesDefs.hpp:112

#define XMLUTIL_EXPORT

Definition XercesDefs.hpp:162

#define XERCES_CPP_NAMESPACE_END

Definition XercesDefs.hpp:113

char16_t XMLCh

Definition Xerces_autoconf_config.hpp:120

Definition BinInputStream.hpp:30

Configurable memory manager.

Definition MemoryManager.hpp:40

static MemoryManager * fgMemoryManager

The configurable memory manager.

Definition PlatformUtils.hpp:121

bool operator==(const XMLURL &toCompare) const

const XMLCh * getPath() const

Definition XMLURL.hpp:249

bool setURL(const XMLCh *const baseURL, const XMLCh *const relativeURL, XMLURL &xmlURL)

XMLURL(const XMLCh *const urlText, MemoryManager *const manager=XMLPlatformUtils::fgMemoryManager)

bool hasInvalidChar() const

const XMLCh * getHost() const

Definition XMLURL.hpp:239

void makeRelativeTo(const XMLURL &baseURL)

XMLURL(const XMLURL &baseURL, const char *const relativeURL)

Protocols getProtocol() const

Definition XMLURL.hpp:254

Protocols

Definition XMLURL.hpp:45

const XMLCh * getQuery() const

Definition XMLURL.hpp:259

XMLURL(const XMLURL &baseURL, const XMLCh *const relativeURL)

const XMLCh * getFragment() const

Definition XMLURL.hpp:234

XMLURL(MemoryManager *const manager=XMLPlatformUtils::fgMemoryManager)

XMLURL(const char *const urlText, MemoryManager *const manager=XMLPlatformUtils::fgMemoryManager)

XMLURL(const XMLCh *const baseURL, const XMLCh *const relativeURL, MemoryManager *const manager=XMLPlatformUtils::fgMemoryManager)

BinInputStream * makeNewStream() const

void setURL(const XMLURL &baseURL, const XMLCh *const relativeURL)

XMLURL(const XMLURL &toCopy)

void setURL(const XMLCh *const urlText)

const XMLCh * getProtocolName() const

static bool parse(const XMLCh *const urlText, XMLURL &xmlURL)

static Protocols lookupByName(const XMLCh *const protoName)

const XMLCh * getURLText() const

Definition XMLURL.hpp:269

const XMLCh * getUser() const

Definition XMLURL.hpp:264

const XMLCh * getPassword() const

Definition XMLURL.hpp:244

XMLURL(const XMLCh *const baseURL, const char *const relativeURL, MemoryManager *const manager=XMLPlatformUtils::fgMemoryManager)

void setURL(const XMLCh *const baseURL, const XMLCh *const relativeURL)

void makeRelativeTo(const XMLCh *const baseURLText)

unsigned int getPortNum() const

bool operator!=(const XMLURL &toCompare) const

Definition XMLURL.hpp:225

XMLURL & operator=(const XMLURL &toAssign)

MemoryManager * getMemoryManager() const

Definition XMLURL.hpp:282

This class makes it possible to override the C++ memory management by adding new/delete operators to ...

Definition XMemory.hpp:41