version 1.7, 2001/02/20 07:25:57
|
version 1.10, 2001/04/13 18:20:51
|
|
|
// Author: | // Author: |
// | // |
// $Log$ | // $Log$ |
|
// Revision 1.10 2001/04/13 18:20:51 mike |
|
// Ported so Solaris. |
|
// Fixed memory leaks. |
|
// |
|
// Revision 1.9 2001/04/08 01:13:22 mike |
|
// Changed "ConstCIM" to "CIMConst" |
|
// |
// Revision 1.7 2001/02/20 07:25:57 mike | // Revision 1.7 2001/02/20 07:25:57 mike |
// Added basic create-instance in repository and in client. | // 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 CIMConst. |
// | // |
// Revision 1.5 2001/02/18 03:56:01 mike | // Revision 1.5 2001/02/18 03:56:01 mike |
// Changed more class names (e.g., ConstClassDecl -> ConstCIMClass) |
// Changed more class names (e.g., ConstClassDecl -> CIMConstClass) |
// | // |
// Revision 1.4 2001/02/16 02:06:07 mike | // Revision 1.4 2001/02/16 02:06:07 mike |
// Renamed many classes and headers. | // Renamed many classes and headers. |
|
|
out << "<NAMESPACE NAME=\"" << p << "\"/>\n"; | out << "<NAMESPACE NAME=\"" << p << "\"/>\n"; |
} | } |
| |
|
delete [] tmp; |
|
|
out << "</LOCALNAMESPACEPATH>\n"; | out << "</LOCALNAMESPACEPATH>\n"; |
} | } |
| |
|
|
//------------------------------------------------------------------------------ | //------------------------------------------------------------------------------ |
| |
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; |
|
|
Array<Sint8>& XmlWriter::appendClassParameter( | Array<Sint8>& XmlWriter::appendClassParameter( |
Array<Sint8>& out, | Array<Sint8>& out, |
const char* parameterName, | const char* parameterName, |
const ConstCIMClass& cimClass) |
const CIMConstClass& cimClass) |
{ | { |
Array<Sint8> tmp; | Array<Sint8> tmp; |
cimClass.toXml(tmp); | cimClass.toXml(tmp); |
|
|
Array<Sint8>& XmlWriter::appendInstanceParameter( | Array<Sint8>& XmlWriter::appendInstanceParameter( |
Array<Sint8>& out, | Array<Sint8>& out, |
const char* parameterName, | const char* parameterName, |
const ConstCIMInstance& instance) |
const CIMConstInstance& instance) |
{ | { |
Array<Sint8> tmp; | Array<Sint8> tmp; |
instance.toXml(tmp); | instance.toXml(tmp); |