version 1.6, 2001/02/19 01:47:17
|
version 1.8, 2001/03/05 04:29:02
|
|
|
// Author: | // Author: |
// | // |
// $Log$ | // $Log$ |
|
// Revision 1.8 2001/03/05 04:29:02 mike |
|
// renamed CimException to CIMException |
|
// |
|
// 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 | // Revision 1.6 2001/02/19 01:47:17 mike |
// Renamed names of the form CIMConst to ConstCIM. | // Renamed names of the form CIMConst to ConstCIM. |
// | // |
|
|
#include <cstdlib> | #include <cstdlib> |
#include <cstdio> | #include <cstdio> |
#include "CIMClass.h" | #include "CIMClass.h" |
|
#include "CIMInstance.h" |
#include "CIMQualifierDecl.h" | #include "CIMQualifierDecl.h" |
#include "XmlWriter.h" | #include "XmlWriter.h" |
#include "XmlParser.h" | #include "XmlParser.h" |
|
|
//------------------------------------------------------------------------------ | //------------------------------------------------------------------------------ |
| |
Array<Sint8> XmlWriter::formatErrorElement( | Array<Sint8> XmlWriter::formatErrorElement( |
CimException::Code code, |
CIMException::Code code, |
const char* description) | const char* description) |
{ | { |
Array<Sint8> out; | Array<Sint8> out; |
|
|
| |
//------------------------------------------------------------------------------ | //------------------------------------------------------------------------------ |
// | // |
|
// appendInstanceParameter() |
|
// |
|
//------------------------------------------------------------------------------ |
|
|
|
Array<Sint8>& XmlWriter::appendInstanceParameter( |
|
Array<Sint8>& out, |
|
const char* parameterName, |
|
const ConstCIMInstance& instance) |
|
{ |
|
Array<Sint8> tmp; |
|
instance.toXml(tmp); |
|
return formatIParamValueElement(out, parameterName, tmp); |
|
} |
|
|
|
//------------------------------------------------------------------------------ |
|
// |
// appendClassParameter() | // appendClassParameter() |
// | // |
//------------------------------------------------------------------------------ | //------------------------------------------------------------------------------ |