1 karl 1.79 //%2006////////////////////////////////////////////////////////////////////////
|
2 mike 1.21 //
|
3 karl 1.69 // Copyright (c) 2000, 2001, 2002 BMC Software; Hewlett-Packard Development
4 // Company, L.P.; IBM Corp.; The Open Group; Tivoli Systems.
5 // Copyright (c) 2003 BMC Software; Hewlett-Packard Development Company, L.P.;
|
6 karl 1.64 // IBM Corp.; EMC Corporation, The Open Group.
|
7 karl 1.69 // Copyright (c) 2004 BMC Software; Hewlett-Packard Development Company, L.P.;
8 // IBM Corp.; EMC Corporation; VERITAS Software Corporation; The Open Group.
|
9 karl 1.72 // Copyright (c) 2005 Hewlett-Packard Development Company, L.P.; IBM Corp.;
10 // EMC Corporation; VERITAS Software Corporation; The Open Group.
|
11 karl 1.79 // Copyright (c) 2006 Hewlett-Packard Development Company, L.P.; IBM Corp.;
12 // EMC Corporation; Symantec Corporation; The Open Group.
|
13 mike 1.21 //
14 // Permission is hereby granted, free of charge, to any person obtaining a copy
|
15 kumpf 1.48 // of this software and associated documentation files (the "Software"), to
16 // deal in the Software without restriction, including without limitation the
17 // rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
|
18 mike 1.21 // sell copies of the Software, and to permit persons to whom the Software is
19 // furnished to do so, subject to the following conditions:
|
20 karl 1.79 //
|
21 kumpf 1.48 // THE ABOVE COPYRIGHT NOTICE AND THIS PERMISSION NOTICE SHALL BE INCLUDED IN
|
22 mike 1.21 // ALL COPIES OR SUBSTANTIAL PORTIONS OF THE SOFTWARE. THE SOFTWARE IS PROVIDED
23 // "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT
|
24 kumpf 1.48 // LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR
25 // PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
26 // HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN
|
27 mike 1.21 // ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
28 // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
29 //
30 //==============================================================================
31 //
32 //%/////////////////////////////////////////////////////////////////////////////
33
34 #ifndef Pegasus_XmlWriter_h
35 #define Pegasus_XmlWriter_h
36
37 #include <iostream>
38 #include <Pegasus/Common/Config.h>
|
39 kumpf 1.53 #include <Pegasus/Common/InternalException.h>
|
40 kumpf 1.55 #include <Pegasus/Common/ArrayInternal.h>
|
41 mike 1.21 #include <Pegasus/Common/String.h>
42 #include <Pegasus/Common/Indentor.h>
|
43 kumpf 1.41 #include <Pegasus/Common/CIMObject.h>
44 #include <Pegasus/Common/CIMClass.h>
45 #include <Pegasus/Common/CIMInstance.h>
46 #include <Pegasus/Common/CIMProperty.h>
47 #include <Pegasus/Common/CIMMethod.h>
48 #include <Pegasus/Common/CIMParameter.h>
49 #include <Pegasus/Common/CIMQualifier.h>
50 #include <Pegasus/Common/CIMQualifierDecl.h>
51 #include <Pegasus/Common/CIMValue.h>
|
52 kumpf 1.44 #include <Pegasus/Common/CIMObjectPath.h>
|
53 mike 1.22 #include <Pegasus/Common/CIMPropertyList.h>
|
54 kumpf 1.29 #include <Pegasus/Common/CIMParamValue.h>
|
55 kumpf 1.59 #include <Pegasus/Common/Message.h>
|
56 kumpf 1.49 #include <Pegasus/Common/Linkage.h>
|
57 kumpf 1.78 #include <Pegasus/Common/ContentLanguageList.h>
58 #include <Pegasus/Common/AcceptLanguageList.h>
|
59 mike 1.75 #include <Pegasus/Common/Buffer.h>
|
60 mike 1.76 #include <Pegasus/Common/StrLit.h>
|
61 mike 1.21
62 PEGASUS_NAMESPACE_BEGIN
63
|
64 chuck 1.62 // l10n - added accept language and content language support below
65
|
66 mike 1.21 class PEGASUS_COMMON_LINKAGE XmlWriter
67 {
68 public:
69
|
70 mike 1.75 static void append(Buffer& out, const Char16& x);
|
71 mike 1.21
|
72 mike 1.75 static void append(Buffer& out, char x)
|
73 mike 1.21 {
|
74 chuck 1.66 out.append(x);
|
75 mike 1.21 }
76
|
77 mike 1.75 static void append(Buffer& out, Boolean x);
|
78 kumpf 1.39
|
79 mike 1.75 static void append(Buffer& out, Uint32 x);
|
80 kumpf 1.26
|
81 mike 1.75 static void append(Buffer& out, Sint32 x);
|
82 kumpf 1.39
|
83 mike 1.75 static void append(Buffer& out, Uint64 x);
|
84 kumpf 1.39
|
85 mike 1.75 static void append(Buffer& out, Sint64 x);
|
86 kumpf 1.39
|
87 mike 1.75 static void append(Buffer& out, Real32 x);
|
88 chuck 1.65
|
89 mike 1.75 static void append(Buffer& out, Real64 x);
|
90 kumpf 1.39
|
91 mike 1.75 static void append(Buffer& out, const char* str);
|
92 mike 1.21
|
93 mike 1.75 static void append(Buffer& out, const String& str);
|
94 mike 1.21
|
95 mike 1.75 static void append(Buffer& out, const Indentor& x);
|
96 mike 1.21
|
97 mike 1.75 static void appendSpecial(Buffer& out, const Char16& x);
|
98 mike 1.21
|
99 mike 1.75 static void appendSpecial(Buffer& out, char x);
|
100 mike 1.21
|
101 mike 1.75 static void appendSpecial(Buffer& out, const char* str);
|
102 mike 1.21
|
103 mike 1.75 static void appendSpecial(Buffer& out, const String& str);
|
104 mike 1.21
|
105 mike 1.75 static String encodeURICharacters(const Buffer& uriString);
|
106 vijay.eli 1.73 static String encodeURICharacters(const String& uriString);
|
107 kumpf 1.60
|
108 kumpf 1.28 static void appendLocalNameSpacePathElement(
|
109 david.dillard 1.77 Buffer& out,
110 const CIMNamespaceName& nameSpace);
|
111 mike 1.21
|
112 kumpf 1.28 static void appendNameSpacePathElement(
|
113 david.dillard 1.77 Buffer& out,
114 const String& host,
115 const CIMNamespaceName& nameSpace);
|
116 mike 1.21
|
117 kumpf 1.28 static void appendClassNameElement(
|
118 david.dillard 1.77 Buffer& out,
119 const CIMName& className);
|
120 mike 1.21
|
121 kumpf 1.28 static void appendInstanceNameElement(
|
122 david.dillard 1.77 Buffer& out,
123 const CIMObjectPath& instanceName);
|
124 kumpf 1.26
|
125 kumpf 1.28 static void appendClassPathElement(
|
126 david.dillard 1.77 Buffer& out,
127 const CIMObjectPath& classPath);
|
128 mike 1.21
|
129 kumpf 1.28 static void appendInstancePathElement(
|
130 david.dillard 1.77 Buffer& out,
131 const CIMObjectPath& instancePath);
|
132 mike 1.21
|
133 kumpf 1.28 static void appendLocalClassPathElement(
|
134 david.dillard 1.77 Buffer& out,
135 const CIMObjectPath& classPath);
|
136 mike 1.21
|
137 kumpf 1.28 static void appendLocalInstancePathElement(
|
138 david.dillard 1.77 Buffer& out,
139 const CIMObjectPath& instancePath);
|
140 mike 1.21
|
141 kumpf 1.29 static void appendLocalObjectPathElement(
|
142 david.dillard 1.77 Buffer& out,
143 const CIMObjectPath& objectPath);
|
144 kumpf 1.39
145 static void appendValueElement(
|
146 mike 1.75 Buffer& out,
|
147 kumpf 1.39 const CIMValue& value);
148
149 static void printValueElement(
150 const CIMValue& value,
151 PEGASUS_STD(ostream)& os=PEGASUS_STD(cout));
|
152 kumpf 1.29
|
153 kumpf 1.41 static void appendValueObjectWithPathElement(
|
154 mike 1.75 Buffer& out,
|
155 kumpf 1.47 const CIMObject& objectWithPath);
|
156 kumpf 1.41
157 static void appendValueReferenceElement(
|
158 mike 1.75 Buffer& out,
|
159 kumpf 1.44 const CIMObjectPath& reference,
|
160 kumpf 1.41 Boolean putValueWrapper);
161
162 static void printValueReferenceElement(
|
163 kumpf 1.44 const CIMObjectPath& reference,
|
164 kumpf 1.41 PEGASUS_STD(ostream)& os=PEGASUS_STD(cout));
165
166 static void appendValueNamedInstanceElement(
|
167 mike 1.75 Buffer& out,
|
168 kumpf 1.45 const CIMInstance& namedInstance);
|
169 kumpf 1.41
|
170 kumpf 1.40 static void appendClassElement(
|
171 mike 1.75 Buffer& out,
|
172 kumpf 1.40 const CIMConstClass& cimclass);
173
174 static void printClassElement(
175 const CIMConstClass& cimclass,
176 PEGASUS_STD(ostream)& os=PEGASUS_STD(cout));
177
178 static void appendInstanceElement(
|
179 mike 1.75 Buffer& out,
|
180 kumpf 1.40 const CIMConstInstance& instance);
181
182 static void printInstanceElement(
183 const CIMConstInstance& instance,
|
184 kumpf 1.41 PEGASUS_STD(ostream)& os=PEGASUS_STD(cout));
185
186 static void appendObjectElement(
|
187 mike 1.75 Buffer& out,
|
188 kumpf 1.41 const CIMConstObject& object);
189
190 static void appendPropertyElement(
|
191 mike 1.75 Buffer& out,
|
192 kumpf 1.41 const CIMConstProperty& property);
193
194 static void printPropertyElement(
195 const CIMConstProperty& property,
196 PEGASUS_STD(ostream)& os=PEGASUS_STD(cout));
197
198 static void appendMethodElement(
|
199 mike 1.75 Buffer& out,
|
200 kumpf 1.41 const CIMConstMethod& method);
201
202 static void printMethodElement(
203 const CIMConstMethod& method,
204 PEGASUS_STD(ostream)& os=PEGASUS_STD(cout));
205
206 static void appendParameterElement(
|
207 mike 1.75 Buffer& out,
|
208 kumpf 1.41 const CIMConstParameter& parameter);
209
210 static void printParameterElement(
211 const CIMConstParameter& parameter,
212 PEGASUS_STD(ostream)& os=PEGASUS_STD(cout));
213
214 static void appendParamValueElement(
|
215 mike 1.75 Buffer& out,
|
216 kumpf 1.41 const CIMParamValue& paramValue);
217
218 static void printParamValueElement(
219 const CIMParamValue& paramValue,
220 PEGASUS_STD(ostream)& os=PEGASUS_STD(cout));
221
222 static void appendQualifierElement(
|
223 mike 1.75 Buffer& out,
|
224 kumpf 1.41 const CIMConstQualifier& qualifier);
225
226 static void printQualifierElement(
227 const CIMConstQualifier& qualifier,
228 PEGASUS_STD(ostream)& os=PEGASUS_STD(cout));
229
230 static void appendQualifierDeclElement(
|
231 mike 1.75 Buffer& out,
|
232 kumpf 1.41 const CIMConstQualifierDecl& qualifierDecl);
233
234 static void printQualifierDeclElement(
235 const CIMConstQualifierDecl& qualifierDecl,
|
236 kumpf 1.40 PEGASUS_STD(ostream)& os=PEGASUS_STD(cout));
237
|
238 kumpf 1.42 static void appendQualifierFlavorEntity(
|
239 mike 1.75 Buffer& out,
|
240 kumpf 1.52 const CIMFlavor & flavor);
|
241 kumpf 1.42
|
242 kumpf 1.43 static void appendScopeElement(
|
243 mike 1.75 Buffer& out,
|
244 kumpf 1.51 const CIMScope & scope);
|
245 kumpf 1.43
|
246 kumpf 1.28 static void appendMethodCallHeader(
|
247 david.dillard 1.77 Buffer& out,
248 const char* host,
249 const CIMName& cimMethod,
250 const String& cimObject,
251 const String& authenticationHeader,
252 HttpMethod httpMethod,
|
253 kumpf 1.78 const AcceptLanguageList& acceptLanguages,
254 const ContentLanguageList& contentLanguages,
|
255 david.dillard 1.77 Uint32 contentLength);
|
256 mike 1.21
|
257 david.dillard 1.77 // added to accommodate sending WBEMServerResponseTime PEP #128
|
258 w.white 1.68 static void appendMethodResponseHeader(
|
259 mike 1.75 Buffer& out,
|
260 w.white 1.68 HttpMethod httpMethod,
|
261 kumpf 1.78 const ContentLanguageList& contentLanguages,
|
262 w.white 1.68 Uint32 contentLength,
|
263 david.dillard 1.77 Uint64 serverResponseTime = 0);
|
264 w.white 1.68
|
265 kumpf 1.34 static void appendHttpErrorResponseHeader(
|
266 david.dillard 1.77 Buffer& out,
267 const String& status,
268 const String& cimError = String::EMPTY,
269 const String& errorDetail = String::EMPTY);
|
270 kumpf 1.34
|
271 kumpf 1.28 static void appendUnauthorizedResponseHeader(
|
272 david.dillard 1.77 Buffer& out,
|
273 kumpf 1.28 const String& content);
|
274 mike 1.21
|
275 gerarda 1.63 #ifdef PEGASUS_KERBEROS_AUTHENTICATION
276 static void appendOKResponseHeader(
|
277 david.dillard 1.77 Buffer& out,
|
278 gerarda 1.63 const String& content);
279 #endif
|
280 karl 1.82.2.1 static void appendParamTypeAndEmbeddedObjAttrib(
281 Buffer& out,
282 const CIMType& type);
|
283 gerarda 1.63
|
284 kumpf 1.26 static void appendReturnValueElement(
|
285 david.dillard 1.77 Buffer& out,
286 const CIMValue& value);
|
287 kumpf 1.26
288 static void appendBooleanIParameter(
|
289 david.dillard 1.77 Buffer& out,
290 const char* name,
291 Boolean flag);
|
292 mike 1.21
|
293 kumpf 1.26 static void appendStringIParameter(
|
294 david.dillard 1.77 Buffer& out,
295 const char* name,
296 const String& str);
|
297 mike 1.21
|
298 kumpf 1.26 static void appendClassNameIParameter(
|
299 david.dillard 1.77 Buffer& out,
300 const char* name,
301 const CIMName& className);
|
302 mike 1.21
|
303 kumpf 1.26 static void appendInstanceNameIParameter(
|
304 david.dillard 1.77 Buffer& out,
305 const char* name,
306 const CIMObjectPath& instanceName);
|
307 mike 1.21
|
308 kumpf 1.26 static void appendObjectNameIParameter(
|
309 david.dillard 1.77 Buffer& out,
310 const char* name,
311 const CIMObjectPath& objectName);
|
312 mike 1.21
|
313 kumpf 1.26 static void appendClassIParameter(
|
314 david.dillard 1.77 Buffer& out,
315 const char* name,
316 const CIMConstClass& cimClass);
|
317 mike 1.21
|
318 kumpf 1.26 static void appendInstanceIParameter(
|
319 david.dillard 1.77 Buffer& out,
320 const char* name,
321 const CIMConstInstance& instance);
|
322 mike 1.21
|
323 kumpf 1.26 static void appendNamedInstanceIParameter(
|
324 david.dillard 1.77 Buffer& out,
325 const char* name,
326 const CIMInstance& namedInstance) ;
|
327 mike 1.22
|
328 kumpf 1.26 static void appendPropertyNameIParameter(
|
329 david.dillard 1.77 Buffer& out,
330 const CIMName& propertyName);
|
331 mike 1.21
|
332 kumpf 1.26 static void appendPropertyValueIParameter(
|
333 david.dillard 1.77 Buffer& out,
334 const char* name,
335 const CIMValue& value);
|
336 mike 1.21
|
337 kumpf 1.26 static void appendPropertyListIParameter(
|
338 david.dillard 1.77 Buffer& out,
339 const CIMPropertyList& propertyList);
|
340 mike 1.21
|
341 kumpf 1.26 static void appendQualifierDeclarationIParameter(
|
342 david.dillard 1.77 Buffer& out,
343 const char* name,
344 const CIMConstQualifierDecl& qualifierDecl);
|
345 kumpf 1.34
|
346 mike 1.75 static Buffer formatHttpErrorRspMessage(
|
347 david.dillard 1.77 const String& status,
348 const String& cimError = String::EMPTY,
349 const String& errorDetail = String::EMPTY);
|
350 mike 1.21
|
351 mike 1.75 static Buffer formatSimpleMethodReqMessage(
|
352 david.dillard 1.77 const char* host,
353 const CIMNamespaceName& nameSpace,
354 const CIMObjectPath& path,
355 const CIMName& methodName,
356 const Array<CIMParamValue>& parameters,
357 const String& messageId,
|
358 kumpf 1.59 HttpMethod httpMethod,
|
359 chuck 1.62 const String& authenticationHeader,
|
360 kumpf 1.78 const AcceptLanguageList& httpAcceptLanguages,
361 const ContentLanguageList& httpContentLanguages);
|
362 mike 1.21
|
363 kumpf 1.81 // PEP 128 - sending serverResponseTime (WBEMServerResponseTime) in
364 // response header
|
365 david.dillard 1.77 static Buffer formatSimpleMethodRspMessage(
366 const CIMName& methodName,
|
367 w.white 1.68 const String& messageId,
368 HttpMethod httpMethod,
|
369 kumpf 1.78 const ContentLanguageList& httpContentLanguages,
|
370 david.dillard 1.77 const Buffer& body,
371 Uint64 serverResponseTime,
372 Boolean isFirst = true,
373 Boolean isLast = true);
|
374 mike 1.21
|
375 mike 1.75 static Buffer formatSimpleMethodErrorRspMessage(
|
376 david.dillard 1.77 const CIMName& methodName,
377 const String& messageId,
|
378 kumpf 1.59 HttpMethod httpMethod,
|
379 david.dillard 1.77 const CIMException& cimException);
|
380 kumpf 1.27
|
381 mike 1.75 static Buffer formatSimpleIMethodReqMessage(
|
382 david.dillard 1.77 const char* host,
383 const CIMNamespaceName& nameSpace,
384 const CIMName& iMethodName,
385 const String& messageId,
|
386 kumpf 1.59 HttpMethod httpMethod,
|
387 mike 1.22 const String& authenticationHeader,
|
388 kumpf 1.78 const AcceptLanguageList& httpAcceptLanguages,
389 const ContentLanguageList& httpContentLanguages,
|
390 david.dillard 1.77 const Buffer& body);
|
391 mike 1.21
|
392 kumpf 1.81 // PEP 128 - sending serverResponseTime (WBEMServerResponseTime) in
393 // response header
|
394 david.dillard 1.77 static Buffer formatSimpleIMethodRspMessage(
395 const CIMName& iMethodName,
|
396 mike 1.21 const String& messageId,
|
397 kumpf 1.59 HttpMethod httpMethod,
|
398 kumpf 1.78 const ContentLanguageList& httpContentLanguages,
|
399 david.dillard 1.77 const Buffer& body,
400 Uint64 serverResponseTime,
401 Boolean isFirst = true,
402 Boolean isLast = true);
|
403 mike 1.21
|
404 mike 1.75 static Buffer formatSimpleIMethodErrorRspMessage(
|
405 david.dillard 1.77 const CIMName& iMethodName,
406 const String& messageId,
|
407 kumpf 1.59 HttpMethod httpMethod,
|
408 david.dillard 1.77 const CIMException& cimException);
|
409 mike 1.22
|
410 kumpf 1.61 static void appendInstanceEParameter(
|
411 david.dillard 1.77 Buffer& out,
412 const char* name,
413 const CIMInstance& instance);
|
414 kumpf 1.61
|
415 kumpf 1.26 static void appendEMethodRequestHeader(
|
416 david.dillard 1.77 Buffer& out,
|
417 kumpf 1.38 const char* requestUri,
|
418 david.dillard 1.77 const char* host,
419 const CIMName& cimMethod,
|
420 kumpf 1.59 HttpMethod httpMethod,
|
421 mike 1.22 const String& authenticationHeader,
|
422 kumpf 1.78 const AcceptLanguageList& acceptLanguages,
423 const ContentLanguageList& contentLanguages,
|
424 david.dillard 1.77 Uint32 contentLength);
|
425 mike 1.22
|
426 kumpf 1.26 static void appendEMethodResponseHeader(
|
427 david.dillard 1.77 Buffer& out,
|
428 kumpf 1.59 HttpMethod httpMethod,
|
429 kumpf 1.78 const ContentLanguageList& contentLanguages,
|
430 david.dillard 1.77 Uint32 contentLength);
|
431 mike 1.22
|
432 mike 1.75 static Buffer formatSimpleEMethodReqMessage(
|
433 kumpf 1.38 const char* requestUri,
|
434 david.dillard 1.77 const char* host,
435 const CIMName& eMethodName,
436 const String& messageId,
437 HttpMethod httpMethod,
438 const String& authenticationHeader,
|
439 kumpf 1.78 const AcceptLanguageList& httpAcceptLanguages,
440 const ContentLanguageList& httpContentLanguages,
|
441 david.dillard 1.77 const Buffer& body);
|
442 mike 1.22
|
443 mike 1.75 static Buffer formatSimpleEMethodRspMessage(
|
444 david.dillard 1.77 const CIMName& eMethodName,
|
445 mike 1.22 const String& messageId,
|
446 kumpf 1.59 HttpMethod httpMethod,
|
447 kumpf 1.78 const ContentLanguageList& httpContentLanguages,
|
448 david.dillard 1.77 const Buffer& body);
|
449 kumpf 1.27
|
450 mike 1.75 static Buffer formatSimpleEMethodErrorRspMessage(
|
451 david.dillard 1.77 const CIMName& eMethodName,
452 const String& messageId,
|
453 kumpf 1.59 HttpMethod httpMethod,
|
454 david.dillard 1.77 const CIMException& cimException);
|
455 mike 1.22
|
456 kumpf 1.26 static void indentedPrint(
|
457 david.dillard 1.77 PEGASUS_STD(ostream)& os,
458 const char* text,
459 Uint32 indentChars = 2);
|
460 mike 1.22
|
461 kumpf 1.26 static String getNextMessageId();
|
462 mike 1.21
|
463 kumpf 1.57 /** Converts the given CIMKeyBinding type to one of the following:
|
464 kumpf 1.50 "boolean", "string", or "numeric"
465 */
|
466 kumpf 1.57 static const char* keyBindingTypeToString (CIMKeyBinding::Type type);
|
467 kumpf 1.50
|
468 mike 1.21 private:
|
469 kumpf 1.28
470 static void _appendMessageElementBegin(
|
471 david.dillard 1.77 Buffer& out,
472 const String& messageId);
473 static void _appendMessageElementEnd(
474 Buffer& out);
|
475 kumpf 1.28
|
476 mike 1.75 static void _appendSimpleReqElementBegin(Buffer& out);
477 static void _appendSimpleReqElementEnd(Buffer& out);
|
478 kumpf 1.28
479 static void _appendMethodCallElementBegin(
|
480 david.dillard 1.77 Buffer& out,
481 const CIMName& name);
482
|
483 kumpf 1.28 static void _appendMethodCallElementEnd(
|
484 david.dillard 1.77 Buffer& out);
|
485 kumpf 1.28
486 static void _appendIMethodCallElementBegin(
|
487 david.dillard 1.77 Buffer& out,
488 const CIMName& name);
489 static void _appendIMethodCallElementEnd(
490 Buffer& out);
|
491 kumpf 1.28
492 static void _appendIParamValueElementBegin(
|
493 david.dillard 1.77 Buffer& out,
494 const char* name);
495 static void _appendIParamValueElementEnd(
496 Buffer& out);
|
497 kumpf 1.28
|
498 mike 1.75 static void _appendSimpleRspElementBegin(Buffer& out);
499 static void _appendSimpleRspElementEnd(Buffer& out);
|
500 kumpf 1.28
501 static void _appendMethodResponseElementBegin(
|
502 david.dillard 1.77 Buffer& out,
503 const CIMName& name);
504 static void _appendMethodResponseElementEnd(
505 Buffer& out);
|
506 kumpf 1.28
507 static void _appendIMethodResponseElementBegin(
|
508 david.dillard 1.77 Buffer& out,
509 const CIMName& name);
510 static void _appendIMethodResponseElementEnd(
511 Buffer& out);
|
512 kumpf 1.28
513 static void _appendErrorElement(
|
514 david.dillard 1.77 Buffer& out,
515 const CIMException& cimException);
|
516 kumpf 1.28
|
517 mike 1.75 static void _appendIReturnValueElementBegin(Buffer& out);
518 static void _appendIReturnValueElementEnd(Buffer& out);
|
519 kumpf 1.28
|
520 mike 1.75 static void _appendSimpleExportReqElementBegin(Buffer& out);
521 static void _appendSimpleExportReqElementEnd(Buffer& out);
|
522 kumpf 1.28
523 static void _appendEMethodCallElementBegin(
|
524 david.dillard 1.77 Buffer& out,
525 const CIMName& name);
526
|
527 kumpf 1.28 static void _appendEMethodCallElementEnd(
|
528 david.dillard 1.77 Buffer& out);
|
529 kumpf 1.61
530 static void _appendEParamValueElementBegin(
|
531 david.dillard 1.77 Buffer& out,
532 const char* name);
533 static void _appendEParamValueElementEnd(
534 Buffer& out);
|
535 kumpf 1.28
|
536 mike 1.75 static void _appendSimpleExportRspElementBegin(Buffer& out);
537 static void _appendSimpleExportRspElementEnd(Buffer& out);
|
538 kumpf 1.28
539 static void _appendEMethodResponseElementBegin(
|
540 david.dillard 1.77 Buffer& out,
541 const CIMName& name);
542
|
543 kumpf 1.28 static void _appendEMethodResponseElementEnd(
|
544 david.dillard 1.77 Buffer& out);
|
545 mike 1.21
546 XmlWriter() { }
547 };
548
|
549 mike 1.75 PEGASUS_COMMON_LINKAGE Buffer& operator<<(
|
550 david.dillard 1.77 Buffer& out,
|
551 mike 1.21 const char* x);
552
|
553 mike 1.76 inline Buffer& operator<<(Buffer& out, char x)
554 {
555 out.append(x);
556 return out;
557 }
558
559 inline Buffer& operator<<(Buffer& out, const char* s)
560 {
|
561 kavita.gupta 1.82 out.append(s, (Uint32)strlen(s));
|
562 mike 1.76 return out;
563 }
|
564 mike 1.21
|
565 mike 1.75 PEGASUS_COMMON_LINKAGE Buffer& operator<<(Buffer& out, const Char16& x);
|
566 mike 1.21
|
567 mike 1.75 PEGASUS_COMMON_LINKAGE Buffer& operator<<(
|
568 david.dillard 1.77 Buffer& out,
|
569 mike 1.21 const String& x);
570
|
571 mike 1.75 PEGASUS_COMMON_LINKAGE Buffer& operator<<(
|
572 david.dillard 1.77 Buffer& out,
|
573 mike 1.21 const Indentor& x);
574
|
575 mike 1.75 PEGASUS_COMMON_LINKAGE Buffer& operator<<(
|
576 david.dillard 1.77 Buffer& out,
|
577 mike 1.75 const Buffer& x);
|
578 mike 1.21
|
579 mike 1.75 PEGASUS_COMMON_LINKAGE Buffer& operator<<(
|
580 david.dillard 1.77 Buffer& out,
|
581 mike 1.21 Uint32 x);
582
|
583 mike 1.75 PEGASUS_COMMON_LINKAGE Buffer& operator<<(
|
584 david.dillard 1.77 Buffer& out,
|
585 kumpf 1.58 const CIMName& name);
586
|
587 kumpf 1.54 PEGASUS_COMMON_LINKAGE PEGASUS_STD(ostream)& operator<<(
588 PEGASUS_STD(ostream)& os,
589 const CIMDateTime& x);
|
590 kumpf 1.58
591 PEGASUS_COMMON_LINKAGE PEGASUS_STD(ostream)& operator<<(
592 PEGASUS_STD(ostream)& os,
593 const CIMName& name);
594
595 PEGASUS_COMMON_LINKAGE PEGASUS_STD(ostream)& operator<<(
596 PEGASUS_STD(ostream)& os,
597 const CIMNamespaceName& name);
|
598 kumpf 1.54
|
599 mike 1.21 PEGASUS_NAMESPACE_END
600
601 #endif /* Pegasus_XmlWriter_h */
|