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 // Author: Mike Brasher (mbrasher@bmc.com)
33 //
|
34 david.dillard 1.77 // Modified By:
|
35 mike 1.22 // Nitin Upasani, Hewlett-Packard Company (Nitin_Upasani@hp.com)
36 // Nag Boranna, Hewlett-Packard Company (nagaraja_boranna@hp.com)
37 // Roger Kumpf, Hewlett-Packard Company (roger_kumpf@hp.com)
|
38 kumpf 1.45 // Carol Ann Krug Graves, Hewlett-Packard Company
39 // (carolann_graves@hp.com)
|
40 brian.campbell 1.67 // Brian G. Campbell, EMC (campbell_brian@emc.com) - PEP140/phase1
|
41 david.dillard 1.77 // Willis White (whiwill@us.ibm.com) PEP 127 and 128
|
42 brian.campbell 1.70 // Brian G. Campbell, EMC (campbell_brian@emc.com) - PEP140/phase2
|
43 david.dillard 1.77 // David Dillard, Symantec Corp. (david_dillard@symantec.com)
|
44 vijay.eli 1.73 // Vijay Eli, vijayeli@in.ibm.com, fix for #2571
|
45 mike 1.21 //
46 //%/////////////////////////////////////////////////////////////////////////////
47
48 #ifndef Pegasus_XmlWriter_h
49 #define Pegasus_XmlWriter_h
50
51 #include <iostream>
52 #include <Pegasus/Common/Config.h>
|
53 kumpf 1.53 #include <Pegasus/Common/InternalException.h>
|
54 kumpf 1.55 #include <Pegasus/Common/ArrayInternal.h>
|
55 mike 1.21 #include <Pegasus/Common/String.h>
56 #include <Pegasus/Common/Indentor.h>
|
57 kumpf 1.41 #include <Pegasus/Common/CIMObject.h>
58 #include <Pegasus/Common/CIMClass.h>
59 #include <Pegasus/Common/CIMInstance.h>
60 #include <Pegasus/Common/CIMProperty.h>
61 #include <Pegasus/Common/CIMMethod.h>
62 #include <Pegasus/Common/CIMParameter.h>
63 #include <Pegasus/Common/CIMQualifier.h>
64 #include <Pegasus/Common/CIMQualifierDecl.h>
65 #include <Pegasus/Common/CIMValue.h>
|
66 kumpf 1.44 #include <Pegasus/Common/CIMObjectPath.h>
|
67 mike 1.22 #include <Pegasus/Common/CIMPropertyList.h>
|
68 kumpf 1.29 #include <Pegasus/Common/CIMParamValue.h>
|
69 kumpf 1.59 #include <Pegasus/Common/Message.h>
|
70 kumpf 1.49 #include <Pegasus/Common/Linkage.h>
|
71 kumpf 1.78 #include <Pegasus/Common/ContentLanguageList.h>
72 #include <Pegasus/Common/AcceptLanguageList.h>
|
73 mike 1.75 #include <Pegasus/Common/Buffer.h>
|
74 mike 1.76 #include <Pegasus/Common/StrLit.h>
|
75 mike 1.21
76 PEGASUS_NAMESPACE_BEGIN
77
|
78 chuck 1.62 // l10n - added accept language and content language support below
79
|
80 mike 1.21 class PEGASUS_COMMON_LINKAGE XmlWriter
81 {
82 public:
83
|
84 mike 1.75 static void append(Buffer& out, const Char16& x);
|
85 mike 1.21
|
86 mike 1.75 static void append(Buffer& out, char x)
|
87 mike 1.21 {
|
88 chuck 1.66 out.append(x);
|
89 mike 1.21 }
90
|
91 mike 1.75 static void append(Buffer& out, Boolean x);
|
92 kumpf 1.39
|
93 mike 1.75 static void append(Buffer& out, Uint32 x);
|
94 kumpf 1.26
|
95 mike 1.75 static void append(Buffer& out, Sint32 x);
|
96 kumpf 1.39
|
97 mike 1.75 static void append(Buffer& out, Uint64 x);
|
98 kumpf 1.39
|
99 mike 1.75 static void append(Buffer& out, Sint64 x);
|
100 kumpf 1.39
|
101 mike 1.75 static void append(Buffer& out, Real32 x);
|
102 chuck 1.65
|
103 mike 1.75 static void append(Buffer& out, Real64 x);
|
104 kumpf 1.39
|
105 mike 1.75 static void append(Buffer& out, const char* str);
|
106 mike 1.21
|
107 mike 1.75 static void append(Buffer& out, const String& str);
|
108 mike 1.21
|
109 mike 1.75 static void append(Buffer& out, const Indentor& x);
|
110 mike 1.21
|
111 mike 1.75 static void appendSpecial(Buffer& out, const Char16& x);
|
112 mike 1.21
|
113 mike 1.75 static void appendSpecial(Buffer& out, char x);
|
114 mike 1.21
|
115 mike 1.75 static void appendSpecial(Buffer& out, const char* str);
|
116 mike 1.21
|
117 mike 1.75 static void appendSpecial(Buffer& out, const String& str);
|
118 mike 1.21
|
119 mike 1.75 static String encodeURICharacters(const Buffer& uriString);
|
120 vijay.eli 1.73 static String encodeURICharacters(const String& uriString);
|
121 kumpf 1.60
|
122 kumpf 1.28 static void appendLocalNameSpacePathElement(
|
123 david.dillard 1.77 Buffer& out,
124 const CIMNamespaceName& nameSpace);
|
125 mike 1.21
|
126 kumpf 1.28 static void appendNameSpacePathElement(
|
127 david.dillard 1.77 Buffer& out,
128 const String& host,
129 const CIMNamespaceName& nameSpace);
|
130 mike 1.21
|
131 kumpf 1.28 static void appendClassNameElement(
|
132 david.dillard 1.77 Buffer& out,
133 const CIMName& className);
|
134 mike 1.21
|
135 kumpf 1.28 static void appendInstanceNameElement(
|
136 david.dillard 1.77 Buffer& out,
137 const CIMObjectPath& instanceName);
|
138 kumpf 1.26
|
139 kumpf 1.28 static void appendClassPathElement(
|
140 david.dillard 1.77 Buffer& out,
141 const CIMObjectPath& classPath);
|
142 mike 1.21
|
143 kumpf 1.28 static void appendInstancePathElement(
|
144 david.dillard 1.77 Buffer& out,
145 const CIMObjectPath& instancePath);
|
146 mike 1.21
|
147 kumpf 1.28 static void appendLocalClassPathElement(
|
148 david.dillard 1.77 Buffer& out,
149 const CIMObjectPath& classPath);
|
150 mike 1.21
|
151 kumpf 1.28 static void appendLocalInstancePathElement(
|
152 david.dillard 1.77 Buffer& out,
153 const CIMObjectPath& instancePath);
|
154 mike 1.21
|
155 kumpf 1.29 static void appendLocalObjectPathElement(
|
156 david.dillard 1.77 Buffer& out,
157 const CIMObjectPath& objectPath);
|
158 kumpf 1.39
159 static void appendValueElement(
|
160 mike 1.75 Buffer& out,
|
161 kumpf 1.39 const CIMValue& value);
162
163 static void printValueElement(
164 const CIMValue& value,
165 PEGASUS_STD(ostream)& os=PEGASUS_STD(cout));
|
166 kumpf 1.29
|
167 kumpf 1.41 static void appendValueObjectWithPathElement(
|
168 mike 1.75 Buffer& out,
|
169 kumpf 1.47 const CIMObject& objectWithPath);
|
170 kumpf 1.41
171 static void appendValueReferenceElement(
|
172 mike 1.75 Buffer& out,
|
173 kumpf 1.44 const CIMObjectPath& reference,
|
174 kumpf 1.41 Boolean putValueWrapper);
175
176 static void printValueReferenceElement(
|
177 kumpf 1.44 const CIMObjectPath& reference,
|
178 kumpf 1.41 PEGASUS_STD(ostream)& os=PEGASUS_STD(cout));
179
180 static void appendValueNamedInstanceElement(
|
181 mike 1.75 Buffer& out,
|
182 kumpf 1.45 const CIMInstance& namedInstance);
|
183 kumpf 1.41
|
184 kumpf 1.40 static void appendClassElement(
|
185 mike 1.75 Buffer& out,
|
186 kumpf 1.40 const CIMConstClass& cimclass);
187
188 static void printClassElement(
189 const CIMConstClass& cimclass,
190 PEGASUS_STD(ostream)& os=PEGASUS_STD(cout));
191
192 static void appendInstanceElement(
|
193 mike 1.75 Buffer& out,
|
194 kumpf 1.40 const CIMConstInstance& instance);
195
196 static void printInstanceElement(
197 const CIMConstInstance& instance,
|
198 kumpf 1.41 PEGASUS_STD(ostream)& os=PEGASUS_STD(cout));
199
200 static void appendObjectElement(
|
201 mike 1.75 Buffer& out,
|
202 kumpf 1.41 const CIMConstObject& object);
203
204 static void appendPropertyElement(
|
205 mike 1.75 Buffer& out,
|
206 kumpf 1.41 const CIMConstProperty& property);
207
208 static void printPropertyElement(
209 const CIMConstProperty& property,
210 PEGASUS_STD(ostream)& os=PEGASUS_STD(cout));
211
212 static void appendMethodElement(
|
213 mike 1.75 Buffer& out,
|
214 kumpf 1.41 const CIMConstMethod& method);
215
216 static void printMethodElement(
217 const CIMConstMethod& method,
218 PEGASUS_STD(ostream)& os=PEGASUS_STD(cout));
219
220 static void appendParameterElement(
|
221 mike 1.75 Buffer& out,
|
222 kumpf 1.41 const CIMConstParameter& parameter);
223
224 static void printParameterElement(
225 const CIMConstParameter& parameter,
226 PEGASUS_STD(ostream)& os=PEGASUS_STD(cout));
227
228 static void appendParamValueElement(
|
229 mike 1.75 Buffer& out,
|
230 kumpf 1.41 const CIMParamValue& paramValue);
231
232 static void printParamValueElement(
233 const CIMParamValue& paramValue,
234 PEGASUS_STD(ostream)& os=PEGASUS_STD(cout));
235
236 static void appendQualifierElement(
|
237 mike 1.75 Buffer& out,
|
238 kumpf 1.41 const CIMConstQualifier& qualifier);
239
240 static void printQualifierElement(
241 const CIMConstQualifier& qualifier,
242 PEGASUS_STD(ostream)& os=PEGASUS_STD(cout));
243
244 static void appendQualifierDeclElement(
|
245 mike 1.75 Buffer& out,
|
246 kumpf 1.41 const CIMConstQualifierDecl& qualifierDecl);
247
248 static void printQualifierDeclElement(
249 const CIMConstQualifierDecl& qualifierDecl,
|
250 kumpf 1.40 PEGASUS_STD(ostream)& os=PEGASUS_STD(cout));
251
|
252 kumpf 1.42 static void appendQualifierFlavorEntity(
|
253 mike 1.75 Buffer& out,
|
254 kumpf 1.52 const CIMFlavor & flavor);
|
255 kumpf 1.42
|
256 kumpf 1.43 static void appendScopeElement(
|
257 mike 1.75 Buffer& out,
|
258 kumpf 1.51 const CIMScope & scope);
|
259 kumpf 1.43
|
260 kumpf 1.28 static void appendMethodCallHeader(
|
261 david.dillard 1.77 Buffer& out,
262 const char* host,
263 const CIMName& cimMethod,
264 const String& cimObject,
265 const String& authenticationHeader,
266 HttpMethod httpMethod,
|
267 kumpf 1.78 const AcceptLanguageList& acceptLanguages,
268 const ContentLanguageList& contentLanguages,
|
269 david.dillard 1.77 Uint32 contentLength);
|
270 mike 1.21
|
271 david.dillard 1.77 // added to accommodate sending WBEMServerResponseTime PEP #128
|
272 w.white 1.68 static void appendMethodResponseHeader(
|
273 mike 1.75 Buffer& out,
|
274 w.white 1.68 HttpMethod httpMethod,
|
275 kumpf 1.78 const ContentLanguageList& contentLanguages,
|
276 w.white 1.68 Uint32 contentLength,
|
277 david.dillard 1.77 Uint64 serverResponseTime = 0);
|
278 w.white 1.68
|
279 kumpf 1.34 static void appendHttpErrorResponseHeader(
|
280 david.dillard 1.77 Buffer& out,
281 const String& status,
282 const String& cimError = String::EMPTY,
283 const String& errorDetail = String::EMPTY);
|
284 kumpf 1.34
|
285 kumpf 1.28 static void appendUnauthorizedResponseHeader(
|
286 david.dillard 1.77 Buffer& out,
|
287 kumpf 1.28 const String& content);
|
288 mike 1.21
|
289 gerarda 1.63 #ifdef PEGASUS_KERBEROS_AUTHENTICATION
290 static void appendOKResponseHeader(
|
291 david.dillard 1.77 Buffer& out,
|
292 gerarda 1.63 const String& content);
293 #endif
294
|
295 kumpf 1.26 static void appendReturnValueElement(
|
296 david.dillard 1.77 Buffer& out,
297 const CIMValue& value);
|
298 kumpf 1.26
299 static void appendBooleanIParameter(
|
300 david.dillard 1.77 Buffer& out,
301 const char* name,
302 Boolean flag);
|
303 mike 1.21
|
304 kumpf 1.26 static void appendStringIParameter(
|
305 david.dillard 1.77 Buffer& out,
306 const char* name,
307 const String& str);
|
308 mike 1.21
|
309 kumpf 1.26 static void appendClassNameIParameter(
|
310 david.dillard 1.77 Buffer& out,
311 const char* name,
312 const CIMName& className);
|
313 mike 1.21
|
314 kumpf 1.26 static void appendInstanceNameIParameter(
|
315 david.dillard 1.77 Buffer& out,
316 const char* name,
317 const CIMObjectPath& instanceName);
|
318 mike 1.21
|
319 kumpf 1.26 static void appendObjectNameIParameter(
|
320 david.dillard 1.77 Buffer& out,
321 const char* name,
322 const CIMObjectPath& objectName);
|
323 mike 1.21
|
324 kumpf 1.26 static void appendClassIParameter(
|
325 david.dillard 1.77 Buffer& out,
326 const char* name,
327 const CIMConstClass& cimClass);
|
328 mike 1.21
|
329 kumpf 1.26 static void appendInstanceIParameter(
|
330 david.dillard 1.77 Buffer& out,
331 const char* name,
332 const CIMConstInstance& instance);
|
333 mike 1.21
|
334 kumpf 1.26 static void appendNamedInstanceIParameter(
|
335 david.dillard 1.77 Buffer& out,
336 const char* name,
337 const CIMInstance& namedInstance) ;
|
338 mike 1.22
|
339 kumpf 1.26 static void appendPropertyNameIParameter(
|
340 david.dillard 1.77 Buffer& out,
341 const CIMName& propertyName);
|
342 mike 1.21
|
343 kumpf 1.26 static void appendPropertyValueIParameter(
|
344 david.dillard 1.77 Buffer& out,
345 const char* name,
346 const CIMValue& value);
|
347 mike 1.21
|
348 kumpf 1.26 static void appendPropertyListIParameter(
|
349 david.dillard 1.77 Buffer& out,
350 const CIMPropertyList& propertyList);
|
351 mike 1.21
|
352 kumpf 1.26 static void appendQualifierDeclarationIParameter(
|
353 david.dillard 1.77 Buffer& out,
354 const char* name,
355 const CIMConstQualifierDecl& qualifierDecl);
|
356 kumpf 1.34
|
357 mike 1.75 static Buffer formatHttpErrorRspMessage(
|
358 david.dillard 1.77 const String& status,
359 const String& cimError = String::EMPTY,
360 const String& errorDetail = String::EMPTY);
|
361 mike 1.21
|
362 mike 1.75 static Buffer formatSimpleMethodReqMessage(
|
363 david.dillard 1.77 const char* host,
364 const CIMNamespaceName& nameSpace,
365 const CIMObjectPath& path,
366 const CIMName& methodName,
367 const Array<CIMParamValue>& parameters,
368 const String& messageId,
|
369 kumpf 1.59 HttpMethod httpMethod,
|
370 chuck 1.62 const String& authenticationHeader,
|
371 kumpf 1.78 const AcceptLanguageList& httpAcceptLanguages,
372 const ContentLanguageList& httpContentLanguages);
|
373 mike 1.21
|
374 david.dillard 1.77 //PEP 128 - sending serverResponseTime (WBEMServerResponseTime) in respons header
375 static Buffer formatSimpleMethodRspMessage(
376 const CIMName& methodName,
|
377 w.white 1.68 const String& messageId,
378 HttpMethod httpMethod,
|
379 kumpf 1.78 const ContentLanguageList& httpContentLanguages,
|
380 david.dillard 1.77 const Buffer& body,
381 Uint64 serverResponseTime,
382 Boolean isFirst = true,
383 Boolean isLast = true);
|
384 mike 1.21
|
385 mike 1.75 static Buffer formatSimpleMethodErrorRspMessage(
|
386 david.dillard 1.77 const CIMName& methodName,
387 const String& messageId,
|
388 kumpf 1.59 HttpMethod httpMethod,
|
389 david.dillard 1.77 const CIMException& cimException);
|
390 kumpf 1.27
|
391 mike 1.75 static Buffer formatSimpleIMethodReqMessage(
|
392 david.dillard 1.77 const char* host,
393 const CIMNamespaceName& nameSpace,
394 const CIMName& iMethodName,
395 const String& messageId,
|
396 kumpf 1.59 HttpMethod httpMethod,
|
397 mike 1.22 const String& authenticationHeader,
|
398 kumpf 1.78 const AcceptLanguageList& httpAcceptLanguages,
399 const ContentLanguageList& httpContentLanguages,
|
400 david.dillard 1.77 const Buffer& body);
|
401 mike 1.21
|
402 w.white 1.68 //PEP 128 - sending serverResponseTime (WBEMServerResponseTime) in respons header
|
403 david.dillard 1.77 static Buffer formatSimpleIMethodRspMessage(
404 const CIMName& iMethodName,
|
405 mike 1.21 const String& messageId,
|
406 kumpf 1.59 HttpMethod httpMethod,
|
407 kumpf 1.78 const ContentLanguageList& httpContentLanguages,
|
408 david.dillard 1.77 const Buffer& body,
409 Uint64 serverResponseTime,
410 Boolean isFirst = true,
411 Boolean isLast = true);
|
412 mike 1.21
|
413 mike 1.75 static Buffer formatSimpleIMethodErrorRspMessage(
|
414 david.dillard 1.77 const CIMName& iMethodName,
415 const String& messageId,
|
416 kumpf 1.59 HttpMethod httpMethod,
|
417 david.dillard 1.77 const CIMException& cimException);
|
418 mike 1.22
|
419 kumpf 1.61 static void appendInstanceEParameter(
|
420 david.dillard 1.77 Buffer& out,
421 const char* name,
422 const CIMInstance& instance);
|
423 kumpf 1.61
|
424 kumpf 1.26 static void appendEMethodRequestHeader(
|
425 david.dillard 1.77 Buffer& out,
|
426 kumpf 1.38 const char* requestUri,
|
427 david.dillard 1.77 const char* host,
428 const CIMName& cimMethod,
|
429 kumpf 1.59 HttpMethod httpMethod,
|
430 mike 1.22 const String& authenticationHeader,
|
431 kumpf 1.78 const AcceptLanguageList& acceptLanguages,
432 const ContentLanguageList& contentLanguages,
|
433 david.dillard 1.77 Uint32 contentLength);
|
434 mike 1.22
|
435 kumpf 1.26 static void appendEMethodResponseHeader(
|
436 david.dillard 1.77 Buffer& out,
|
437 kumpf 1.59 HttpMethod httpMethod,
|
438 kumpf 1.78 const ContentLanguageList& contentLanguages,
|
439 david.dillard 1.77 Uint32 contentLength);
|
440 mike 1.22
|
441 mike 1.75 static Buffer formatSimpleEMethodReqMessage(
|
442 kumpf 1.38 const char* requestUri,
|
443 david.dillard 1.77 const char* host,
444 const CIMName& eMethodName,
445 const String& messageId,
446 HttpMethod httpMethod,
447 const String& authenticationHeader,
|
448 kumpf 1.78 const AcceptLanguageList& httpAcceptLanguages,
449 const ContentLanguageList& httpContentLanguages,
|
450 david.dillard 1.77 const Buffer& body);
|
451 mike 1.22
|
452 mike 1.75 static Buffer formatSimpleEMethodRspMessage(
|
453 david.dillard 1.77 const CIMName& eMethodName,
|
454 mike 1.22 const String& messageId,
|
455 kumpf 1.59 HttpMethod httpMethod,
|
456 kumpf 1.78 const ContentLanguageList& httpContentLanguages,
|
457 david.dillard 1.77 const Buffer& body);
|
458 kumpf 1.27
|
459 mike 1.75 static Buffer formatSimpleEMethodErrorRspMessage(
|
460 david.dillard 1.77 const CIMName& eMethodName,
461 const String& messageId,
|
462 kumpf 1.59 HttpMethod httpMethod,
|
463 david.dillard 1.77 const CIMException& cimException);
|
464 mike 1.22
|
465 kumpf 1.26 static void indentedPrint(
|
466 david.dillard 1.77 PEGASUS_STD(ostream)& os,
467 const char* text,
468 Uint32 indentChars = 2);
|
469 mike 1.22
|
470 kumpf 1.26 static String getNextMessageId();
|
471 mike 1.21
|
472 kumpf 1.57 /** Converts the given CIMKeyBinding type to one of the following:
|
473 kumpf 1.50 "boolean", "string", or "numeric"
474 */
|
475 kumpf 1.57 static const char* keyBindingTypeToString (CIMKeyBinding::Type type);
|
476 kumpf 1.50
|
477 mike 1.21 private:
|
478 kumpf 1.28
479 static void _appendMessageElementBegin(
|
480 david.dillard 1.77 Buffer& out,
481 const String& messageId);
482 static void _appendMessageElementEnd(
483 Buffer& out);
|
484 kumpf 1.28
|
485 mike 1.75 static void _appendSimpleReqElementBegin(Buffer& out);
486 static void _appendSimpleReqElementEnd(Buffer& out);
|
487 kumpf 1.28
488 static void _appendMethodCallElementBegin(
|
489 david.dillard 1.77 Buffer& out,
490 const CIMName& name);
491
|
492 kumpf 1.28 static void _appendMethodCallElementEnd(
|
493 david.dillard 1.77 Buffer& out);
|
494 kumpf 1.28
495 static void _appendIMethodCallElementBegin(
|
496 david.dillard 1.77 Buffer& out,
497 const CIMName& name);
498 static void _appendIMethodCallElementEnd(
499 Buffer& out);
|
500 kumpf 1.28
501 static void _appendIParamValueElementBegin(
|
502 david.dillard 1.77 Buffer& out,
503 const char* name);
504 static void _appendIParamValueElementEnd(
505 Buffer& out);
|
506 kumpf 1.28
|
507 mike 1.75 static void _appendSimpleRspElementBegin(Buffer& out);
508 static void _appendSimpleRspElementEnd(Buffer& out);
|
509 kumpf 1.28
510 static void _appendMethodResponseElementBegin(
|
511 david.dillard 1.77 Buffer& out,
512 const CIMName& name);
513 static void _appendMethodResponseElementEnd(
514 Buffer& out);
|
515 kumpf 1.28
516 static void _appendIMethodResponseElementBegin(
|
517 david.dillard 1.77 Buffer& out,
518 const CIMName& name);
519 static void _appendIMethodResponseElementEnd(
520 Buffer& out);
|
521 kumpf 1.28
522 static void _appendErrorElement(
|
523 david.dillard 1.77 Buffer& out,
524 const CIMException& cimException);
|
525 kumpf 1.28
|
526 mike 1.75 static void _appendIReturnValueElementBegin(Buffer& out);
527 static void _appendIReturnValueElementEnd(Buffer& out);
|
528 kumpf 1.28
|
529 mike 1.75 static void _appendSimpleExportReqElementBegin(Buffer& out);
530 static void _appendSimpleExportReqElementEnd(Buffer& out);
|
531 kumpf 1.28
532 static void _appendEMethodCallElementBegin(
|
533 david.dillard 1.77 Buffer& out,
534 const CIMName& name);
535
|
536 kumpf 1.28 static void _appendEMethodCallElementEnd(
|
537 david.dillard 1.77 Buffer& out);
|
538 kumpf 1.61
539 static void _appendEParamValueElementBegin(
|
540 david.dillard 1.77 Buffer& out,
541 const char* name);
542 static void _appendEParamValueElementEnd(
543 Buffer& out);
|
544 kumpf 1.28
|
545 mike 1.75 static void _appendSimpleExportRspElementBegin(Buffer& out);
546 static void _appendSimpleExportRspElementEnd(Buffer& out);
|
547 kumpf 1.28
548 static void _appendEMethodResponseElementBegin(
|
549 david.dillard 1.77 Buffer& out,
550 const CIMName& name);
551
|
552 kumpf 1.28 static void _appendEMethodResponseElementEnd(
|
553 david.dillard 1.77 Buffer& out);
|
554 mike 1.21
555 XmlWriter() { }
556 };
557
|
558 mike 1.75 PEGASUS_COMMON_LINKAGE Buffer& operator<<(
|
559 david.dillard 1.77 Buffer& out,
|
560 mike 1.21 const char* x);
561
|
562 mike 1.76 inline Buffer& operator<<(Buffer& out, char x)
563 {
564 out.append(x);
565 return out;
566 }
567
568 inline Buffer& operator<<(Buffer& out, const char* s)
569 {
570 out.append(s, strlen(s));
571 return out;
572 }
|
573 mike 1.21
|
574 mike 1.75 PEGASUS_COMMON_LINKAGE Buffer& operator<<(Buffer& out, const Char16& x);
|
575 mike 1.21
|
576 mike 1.75 PEGASUS_COMMON_LINKAGE Buffer& operator<<(
|
577 david.dillard 1.77 Buffer& out,
|
578 mike 1.21 const String& x);
579
|
580 mike 1.75 PEGASUS_COMMON_LINKAGE Buffer& operator<<(
|
581 david.dillard 1.77 Buffer& out,
|
582 mike 1.21 const Indentor& x);
583
|
584 mike 1.75 PEGASUS_COMMON_LINKAGE Buffer& operator<<(
|
585 david.dillard 1.77 Buffer& out,
|
586 mike 1.75 const Buffer& x);
|
587 mike 1.21
|
588 mike 1.75 PEGASUS_COMMON_LINKAGE Buffer& operator<<(
|
589 david.dillard 1.77 Buffer& out,
|
590 mike 1.21 Uint32 x);
591
|
592 mike 1.75 PEGASUS_COMMON_LINKAGE Buffer& operator<<(
|
593 david.dillard 1.77 Buffer& out,
|
594 kumpf 1.58 const CIMName& name);
595
|
596 kumpf 1.54 PEGASUS_COMMON_LINKAGE PEGASUS_STD(ostream)& operator<<(
597 PEGASUS_STD(ostream)& os,
598 const CIMDateTime& x);
|
599 kumpf 1.58
600 PEGASUS_COMMON_LINKAGE PEGASUS_STD(ostream)& operator<<(
601 PEGASUS_STD(ostream)& os,
602 const CIMName& name);
603
604 PEGASUS_COMMON_LINKAGE PEGASUS_STD(ostream)& operator<<(
605 PEGASUS_STD(ostream)& os,
606 const CIMNamespaceName& name);
|
607 kumpf 1.54
|
608 mike 1.21 PEGASUS_NAMESPACE_END
609
610 #endif /* Pegasus_XmlWriter_h */
|