version 1.6, 2002/02/23 03:47:22
|
version 1.13, 2002/06/01 00:56:26
|
|
|
//%///////////////////////////////////////////////////////////////////////////// | //%///////////////////////////////////////////////////////////////////////////// |
// | // |
// Copyright (c) 2000, 2001 BMC Software, Hewlett-Packard Company, IBM, |
// Copyright (c) 2000, 2001, 2002 BMC Software, Hewlett-Packard Company, IBM, |
// The Open Group, Tivoli Systems | // The Open Group, Tivoli Systems |
// | // |
// Permission is hereby granted, free of charge, to any person obtaining a copy | // Permission is hereby granted, free of charge, to any person obtaining a copy |
|
|
#include <Pegasus/Common/Config.h> | #include <Pegasus/Common/Config.h> |
#include <cstdio> | #include <cstdio> |
#include "XmlWriter.h" | #include "XmlWriter.h" |
#include "CIMParamValue.h" |
#include "CIMParamValueRep.h" |
| |
PEGASUS_NAMESPACE_BEGIN | PEGASUS_NAMESPACE_BEGIN |
| |
|
|
| |
if (_isTyped && (type != CIMType::NONE)) | if (_isTyped && (type != CIMType::NONE)) |
{ | { |
out << " PARAMTYPE=\"" << TypeToString(type) << "\""; |
out << " PARAMTYPE=\"" << type.toString() << "\""; |
} | } |
| |
out << ">\n"; | out << ">\n"; |
|
XmlWriter::appendValueElement(out, _value); |
_value.toXml(out); |
|
| |
out << "</PARAMVALUE>\n"; | out << "</PARAMVALUE>\n"; |
} | } |
| |
void CIMParamValueRep::print(PEGASUS_STD(ostream) &os) const |
|
{ |
|
Array<Sint8> tmp; |
|
toXml(tmp); |
|
tmp.append('\0'); |
|
os << tmp.getData() << PEGASUS_STD(endl); |
|
} |
|
|
|
Boolean CIMParamValueRep::identical(const CIMParamValueRep* x) const | Boolean CIMParamValueRep::identical(const CIMParamValueRep* x) const |
{ | { |
if (_parameterName != x->_parameterName) | if (_parameterName != x->_parameterName) |
|
|
{ | { |
} | } |
| |
// ATTN-RK-P3-20010219: Is this correct? (See also CIMMethodRep.cpp, |
|
// CIMParameterRep.cpp, CIMPropertyRep.cpp, CIMQualifierDeclRep.cpp, |
|
// CIMQualifierRep.cpp) |
|
CIMParamValueRep& CIMParamValueRep::operator=(const CIMParamValueRep& x) |
|
{ |
|
return *this; |
|
} |
|
|
|
void CIMParamValueRep::setParameterName(String& parameterName) | void CIMParamValueRep::setParameterName(String& parameterName) |
{ | { |
_parameterName = parameterName; | _parameterName = parameterName; |