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

Diff for /pegasus/src/Pegasus/Common/XmlWriter.h between version 1.9 and 1.69

version 1.9, 2001/04/08 01:13:22 version 1.69, 2004/10/17 20:39:18
Line 1 
Line 1 
 //BEGIN_LICENSE  //%2004////////////////////////////////////////////////////////////////////////
 // //
 // Copyright (c) 2000 The Open Group, BMC Software, Tivoli Systems, IBM  // Copyright (c) 2000, 2001, 2002 BMC Software; Hewlett-Packard Development
   // Company, L.P.; IBM Corp.; The Open Group; Tivoli Systems.
   // Copyright (c) 2003 BMC Software; Hewlett-Packard Development Company, L.P.;
   // IBM Corp.; EMC Corporation, The Open Group.
   // Copyright (c) 2004 BMC Software; Hewlett-Packard Development Company, L.P.;
   // IBM Corp.; EMC Corporation; VERITAS Software Corporation; The Open Group.
   //
   // Permission is hereby granted, free of charge, to any person obtaining a copy
   // of this software and associated documentation files (the "Software"), to
   // deal in the Software without restriction, including without limitation the
   // rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
   // sell copies of the Software, and to permit persons to whom the Software is
   // furnished to do so, subject to the following conditions:
   //
   // THE ABOVE COPYRIGHT NOTICE AND THIS PERMISSION NOTICE SHALL BE INCLUDED IN
   // ALL COPIES OR SUBSTANTIAL PORTIONS OF THE SOFTWARE. THE SOFTWARE IS PROVIDED
   // "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT
   // LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR
   // PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
   // HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN
   // ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
   // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
   //
   //==============================================================================
   //
   // Author: Mike Brasher (mbrasher@bmc.com)
   //
   // Modified By:
   //         Nitin Upasani, Hewlett-Packard Company (Nitin_Upasani@hp.com)
   //         Nag Boranna, Hewlett-Packard Company (nagaraja_boranna@hp.com)
   //         Roger Kumpf, Hewlett-Packard Company (roger_kumpf@hp.com)
   //         Carol Ann Krug Graves, Hewlett-Packard Company
   //             (carolann_graves@hp.com)
   //         Brian G. Campbell, EMC (campbell_brian@emc.com) - PEP140/phase1
   //                 Willis White (whiwill@us.ibm.com) PEP 127 and 128
 // //
 // Permission is hereby granted, free of charge, to any person obtaining a  //%/////////////////////////////////////////////////////////////////////////////
 // copy of this software and associated documentation files (the "Software"),  
 // to deal in the Software without restriction, including without limitation  
 // the rights to use, copy, modify, merge, publish, distribute, sublicense,  
 // and/or sell copies of the Software, and to permit persons to whom the  
 // Software is furnished to do so, subject to the following conditions:  
 //  
 // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR  
 // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,  
 // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL  
 // THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER  
 // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING  
 // FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER  
 // DEALINGS IN THE SOFTWARE.  
 //  
 //END_LICENSE  
 //BEGIN_HISTORY  
 //  
 // Author:  
 //  
 // $Log$  
 // Revision 1.9  2001/04/08 01:13:22  mike  
 // Changed "ConstCIM" to "CIMConst"  
 //  
 // Revision 1.7  2001/02/20 07:25:57  mike  
 // Added basic create-instance in repository and in client.  
 //  
 // Revision 1.6  2001/02/19 01:47:17  mike  
 // Renamed names of the form CIMConst to CIMConst.  
 //  
 // Revision 1.5  2001/02/18 03:56:01  mike  
 // Changed more class names (e.g., ConstClassDecl -> CIMConstClass)  
 //  
 // Revision 1.4  2001/02/16 02:06:07  mike  
 // Renamed many classes and headers.  
 //  
 // Revision 1.3  2001/01/31 08:20:51  mike  
 // Added dispatcher framework.  
 // Added enumerateInstanceNames.  
 //  
 // Revision 1.2  2001/01/29 02:23:44  mike  
 // Added support for GetInstance operation  
 //  
 // Revision 1.1.1.1  2001/01/14 19:53:36  mike  
 // Pegasus import  
 //  
 //  
 //END_HISTORY  
   
 ////////////////////////////////////////////////////////////////////////////////  
 //  
 // XmlWriter.h  
 //  
 ////////////////////////////////////////////////////////////////////////////////  
  
 #ifndef Pegasus_XmlWriter_h #ifndef Pegasus_XmlWriter_h
 #define Pegasus_XmlWriter_h #define Pegasus_XmlWriter_h
  
 #include <iostream> #include <iostream>
 #include <Pegasus/Common/Config.h> #include <Pegasus/Common/Config.h>
 #include <Pegasus/Common/Exception.h>  #include <Pegasus/Common/InternalException.h>
 #include <Pegasus/Common/Array.h>  #include <Pegasus/Common/ArrayInternal.h>
 #include <Pegasus/Common/String.h> #include <Pegasus/Common/String.h>
 #include <Pegasus/Common/Indentor.h> #include <Pegasus/Common/Indentor.h>
 #include <Pegasus/Common/CIMReference.h>  #include <Pegasus/Common/CIMObject.h>
   #include <Pegasus/Common/CIMClass.h>
   #include <Pegasus/Common/CIMInstance.h>
   #include <Pegasus/Common/CIMProperty.h>
   #include <Pegasus/Common/CIMMethod.h>
   #include <Pegasus/Common/CIMParameter.h>
   #include <Pegasus/Common/CIMQualifier.h>
   #include <Pegasus/Common/CIMQualifierDecl.h>
   #include <Pegasus/Common/CIMValue.h>
   #include <Pegasus/Common/CIMObjectPath.h>
   #include <Pegasus/Common/CIMPropertyList.h>
   #include <Pegasus/Common/CIMParamValue.h>
   #include <Pegasus/Common/Message.h>
   #include <Pegasus/Common/Linkage.h>
   #include <Pegasus/Common/ContentLanguages.h>  // l10n
   #include <Pegasus/Common/AcceptLanguages.h>   // l10n
  
 PEGASUS_NAMESPACE_BEGIN PEGASUS_NAMESPACE_BEGIN
  
 class CIMConstQualifierDecl;  // l10n - added accept language and content language support below
 class CIMConstClass;  
 class CIMConstInstance;  
  
 class PEGASUS_COMMON_LINKAGE XmlWriter class PEGASUS_COMMON_LINKAGE XmlWriter
 { {
 public: public:
  
     static void append(Array<Sint8>& out, Char16 x);      static void append(Array<Sint8>& out, const Char16& x);
  
     static void append(Array<Sint8>& out, char x)     static void append(Array<Sint8>& out, char x)
     {     {
         append(out, Char16(x));        out.append(x);
     }     }
  
     static void append(Array<Sint8>& out, const char* x);      static void append(Array<Sint8>& out, Boolean x);
   
     static void append(Array<Sint8>& out, const String& x);  
  
     static void append(Array<Sint8>& out, Uint32 x);     static void append(Array<Sint8>& out, Uint32 x);
  
     static void appendSpecial(Array<Sint8>& out, Char16 x);      static void append(Array<Sint8>& out, Sint32 x);
  
     static void appendSpecial(Array<Sint8>& out, char x);      static void append(Array<Sint8>& out, Uint64 x);
  
     static void appendSpecial(Array<Sint8>& out, const char* x);      static void append(Array<Sint8>& out, Sint64 x);
  
     static void appendSpecial(Array<Sint8>& out, const String& x);      static void append(Array<Sint8>& out, Real32 x);
   
       static void append(Array<Sint8>& out, Real64 x);
   
       static void append(Array<Sint8>& out, const char* str);
   
       static void append(Array<Sint8>& out, const String& str);
  
     static void append(Array<Sint8>& out, const Indentor& x);     static void append(Array<Sint8>& out, const Indentor& x);
  
     static void appendLocalNameSpaceElement(      static void appendSpecial(Array<Sint8>& out, const Char16& x);
   
       static void appendSpecial(Array<Sint8>& out, char x);
   
       static void appendSpecial(Array<Sint8>& out, const char* str);
   
       static void appendSpecial(Array<Sint8>& out, const String& str);
   
       static String encodeURICharacters(Array<Sint8> uriString);
       static String encodeURICharacters(String uriString);
   
       static void appendLocalNameSpacePathElement(
           Array<Sint8>& out,
           const CIMNamespaceName& nameSpace);
   
       static void appendNameSpacePathElement(
           Array<Sint8>& out,
           const String& host,
           const CIMNamespaceName& nameSpace);
   
       static void appendClassNameElement(
           Array<Sint8>& out,
           const CIMName& className);
   
       static void appendInstanceNameElement(
         Array<Sint8>& out,         Array<Sint8>& out,
         const String& nameSpace);          const CIMObjectPath& instanceName);
  
     static void appendNameSpaceElement(      static void appendClassPathElement(
         Array<Sint8>& out,         Array<Sint8>& out,
         const String& nameSpace);          const CIMObjectPath& classPath);
  
     static Array<Sint8> formatGetHeader(      static void appendInstancePathElement(
         const char* documentPath);          Array<Sint8>& out,
           const CIMObjectPath& instancePath);
   
       static void appendLocalClassPathElement(
           Array<Sint8>& out,
           const CIMObjectPath& classPath);
   
       static void appendLocalInstancePathElement(
           Array<Sint8>& out,
           const CIMObjectPath& instancePath);
   
       static void appendLocalObjectPathElement(
           Array<Sint8>& out,
           const CIMObjectPath& objectPath);
   
       static void appendValueElement(
           Array<Sint8>& out,
           const CIMValue& value);
   
       static void printValueElement(
           const CIMValue& value,
           PEGASUS_STD(ostream)& os=PEGASUS_STD(cout));
   
       static void appendValueObjectWithPathElement(
           Array<Sint8>& out,
           const CIMObject& objectWithPath);
   
       static void appendValueReferenceElement(
           Array<Sint8>& out,
           const CIMObjectPath& reference,
           Boolean putValueWrapper);
  
     static Array<Sint8> formatMPostHeader(      static void printValueReferenceElement(
           const CIMObjectPath& reference,
           PEGASUS_STD(ostream)& os=PEGASUS_STD(cout));
   
       static void appendValueNamedInstanceElement(
           Array<Sint8>& out,
           const CIMInstance& namedInstance);
   
       static void appendClassElement(
           Array<Sint8>& out,
           const CIMConstClass& cimclass);
   
       static void printClassElement(
           const CIMConstClass& cimclass,
           PEGASUS_STD(ostream)& os=PEGASUS_STD(cout));
   
       static void appendInstanceElement(
           Array<Sint8>& out,
           const CIMConstInstance& instance);
   
       static void printInstanceElement(
           const CIMConstInstance& instance,
           PEGASUS_STD(ostream)& os=PEGASUS_STD(cout));
   
       static void appendObjectElement(
           Array<Sint8>& out,
           const CIMConstObject& object);
   
       static void appendPropertyElement(
           Array<Sint8>& out,
           const CIMConstProperty& property);
   
       static void printPropertyElement(
           const CIMConstProperty& property,
           PEGASUS_STD(ostream)& os=PEGASUS_STD(cout));
   
       static void appendMethodElement(
           Array<Sint8>& out,
           const CIMConstMethod& method);
   
       static void printMethodElement(
           const CIMConstMethod& method,
           PEGASUS_STD(ostream)& os=PEGASUS_STD(cout));
   
       static void appendParameterElement(
           Array<Sint8>& out,
           const CIMConstParameter& parameter);
   
       static void printParameterElement(
           const CIMConstParameter& parameter,
           PEGASUS_STD(ostream)& os=PEGASUS_STD(cout));
   
       static void appendParamValueElement(
           Array<Sint8>& out,
           const CIMParamValue& paramValue);
   
       static void printParamValueElement(
           const CIMParamValue& paramValue,
           PEGASUS_STD(ostream)& os=PEGASUS_STD(cout));
   
       static void appendQualifierElement(
           Array<Sint8>& out,
           const CIMConstQualifier& qualifier);
   
       static void printQualifierElement(
           const CIMConstQualifier& qualifier,
           PEGASUS_STD(ostream)& os=PEGASUS_STD(cout));
   
       static void appendQualifierDeclElement(
           Array<Sint8>& out,
           const CIMConstQualifierDecl& qualifierDecl);
   
       static void printQualifierDeclElement(
           const CIMConstQualifierDecl& qualifierDecl,
           PEGASUS_STD(ostream)& os=PEGASUS_STD(cout));
   
       static void appendQualifierFlavorEntity(
           Array<Sint8>& out,
           const CIMFlavor & flavor);
   
       static void appendScopeElement(
           Array<Sint8>& out,
           const CIMScope & scope);
   
       static void appendMethodCallHeader(
           Array<Sint8>& out,
         const char* host,         const char* host,
         const char* cimOperation,          const CIMName& cimMethod,
         const char* cimMethod,  
         const String& cimObject,         const String& cimObject,
         const Array<Sint8>& content);          const String& authenticationHeader,
           HttpMethod httpMethod,
       const AcceptLanguages & acceptLanguages,
       const ContentLanguages & contentLanguages,
           Uint32 contentLength);
  
     static Array<Sint8> formatMethodResponseHeader(      static void appendMethodResponseHeader(
         const Array<Sint8>& content);          Array<Sint8>& out,
           HttpMethod httpMethod,
       const ContentLanguages & contentLanguages,
           Uint32 contentLength);
  
     static Array<Sint8> formatMessageElement(          // added to accommidate sending WBEMServerResponseTime PEP #128
         Uint32 messageId,      static void appendMethodResponseHeader(
         const Array<Sint8>& body);          Array<Sint8>& out,
           HttpMethod httpMethod,
       const ContentLanguages & contentLanguages,
           Uint32 contentLength,
           Uint64 serverResponseTime);
  
     static Array<Sint8> formatSimpleReqElement(      static void appendHttpErrorResponseHeader(
         const Array<Sint8>& body);          Array<Sint8>& out,
           const String& status,
           const String& cimError = String::EMPTY,
           const String& errorDetail = String::EMPTY);
  
     static Array<Sint8> formatSimpleRspElement(      static void appendUnauthorizedResponseHeader(
         const Array<Sint8>& body);          Array<Sint8>& out,
           const String& content);
  
     static Array<Sint8> formatIMethodCallElement(  #ifdef PEGASUS_KERBEROS_AUTHENTICATION
         const char* name,      static void appendOKResponseHeader(
         const String& nameSpace,          Array<Sint8>& out,
         const Array<Sint8>& iParamValues);          const String& content);
   #endif
  
     static Array<Sint8> formatIReturnValueElement(      static void appendReturnValueElement(
         const Array<Sint8>& body);          Array<Sint8>& out,
           const CIMValue& value);
  
     static Array<Sint8> formatIMethodResponseElement(      static void appendBooleanIParameter(
           Array<Sint8>& out,
         const char* name,         const char* name,
         const Array<Sint8>& iParamValues);          Boolean flag);
  
     static Array<Sint8>& formatIParamValueElement(      static void appendStringIParameter(
         Array<Sint8>& out,         Array<Sint8>& out,
         const char* name,         const char* name,
         const Array<Sint8>& body);          const String& str);
  
     static Array<Sint8> formatErrorElement(      static void appendQualifierNameIParameter(
         CIMException::Code code,          Array<Sint8>& out,
         const char* description);          const char* name,
           const String& qualifierName);
  
     static Array<Sint8>& appendBooleanParameter(      static void appendClassNameIParameter(
         Array<Sint8>& out,         Array<Sint8>& out,
         const char* parameterName,          const char* name,
         Boolean flag);          const CIMName& className);
  
     static Array<Sint8>& appendClassNameParameter(      static void appendInstanceNameIParameter(
         Array<Sint8>& out,         Array<Sint8>& out,
         const char* parameterName,          const char* name,
         const String& className);          const CIMObjectPath& instanceName);
  
     static Array<Sint8>& appendQualifierNameParameter(      static void appendObjectNameIParameter(
         Array<Sint8>& out,         Array<Sint8>& out,
         const char* parameterName,          const char* name,
         const String& qualifierName);          const CIMObjectPath& objectName);
  
     static Array<Sint8>& appendClassParameter(      static void appendClassIParameter(
         Array<Sint8>& out,         Array<Sint8>& out,
         const char* parameterName,          const char* name,
         const CIMConstClass& cimClass);         const CIMConstClass& cimClass);
  
     static Array<Sint8>& appendInstanceNameParameter(      static void appendInstanceIParameter(
         Array<Sint8>& out,         Array<Sint8>& out,
         const char* parameterName,          const char* name,
         const CIMReference& instanceName);          const CIMConstInstance& instance);
  
     static Array<Sint8>& appendInstanceParameter(      static void appendNamedInstanceIParameter(
         Array<Sint8>& out,         Array<Sint8>& out,
         const char* parameterName,          const char* name,
         const CIMConstInstance& instance);          const CIMInstance& namedInstance) ;
  
     static Array<Sint8>& appendQualifierDeclarationParameter(      static void appendPropertyNameIParameter(
         Array<Sint8>& out,         Array<Sint8>& out,
         const char* parameterName,          const CIMName& propertyName);
         const CIMConstQualifierDecl& qualifierDecl);  
  
     static Array<Sint8>& appendClassNameElement(      static void appendPropertyValueIParameter(
         Array<Sint8>& out,         Array<Sint8>& out,
         const String& className);          const char* name,
           const CIMValue& value);
  
     static Array<Sint8>& appendInstanceNameElement(      static void appendPropertyListIParameter(
         Array<Sint8>& out,         Array<Sint8>& out,
         const CIMReference& instanceName);          const CIMPropertyList& propertyList);
  
     static void indentedPrint(      static void appendQualifierDeclarationIParameter(
         std::ostream& os,          Array<Sint8>& out,
         const char* text,          const char* name,
         Uint32 indentChars = 2);          const CIMConstQualifierDecl& qualifierDecl);
   
       static Array<Sint8> formatHttpErrorRspMessage(
           const String& status,
           const String& cimError = String::EMPTY,
           const String& errorDetail = String::EMPTY);
   
       static Array<Sint8> formatSimpleMethodReqMessage(
           const char* host,
           const CIMNamespaceName& nameSpace,
           const CIMObjectPath& path,
           const CIMName& methodName,
           const Array<CIMParamValue>& parameters,
           const String& messageId,
           HttpMethod httpMethod,
           const String& authenticationHeader,
       const AcceptLanguages& httpAcceptLanguages,
       const ContentLanguages& httpContentLanguages);
   
       static Array<Sint8> formatSimpleMethodRspMessage(
           const CIMName& methodName,
           const String& messageId,
           HttpMethod httpMethod,
           const ContentLanguages & httpContentLanguages,
           const Array<Sint8>& body,
           Boolean isFirst = true,
           Boolean isLast = true);
   
           //PEP 128 - sending serverResponseTime (WBEMServerResponseTime) in respons header
           static Array<Sint8> formatSimpleMethodRspMessage(
           const CIMName& methodName,
           const String& messageId,
           HttpMethod httpMethod,
           const ContentLanguages & httpContentLanguages,
           const Array<Sint8>& body,
           Uint64 serverResponseTime,
           Boolean isFirst = true,
           Boolean isLast = true);
   
       static Array<Sint8> formatSimpleMethodErrorRspMessage(
           const CIMName& methodName,
           const String& messageId,
           HttpMethod httpMethod,
           const CIMException& cimException);
  
     static Array<Sint8> formatSimpleReqMessage(      static Array<Sint8> formatSimpleIMethodReqMessage(
         const char* host,         const char* host,
         const String& nameSpace,          const CIMNamespaceName& nameSpace,
         const char* iMethodName,          const CIMName& iMethodName,
           const String& messageId,
           HttpMethod httpMethod,
           const String& authenticationHeader,
       const AcceptLanguages& httpAcceptLanguages,
       const ContentLanguages& httpContentLanguages,
         const Array<Sint8>& body);         const Array<Sint8>& body);
  
     static Array<Sint8> formatSimpleRspMessage(          static Array<Sint8> formatSimpleIMethodRspMessage(
         const char* iMethodName,          const CIMName& iMethodName,
           const String& messageId,
           HttpMethod httpMethod,
           const ContentLanguages & httpContentLanguages,
           const Array<Sint8>& body,
           Boolean isFirst = true,
           Boolean isLast = true);
   
       //PEP 128 - sending serverResponseTime (WBEMServerResponseTime) in respons header
           static Array<Sint8> formatSimpleIMethodRspMessage(
           const CIMName& iMethodName,
           const String& messageId,
           HttpMethod httpMethod,
           const ContentLanguages & httpContentLanguages,
           const Array<Sint8>& body,
           Uint64 serverResponseTime,
           Boolean isFirst = true,
           Boolean isLast = true);
   
       static Array<Sint8> formatSimpleIMethodErrorRspMessage(
           const CIMName& iMethodName,
           const String& messageId,
           HttpMethod httpMethod,
           const CIMException& cimException);
   
       static void appendInstanceEParameter(
           Array<Sint8>& out,
           const char* name,
           const CIMInstance& instance);
   
       static void appendEMethodRequestHeader(
           Array<Sint8>& out,
           const char* requestUri,
           const char* host,
           const CIMName& cimMethod,
           HttpMethod httpMethod,
           const String& authenticationHeader,
       const AcceptLanguages& acceptLanguages,
       const ContentLanguages& contentLanguages,
           Uint32 contentLength);
   
       static void appendEMethodResponseHeader(
           Array<Sint8>& out,
           HttpMethod httpMethod,
       const ContentLanguages& contentLanguages,
           Uint32 contentLength);
   
       static Array<Sint8> formatSimpleEMethodReqMessage(
           const char* requestUri,
           const char* host,
           const CIMName& eMethodName,
           const String& messageId,
           HttpMethod httpMethod,
           const String& authenticationHeader,
       const AcceptLanguages& httpAcceptLanguages,
       const ContentLanguages& httpContentLanguages,
         const Array<Sint8>& body);         const Array<Sint8>& body);
  
     static Uint32 getNextMessageId();      static Array<Sint8> formatSimpleEMethodRspMessage(
           const CIMName& eMethodName,
           const String& messageId,
           HttpMethod httpMethod,
       const ContentLanguages& httpContentLanguages,
           const Array<Sint8>& body);
   
       static Array<Sint8> formatSimpleEMethodErrorRspMessage(
           const CIMName& eMethodName,
           const String& messageId,
           HttpMethod httpMethod,
           const CIMException& cimException);
   
       static void indentedPrint(
           PEGASUS_STD(ostream)& os,
           const char* text,
           Uint32 indentChars = 2);
   
       static String getNextMessageId();
   
       /** Converts the given CIMKeyBinding type to one of the following:
           "boolean", "string", or "numeric"
       */
       static const char* keyBindingTypeToString (CIMKeyBinding::Type type);
  
 private: private:
  
       static void _appendMessageElementBegin(
           Array<Sint8>& out,
           const String& messageId);
       static void _appendMessageElementEnd(
           Array<Sint8>& out);
   
       static void _appendSimpleReqElementBegin(Array<Sint8>& out);
       static void _appendSimpleReqElementEnd(Array<Sint8>& out);
   
       static void _appendMethodCallElementBegin(
           Array<Sint8>& out,
           const CIMName& name);
       static void _appendMethodCallElementEnd(
           Array<Sint8>& out);
   
       static void _appendIMethodCallElementBegin(
           Array<Sint8>& out,
           const CIMName& name);
       static void _appendIMethodCallElementEnd(
           Array<Sint8>& out);
   
       static void _appendIParamValueElementBegin(
           Array<Sint8>& out,
           const char* name);
       static void _appendIParamValueElementEnd(
           Array<Sint8>& out);
   
       static void _appendSimpleRspElementBegin(Array<Sint8>& out);
       static void _appendSimpleRspElementEnd(Array<Sint8>& out);
   
       static void _appendMethodResponseElementBegin(
           Array<Sint8>& out,
           const CIMName& name);
       static void _appendMethodResponseElementEnd(
           Array<Sint8>& out);
   
       static void _appendIMethodResponseElementBegin(
           Array<Sint8>& out,
           const CIMName& name);
       static void _appendIMethodResponseElementEnd(
           Array<Sint8>& out);
   
       static void _appendErrorElement(
           Array<Sint8>& out,
           const CIMException& cimException);
   
       static void _appendIReturnValueElementBegin(Array<Sint8>& out);
       static void _appendIReturnValueElementEnd(Array<Sint8>& out);
   
       static void _appendSimpleExportReqElementBegin(Array<Sint8>& out);
       static void _appendSimpleExportReqElementEnd(Array<Sint8>& out);
   
       static void _appendEMethodCallElementBegin(
           Array<Sint8>& out,
           const CIMName& name);
       static void _appendEMethodCallElementEnd(
           Array<Sint8>& out);
   
       static void _appendEParamValueElementBegin(
           Array<Sint8>& out,
           const char* name);
       static void _appendEParamValueElementEnd(
           Array<Sint8>& out);
   
       static void _appendSimpleExportRspElementBegin(Array<Sint8>& out);
       static void _appendSimpleExportRspElementEnd(Array<Sint8>& out);
   
       static void _appendEMethodResponseElementBegin(
           Array<Sint8>& out,
           const CIMName& name);
       static void _appendEMethodResponseElementEnd(
           Array<Sint8>& out);
   
     XmlWriter() { }     XmlWriter() { }
 }; };
  
 inline Array<Sint8>& operator<<(Array<Sint8>& out, const char* x)  PEGASUS_COMMON_LINKAGE Array<Sint8>& operator<<(
 {      Array<Sint8>& out,
     XmlWriter::append(out, x);      const char* x);
     return out;  
 }  
  
 inline Array<Sint8>& operator<<(Array<Sint8>& out, char x)  PEGASUS_COMMON_LINKAGE Array<Sint8>& operator<<(Array<Sint8>& out, char x);
 {  
     XmlWriter::append(out, x);  
     return out;  
 }  
  
 inline Array<Sint8>& operator<<(Array<Sint8>& out, Char16 x)  PEGASUS_COMMON_LINKAGE Array<Sint8>& operator<<(Array<Sint8>& out, const Char16& x);
 {  
     XmlWriter::append(out, x);  
     return out;  
 }  
  
 inline Array<Sint8>& operator<<(Array<Sint8>& out, const String& x)  PEGASUS_COMMON_LINKAGE Array<Sint8>& operator<<(
 {      Array<Sint8>& out,
     XmlWriter::append(out, x);      const String& x);
     return out;  
 }  
  
 inline Array<Sint8>& operator<<(Array<Sint8>& out, const Indentor& x)  PEGASUS_COMMON_LINKAGE Array<Sint8>& operator<<(
 {      Array<Sint8>& out,
     XmlWriter::append(out, x);      const Indentor& x);
     return out;  
 }  
  
 inline Array<Sint8>& operator<<(Array<Sint8>& out, const Array<Sint8>& x)  PEGASUS_COMMON_LINKAGE Array<Sint8>& operator<<(
 {      Array<Sint8>& out,
     out.appendArray(x);      const Array<Sint8>& x);
     return out;  
 }  
  
 inline Array<Sint8>& operator<<(Array<Sint8>& out, Uint32 x)  PEGASUS_COMMON_LINKAGE Array<Sint8>& operator<<(
 {      Array<Sint8>& out,
     XmlWriter::append(out, x);      Uint32 x);
     return out;  
 }  PEGASUS_COMMON_LINKAGE Array<Sint8>& operator<<(
       Array<Sint8>& out,
       const CIMName& name);
   
   PEGASUS_COMMON_LINKAGE PEGASUS_STD(ostream)& operator<<(
       PEGASUS_STD(ostream)& os,
       const CIMDateTime& x);
   
   PEGASUS_COMMON_LINKAGE PEGASUS_STD(ostream)& operator<<(
       PEGASUS_STD(ostream)& os,
       const CIMName& name);
   
   PEGASUS_COMMON_LINKAGE PEGASUS_STD(ostream)& operator<<(
       PEGASUS_STD(ostream)& os,
       const CIMNamespaceName& name);
  
 PEGASUS_NAMESPACE_END PEGASUS_NAMESPACE_END
  


Legend:
Removed from v.1.9  
changed lines
  Added in v.1.69

No CVS admin address has been configured
Powered by
ViewCVS 0.9.2