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

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

No CVS admin address has been configured
Powered by
ViewCVS 0.9.2