(file) Return to XmlWriter.h CVS log (file) (dir) Up to [Pegasus] / pegasus / src / Pegasus / Common

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

No CVS admin address has been configured
Powered by
ViewCVS 0.9.2