version 1.8, 2004/11/15 13:19:51
|
version 1.12, 2005/02/05 22:59:24
|
|
|
//%2004//////////////////////////////////////////////////////////////////////// |
//%2005//////////////////////////////////////////////////////////////////////// |
// | // |
// Copyright (c) 2000, 2001, 2002 BMC Software; Hewlett-Packard Development | // Copyright (c) 2000, 2001, 2002 BMC Software; Hewlett-Packard Development |
// Company, L.P.; IBM Corp.; The Open Group; Tivoli Systems. | // Company, L.P.; IBM Corp.; The Open Group; Tivoli Systems. |
|
|
// IBM Corp.; EMC Corporation, The Open Group. | // IBM Corp.; EMC Corporation, The Open Group. |
// Copyright (c) 2004 BMC Software; Hewlett-Packard Development Company, L.P.; | // Copyright (c) 2004 BMC Software; Hewlett-Packard Development Company, L.P.; |
// IBM Corp.; EMC Corporation; VERITAS Software Corporation; The Open Group. | // IBM Corp.; EMC Corporation; VERITAS Software Corporation; The Open Group. |
|
// Copyright (c) 2005 Hewlett-Packard Development Company, L.P.; IBM Corp.; |
|
// EMC Corporation; VERITAS Software Corporation; The Open Group. |
// | // |
// 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 |
// of this software and associated documentation files (the "Software"), to | // of this software and associated documentation files (the "Software"), to |
|
|
} | } |
| |
_languageId = container._languageId; | _languageId = container._languageId; |
|
|
return (*this); | return (*this); |
} | } |
| |
|
|
*this = *p; | *this = *p; |
} | } |
| |
ProviderIdContainer::ProviderIdContainer(const CIMInstance & module, const CIMInstance & provider, |
ProviderIdContainer::ProviderIdContainer( |
Boolean remoteNameSpace, String remoteInfo) |
const CIMInstance & module, |
|
const CIMInstance & provider, |
|
Boolean remoteNameSpace, |
|
String remoteInfo) |
{ | { |
_module = module; | _module = module; |
_provider = provider; | _provider = provider; |
|
|
{ | { |
} | } |
| |
ProviderIdContainer & ProviderIdContainer::operator=( |
ProviderIdContainer & ProviderIdContainer::operator=(const ProviderIdContainer & container) |
const ProviderIdContainer & container) |
|
{ | { |
if (this == &container) | if (this == &container) |
{ | { |
|
|
return(_remoteInfo); | return(_remoteInfo); |
} | } |
| |
|
// |
|
// CachedClassDefinitionContainer |
|
// |
|
|
|
const String CachedClassDefinitionContainer::NAME = "CachedClassDefinitionContainer"; |
|
|
|
CachedClassDefinitionContainer::CachedClassDefinitionContainer(const OperationContext::Container & container) |
|
{ |
|
const CachedClassDefinitionContainer * p = dynamic_cast<const CachedClassDefinitionContainer *>(&container); |
|
|
|
if(p == 0) |
|
{ |
|
throw DynamicCastFailedException(); |
|
} |
|
|
|
*this = *p; |
|
} |
|
|
|
|
|
CachedClassDefinitionContainer::CachedClassDefinitionContainer(const CIMClass & cimClass) |
|
: _cimClass(cimClass) |
|
{ |
|
} |
|
|
|
CachedClassDefinitionContainer::~CachedClassDefinitionContainer(void) |
|
{ |
|
} |
|
|
|
CachedClassDefinitionContainer & CachedClassDefinitionContainer::operator=(const CachedClassDefinitionContainer & container) |
|
{ |
|
if(this == &container) |
|
{ |
|
return(*this); |
|
} |
|
|
|
_cimClass = container._cimClass; |
|
|
|
return(*this); |
|
} |
|
|
|
String CachedClassDefinitionContainer::getName(void) const |
|
{ |
|
return(NAME); |
|
} |
|
|
|
OperationContext::Container * CachedClassDefinitionContainer::clone(void) const |
|
{ |
|
return(new CachedClassDefinitionContainer(*this)); |
|
} |
|
|
|
void CachedClassDefinitionContainer::destroy(void) |
|
{ |
|
delete this; |
|
} |
|
|
|
CIMClass CachedClassDefinitionContainer::getClass(void) const |
|
{ |
|
return(_cimClass); |
|
} |
|
|
PEGASUS_NAMESPACE_END | PEGASUS_NAMESPACE_END |