version 1.1, 2001/02/18 18:39:06
|
version 1.5, 2001/05/20 20:33:59
|
|
|
//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.1 2001/02/18 18:39:06 mike |
|
// new |
|
// | // |
// Revision 1.1 2001/02/16 02:07:06 mike |
//%///////////////////////////////////////////////////////////////////////////// |
// Renamed many classes and headers (using new CIM prefixes). |
|
// |
|
// Revision 1.2 2001/01/22 00:45:47 mike |
|
// more work on resolve scheme |
|
// |
|
// Revision 1.1.1.1 2001/01/14 19:53:02 mike |
|
// Pegasus import |
|
// |
|
// |
|
//END_HISTORY |
|
| |
#include <cstdio> | #include <cstdio> |
#include "CIMParameter.h" | #include "CIMParameter.h" |
|
|
if (_arraySize && !_isArray) | if (_arraySize && !_isArray) |
throw IncompatibleTypes(); | throw IncompatibleTypes(); |
| |
if (referenceClassName.getLength()) |
if (referenceClassName.size()) |
{ | { |
if (!CIMName::legal(referenceClassName)) | if (!CIMName::legal(referenceClassName)) |
throw IllegalName(); | throw IllegalName(); |
|
|
} | } |
} | } |
| |
void CIMParameterRep::print() const |
void CIMParameterRep::print(PEGASUS_STD(ostream) &os) const |
{ | { |
Array<Sint8> tmp; | Array<Sint8> tmp; |
toXml(tmp); | toXml(tmp); |
tmp.append('\0'); | tmp.append('\0'); |
std::cout << tmp.getData() << std::endl; |
os << tmp.getData() << PEGASUS_STD(endl); |
} | } |
| |
Boolean CIMParameterRep::identical(const CIMParameterRep* x) const | Boolean CIMParameterRep::identical(const CIMParameterRep* x) const |
|
|
{ | { |
_type = type; | _type = type; |
| |
if (_referenceClassName.getLength() == 0 && _type == CIMType::REFERENCE) |
if (_referenceClassName.size() == 0 && _type == CIMType::REFERENCE) |
{ | { |
throw MissingReferenceClassName(); | throw MissingReferenceClassName(); |
} | } |