version 1.5, 2001/02/18 03:56:01
|
version 1.14, 2001/05/20 20:34:01
|
|
|
//BEGIN_LICENSE |
//%///////////////////////////////////////////////////////////////////////////// |
// | // |
// Copyright (c) 2000 The Open Group, BMC Software, Tivoli Systems, IBM | // Copyright (c) 2000 The Open Group, BMC Software, Tivoli Systems, IBM |
// | // |
|
|
// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER | // FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER |
// DEALINGS IN THE SOFTWARE. | // DEALINGS IN THE SOFTWARE. |
// | // |
//END_LICENSE |
//============================================================================== |
//BEGIN_HISTORY |
|
// | // |
// Author: |
// Author: Mike Brasher (mbrasher@bmc.com) |
// | // |
// $Log$ |
// Modified By: |
// 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 |
|
| |
//////////////////////////////////////////////////////////////////////////////// | //////////////////////////////////////////////////////////////////////////////// |
// | // |
|
|
| |
class CIMConstQualifierDecl; | class CIMConstQualifierDecl; |
class CIMConstClass; | class CIMConstClass; |
|
class CIMConstInstance; |
| |
class PEGASUS_COMMON_LINKAGE XmlWriter | class PEGASUS_COMMON_LINKAGE XmlWriter |
{ | { |
|
|
const Array<Sint8>& body); | const Array<Sint8>& body); |
| |
static Array<Sint8> formatErrorElement( | static Array<Sint8> formatErrorElement( |
CimException::Code code, |
CIMException::Code code, |
const char* description); | const char* description); |
| |
static Array<Sint8>& appendBooleanParameter( | static Array<Sint8>& appendBooleanParameter( |
|
|
static Array<Sint8>& appendClassParameter( | static Array<Sint8>& appendClassParameter( |
Array<Sint8>& out, | Array<Sint8>& out, |
const char* parameterName, | const char* parameterName, |
const CIMConstClass& classDecl); |
const CIMConstClass& cimClass); |
| |
static Array<Sint8>& appendInstanceNameParameter( | static Array<Sint8>& appendInstanceNameParameter( |
Array<Sint8>& out, | Array<Sint8>& out, |
const char* parameterName, | const char* parameterName, |
const CIMReference& instanceName); | const CIMReference& instanceName); |
| |
|
static Array<Sint8>& appendInstanceParameter( |
|
Array<Sint8>& out, |
|
const char* parameterName, |
|
const CIMConstInstance& instance); |
|
|
static Array<Sint8>& appendQualifierDeclarationParameter( | static Array<Sint8>& appendQualifierDeclarationParameter( |
Array<Sint8>& out, | Array<Sint8>& out, |
const char* parameterName, | const char* parameterName, |
|
|
Array<Sint8>& out, | Array<Sint8>& out, |
const CIMReference& instanceName); | const CIMReference& instanceName); |
| |
|
static Array<Sint8>& appendPropertyNameParameter( |
|
Array<Sint8>& out, |
|
const String& propertyName); |
|
|
static void indentedPrint( | static void indentedPrint( |
std::ostream& os, |
PEGASUS_STD(ostream)& os, |
const char* text, | const char* text, |
Uint32 indentChars = 2); | Uint32 indentChars = 2); |
| |
|
|
| |
static Array<Sint8> formatSimpleRspMessage( | static Array<Sint8> formatSimpleRspMessage( |
const char* iMethodName, | const char* iMethodName, |
|
const Uint32 messageId, |
const Array<Sint8>& body); | const Array<Sint8>& body); |
| |
static Uint32 getNextMessageId(); | static Uint32 getNextMessageId(); |
|
|
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, 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_NAMESPACE_END | PEGASUS_NAMESPACE_END |
| |