version 1.8, 2004/11/15 13:19:51
|
version 1.17, 2006/07/31 08:29:19
|
|
|
//%2004//////////////////////////////////////////////////////////////////////// |
//%2006//////////////////////////////////////////////////////////////////////// |
// | // |
// 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. |
|
// Copyright (c) 2006 Hewlett-Packard Development Company, L.P.; IBM Corp.; |
|
// EMC Corporation; Symantec 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 isRemoteNameSpace, |
|
const String & remoteInfo) |
|
: _module(module), |
|
_provider(provider), |
|
_isRemoteNameSpace(isRemoteNameSpace), |
|
_remoteInfo(remoteInfo) |
{ | { |
_module = module; |
|
_provider = provider; |
|
_remoteNameSpace=remoteNameSpace; |
|
_remoteInfo=remoteInfo; |
|
} | } |
| |
ProviderIdContainer::~ProviderIdContainer(void) | ProviderIdContainer::~ProviderIdContainer(void) |
{ | { |
} | } |
| |
ProviderIdContainer & ProviderIdContainer::operator=( |
ProviderIdContainer & ProviderIdContainer::operator=(const ProviderIdContainer & container) |
const ProviderIdContainer & container) |
|
{ | { |
if (this == &container) | if (this == &container) |
{ | { |
|
|
| |
_module = container._module; | _module = container._module; |
_provider = container._provider; | _provider = container._provider; |
_remoteNameSpace = container._remoteNameSpace; |
_isRemoteNameSpace = container._isRemoteNameSpace; |
_remoteInfo = container._remoteInfo; | _remoteInfo = container._remoteInfo; |
| |
return (*this); | return (*this); |
|
|
| |
Boolean ProviderIdContainer::isRemoteNameSpace(void) const | Boolean ProviderIdContainer::isRemoteNameSpace(void) const |
{ | { |
return(_remoteNameSpace); |
return(_isRemoteNameSpace); |
} | } |
| |
const String & ProviderIdContainer::getRemoteInfo(void) const |
String ProviderIdContainer::getRemoteInfo(void) const |
{ | { |
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); |
|
} |
|
|
|
// |
|
// NormalizerContextContainer |
|
// |
|
|
|
const String NormalizerContextContainer::NAME = "NormalizerContextContainer"; |
|
|
|
NormalizerContextContainer::NormalizerContextContainer( |
|
const OperationContext::Container & container) |
|
{ |
|
const NormalizerContextContainer * p = |
|
dynamic_cast<const NormalizerContextContainer *>(&container); |
|
|
|
if(p == 0) |
|
{ |
|
throw DynamicCastFailedException(); |
|
} |
|
|
|
*this = *p; |
|
} |
|
|
|
|
|
NormalizerContextContainer::NormalizerContextContainer( |
|
AutoPtr<NormalizerContext> & context) : normalizerContext(context.get()) |
|
{ |
|
context.release(); |
|
} |
|
|
|
NormalizerContextContainer::NormalizerContextContainer(const NormalizerContextContainer & container) |
|
{ |
|
if(this != &container) |
|
{ |
|
normalizerContext.reset(container.normalizerContext->clone().release()); |
|
} |
|
} |
|
|
|
NormalizerContextContainer::~NormalizerContextContainer() |
|
{ |
|
} |
|
|
|
NormalizerContextContainer & NormalizerContextContainer::operator=( |
|
const NormalizerContextContainer & container) |
|
{ |
|
if(this == &container) |
|
{ |
|
return(*this); |
|
} |
|
|
|
normalizerContext.reset(container.normalizerContext->clone().release()); |
|
|
|
return(*this); |
|
} |
|
|
|
String NormalizerContextContainer::getName() const |
|
{ |
|
return(NAME); |
|
} |
|
|
|
OperationContext::Container * NormalizerContextContainer::clone() const |
|
{ |
|
return(new NormalizerContextContainer(*this)); |
|
} |
|
|
|
void NormalizerContextContainer::destroy() |
|
{ |
|
delete this; |
|
} |
|
|
|
NormalizerContext * NormalizerContextContainer::getContext() const |
|
{ |
|
return normalizerContext.get(); |
|
} |
|
|
PEGASUS_NAMESPACE_END | PEGASUS_NAMESPACE_END |