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

  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                    
281 kumpf         1.26     static void appendReturnValueElement(
282 david.dillard 1.77         Buffer& out,
283                            const CIMValue& value);
284 kumpf         1.26 
285                        static void appendBooleanIParameter(
286 david.dillard 1.77         Buffer& out,
287                            const char* name,
288                            Boolean flag);
289 mike          1.21 
290 kumpf         1.26     static void appendStringIParameter(
291 david.dillard 1.77         Buffer& out,
292                            const char* name,
293                            const String& str);
294 mike          1.21 
295 kumpf         1.26     static void appendClassNameIParameter(
296 david.dillard 1.77         Buffer& out,
297                            const char* name,
298                            const CIMName& className);
299 mike          1.21 
300 kumpf         1.26     static void appendInstanceNameIParameter(
301 david.dillard 1.77         Buffer& out,
302                            const char* name,
303                            const CIMObjectPath& instanceName);
304 mike          1.21 
305 kumpf         1.26     static void appendObjectNameIParameter(
306 david.dillard 1.77         Buffer& out,
307                            const char* name,
308                            const CIMObjectPath& objectName);
309 mike          1.21 
310 kumpf         1.26     static void appendClassIParameter(
311 david.dillard 1.77         Buffer& out,
312                            const char* name,
313                            const CIMConstClass& cimClass);
314 mike          1.21 
315 kumpf         1.26     static void appendInstanceIParameter(
316 david.dillard 1.77         Buffer& out,
317                            const char* name,
318                            const CIMConstInstance& instance);
319 mike          1.21 
320 kumpf         1.26     static void appendNamedInstanceIParameter(
321 david.dillard 1.77         Buffer& out,
322                            const char* name,
323                            const CIMInstance& namedInstance) ;
324 mike          1.22 
325 kumpf         1.26     static void appendPropertyNameIParameter(
326 david.dillard 1.77         Buffer& out,
327                            const CIMName& propertyName);
328 mike          1.21 
329 kumpf         1.26     static void appendPropertyValueIParameter(
330 david.dillard 1.77         Buffer& out,
331                            const char* name,
332                            const CIMValue& value);
333 mike          1.21 
334 kumpf         1.26     static void appendPropertyListIParameter(
335 david.dillard 1.77         Buffer& out,
336                            const CIMPropertyList& propertyList);
337 mike          1.21 
338 kumpf         1.26     static void appendQualifierDeclarationIParameter(
339 david.dillard 1.77         Buffer& out,
340                            const char* name,
341                            const CIMConstQualifierDecl& qualifierDecl);
342 kumpf         1.34 
343 mike          1.75     static Buffer formatHttpErrorRspMessage(
344 david.dillard 1.77         const String& status,
345                            const String& cimError = String::EMPTY,
346                            const String& errorDetail = String::EMPTY);
347 mike          1.21 
348 mike          1.75     static Buffer formatSimpleMethodReqMessage(
349 david.dillard 1.77         const char* host,
350                            const CIMNamespaceName& nameSpace,
351                            const CIMObjectPath& path,
352                            const CIMName& methodName,
353                            const Array<CIMParamValue>& parameters,
354                            const String& messageId,
355 kumpf         1.59         HttpMethod httpMethod,
356 chuck         1.62         const String& authenticationHeader,
357 kumpf         1.78         const AcceptLanguageList& httpAcceptLanguages,
358                            const ContentLanguageList& httpContentLanguages);
359 mike          1.21 
360 kumpf         1.81     // PEP 128 - sending serverResponseTime (WBEMServerResponseTime) in
361                        // response header
362 david.dillard 1.77     static Buffer formatSimpleMethodRspMessage(
363                            const CIMName& methodName,
364 w.white       1.68         const String& messageId,
365                            HttpMethod httpMethod,
366 kumpf         1.78         const ContentLanguageList& httpContentLanguages,
367 david.dillard 1.77         const Buffer& body,
368                            Uint64 serverResponseTime,
369                            Boolean isFirst = true,
370                            Boolean isLast = true);
371 mike          1.21 
372 mike          1.75     static Buffer formatSimpleMethodErrorRspMessage(
373 david.dillard 1.77         const CIMName& methodName,
374                            const String& messageId,
375 kumpf         1.59         HttpMethod httpMethod,
376 david.dillard 1.77         const CIMException& cimException);
377 kumpf         1.27 
378 mike          1.75     static Buffer formatSimpleIMethodReqMessage(
379 david.dillard 1.77         const char* host,
380                            const CIMNamespaceName& nameSpace,
381                            const CIMName& iMethodName,
382                            const String& messageId,
383 kumpf         1.59         HttpMethod httpMethod,
384 mike          1.22         const String& authenticationHeader,
385 kumpf         1.78         const AcceptLanguageList& httpAcceptLanguages,
386                            const ContentLanguageList& httpContentLanguages,
387 david.dillard 1.77         const Buffer& body);
388 mike          1.21 
389 kumpf         1.81     // PEP 128 - sending serverResponseTime (WBEMServerResponseTime) in
390                        // response header
391 david.dillard 1.77     static Buffer formatSimpleIMethodRspMessage(
392                            const CIMName& iMethodName,
393 mike          1.21         const String& messageId,
394 kumpf         1.59         HttpMethod httpMethod,
395 kumpf         1.78         const ContentLanguageList& httpContentLanguages,
396 david.dillard 1.77         const Buffer& body,
397                            Uint64 serverResponseTime,
398                            Boolean isFirst = true,
399                            Boolean isLast = true);
400 mike          1.21 
401 mike          1.75     static Buffer formatSimpleIMethodErrorRspMessage(
402 david.dillard 1.77         const CIMName& iMethodName,
403                            const String& messageId,
404 kumpf         1.59         HttpMethod httpMethod,
405 david.dillard 1.77         const CIMException& cimException);
406 mike          1.22 
407 kumpf         1.61     static void appendInstanceEParameter(
408 david.dillard 1.77         Buffer& out,
409                            const char* name,
410                            const CIMInstance& instance);
411 kumpf         1.61 
412 kumpf         1.26     static void appendEMethodRequestHeader(
413 david.dillard 1.77         Buffer& out,
414 kumpf         1.38         const char* requestUri,
415 david.dillard 1.77         const char* host,
416                            const CIMName& cimMethod,
417 kumpf         1.59         HttpMethod httpMethod,
418 mike          1.22         const String& authenticationHeader,
419 kumpf         1.78         const AcceptLanguageList& acceptLanguages,
420                            const ContentLanguageList& contentLanguages,
421 david.dillard 1.77         Uint32 contentLength);
422 mike          1.22 
423 kumpf         1.26     static void appendEMethodResponseHeader(
424 david.dillard 1.77         Buffer& out,
425 kumpf         1.59         HttpMethod httpMethod,
426 kumpf         1.78         const ContentLanguageList& contentLanguages,
427 david.dillard 1.77         Uint32 contentLength);
428 mike          1.22 
429 mike          1.75     static Buffer formatSimpleEMethodReqMessage(
430 kumpf         1.38         const char* requestUri,
431 david.dillard 1.77         const char* host,
432                            const CIMName& eMethodName,
433                            const String& messageId,
434                            HttpMethod httpMethod,
435                            const String& authenticationHeader,
436 kumpf         1.78         const AcceptLanguageList& httpAcceptLanguages,
437                            const ContentLanguageList& httpContentLanguages,
438 david.dillard 1.77         const Buffer& body);
439 mike          1.22 
440 mike          1.75     static Buffer formatSimpleEMethodRspMessage(
441 david.dillard 1.77         const CIMName& eMethodName,
442 mike          1.22         const String& messageId,
443 kumpf         1.59         HttpMethod httpMethod,
444 kumpf         1.78         const ContentLanguageList& httpContentLanguages,
445 david.dillard 1.77         const Buffer& body);
446 kumpf         1.27 
447 mike          1.75     static Buffer formatSimpleEMethodErrorRspMessage(
448 david.dillard 1.77         const CIMName& eMethodName,
449                            const String& messageId,
450 kumpf         1.59         HttpMethod httpMethod,
451 david.dillard 1.77         const CIMException& cimException);
452 mike          1.22 
453 kumpf         1.26     static void indentedPrint(
454 david.dillard 1.77         PEGASUS_STD(ostream)& os,
455                            const char* text,
456                            Uint32 indentChars = 2);
457 mike          1.22 
458 kumpf         1.26     static String getNextMessageId();
459 mike          1.21 
460 kumpf         1.57     /** Converts the given CIMKeyBinding type to one of the following:
461 kumpf         1.50         "boolean", "string", or "numeric"
462                        */
463 kumpf         1.57     static const char* keyBindingTypeToString (CIMKeyBinding::Type type);
464 kumpf         1.50 
465 mike          1.21 private:
466 kumpf         1.28 
467                        static void _appendMessageElementBegin(
468 david.dillard 1.77         Buffer& out,
469                            const String& messageId);
470                            static void _appendMessageElementEnd(
471                            Buffer& out);
472 kumpf         1.28 
473 mike          1.75     static void _appendSimpleReqElementBegin(Buffer& out);
474                        static void _appendSimpleReqElementEnd(Buffer& out);
475 kumpf         1.28 
476                        static void _appendMethodCallElementBegin(
477 david.dillard 1.77         Buffer& out,
478                            const CIMName& name);
479                    
480 kumpf         1.28     static void _appendMethodCallElementEnd(
481 david.dillard 1.77         Buffer& out);
482 kumpf         1.28 
483                        static void _appendIMethodCallElementBegin(
484 david.dillard 1.77         Buffer& out,
485                            const CIMName& name);
486                            static void _appendIMethodCallElementEnd(
487                            Buffer& out);
488 kumpf         1.28 
489                        static void _appendIParamValueElementBegin(
490 david.dillard 1.77         Buffer& out,
491                            const char* name);
492                            static void _appendIParamValueElementEnd(
493                            Buffer& out);
494 kumpf         1.28 
495 mike          1.75     static void _appendSimpleRspElementBegin(Buffer& out);
496                        static void _appendSimpleRspElementEnd(Buffer& out);
497 kumpf         1.28 
498                        static void _appendMethodResponseElementBegin(
499 david.dillard 1.77         Buffer& out,
500                            const CIMName& name);
501                            static void _appendMethodResponseElementEnd(
502                            Buffer& out);
503 kumpf         1.28 
504                        static void _appendIMethodResponseElementBegin(
505 david.dillard 1.77         Buffer& out,
506                            const CIMName& name);
507                            static void _appendIMethodResponseElementEnd(
508                            Buffer& out);
509 kumpf         1.28 
510                        static void _appendErrorElement(
511 david.dillard 1.77         Buffer& out,
512                            const CIMException& cimException);
513 kumpf         1.28 
514 mike          1.75     static void _appendIReturnValueElementBegin(Buffer& out);
515                        static void _appendIReturnValueElementEnd(Buffer& out);
516 kumpf         1.28 
517 mike          1.75     static void _appendSimpleExportReqElementBegin(Buffer& out);
518                        static void _appendSimpleExportReqElementEnd(Buffer& out);
519 kumpf         1.28 
520                        static void _appendEMethodCallElementBegin(
521 david.dillard 1.77         Buffer& out,
522                            const CIMName& name);
523                    
524 kumpf         1.28     static void _appendEMethodCallElementEnd(
525 david.dillard 1.77         Buffer& out);
526 kumpf         1.61 
527                        static void _appendEParamValueElementBegin(
528 david.dillard 1.77         Buffer& out,
529                            const char* name);
530                            static void _appendEParamValueElementEnd(
531                            Buffer& out);
532 kumpf         1.28 
533 mike          1.75     static void _appendSimpleExportRspElementBegin(Buffer& out);
534                        static void _appendSimpleExportRspElementEnd(Buffer& out);
535 kumpf         1.28 
536                        static void _appendEMethodResponseElementBegin(
537 david.dillard 1.77         Buffer& out,
538                            const CIMName& name);
539                    
540 kumpf         1.28     static void _appendEMethodResponseElementEnd(
541 david.dillard 1.77         Buffer& out);
542 mike          1.21 
543                        XmlWriter() { }
544                    };
545                    
546 mike          1.75 PEGASUS_COMMON_LINKAGE Buffer& operator<<(
547 david.dillard 1.77     Buffer& out,
548 mike          1.21     const char* x);
549                    
550 mike          1.76 inline Buffer& operator<<(Buffer& out, char x)
551                    {
552                        out.append(x);
553                        return out;
554                    }
555                    
556                    inline Buffer& operator<<(Buffer& out, const char* s)
557                    {
558                        out.append(s, strlen(s));
559                        return out;
560                    }
561 mike          1.21 
562 mike          1.75 PEGASUS_COMMON_LINKAGE Buffer& operator<<(Buffer& out, const Char16& x);
563 mike          1.21 
564 mike          1.75 PEGASUS_COMMON_LINKAGE Buffer& operator<<(
565 david.dillard 1.77     Buffer& out,
566 mike          1.21     const String& x);
567                    
568 mike          1.75 PEGASUS_COMMON_LINKAGE Buffer& operator<<(
569 david.dillard 1.77     Buffer& out,
570 mike          1.21     const Indentor& x);
571                    
572 mike          1.75 PEGASUS_COMMON_LINKAGE Buffer& operator<<(
573 david.dillard 1.77     Buffer& out,
574 mike          1.75     const Buffer& 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     Uint32 x);
579                    
580 mike          1.75 PEGASUS_COMMON_LINKAGE Buffer& operator<<(
581 david.dillard 1.77     Buffer& out,
582 kumpf         1.58     const CIMName& name);
583                    
584 kumpf         1.54 PEGASUS_COMMON_LINKAGE PEGASUS_STD(ostream)& operator<<(
585                        PEGASUS_STD(ostream)& os,
586                        const CIMDateTime& x);
587 kumpf         1.58 
588                    PEGASUS_COMMON_LINKAGE PEGASUS_STD(ostream)& operator<<(
589                        PEGASUS_STD(ostream)& os,
590                        const CIMName& name);
591                    
592                    PEGASUS_COMMON_LINKAGE PEGASUS_STD(ostream)& operator<<(
593                        PEGASUS_STD(ostream)& os,
594                        const CIMNamespaceName& name);
595 kumpf         1.54 
596 mike          1.21 PEGASUS_NAMESPACE_END
597                    
598                    #endif /* Pegasus_XmlWriter_h */

No CVS admin address has been configured
Powered by
ViewCVS 0.9.2