version 1.4, 2004/06/15 18:38:24
|
version 1.14.16.2, 2006/02/10 16:09:38
|
|
|
//%2003//////////////////////////////////////////////////////////////////////// |
//%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. |
// Copyright (c) 2003 BMC Software; Hewlett-Packard Development Company, L. P.; | // Copyright (c) 2003 BMC Software; Hewlett-Packard Development Company, L. P.; |
// 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.; |
|
// 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 |
|
|
{ | { |
} | } |
| |
|
LocaleContainer & LocaleContainer::operator=(const LocaleContainer &container) |
|
{ |
|
if(this == &container) |
|
{ |
|
return(*this); |
|
} |
|
|
|
_languageId = container._languageId; |
|
|
|
return(*this); |
|
} |
|
|
String LocaleContainer::getName(void) const | String LocaleContainer::getName(void) const |
{ | { |
return(NAME); | return(NAME); |
|
|
*this = *p; | *this = *p; |
} | } |
| |
ProviderIdContainer::ProviderIdContainer(const CIMInstance & module, const CIMInstance & provider) |
ProviderIdContainer::ProviderIdContainer( |
|
const CIMInstance & module, |
|
const CIMInstance & provider, |
|
Boolean isRemoteNameSpace, |
|
const String & remoteInfo) |
|
: _module(module), |
|
_provider(provider), |
|
_isRemoteNameSpace(isRemoteNameSpace), |
|
_remoteInfo(remoteInfo) |
{ | { |
_module = module; |
|
_provider = provider; |
|
} | } |
| |
ProviderIdContainer::~ProviderIdContainer(void) | ProviderIdContainer::~ProviderIdContainer(void) |
{ | { |
} | } |
| |
|
ProviderIdContainer & ProviderIdContainer::operator=(const ProviderIdContainer & container) |
|
{ |
|
if(this == &container) |
|
{ |
|
return(*this); |
|
} |
|
|
|
_module = container._module; |
|
_provider = container._provider; |
|
_isRemoteNameSpace = container._isRemoteNameSpace; |
|
_remoteInfo = container._remoteInfo; |
|
|
|
return(*this); |
|
} |
|
|
String ProviderIdContainer::getName(void) const | String ProviderIdContainer::getName(void) const |
{ | { |
return(NAME); | return(NAME); |
|
|
return(_provider); | return(_provider); |
} | } |
| |
|
Boolean ProviderIdContainer::isRemoteNameSpace(void) const |
|
{ |
|
return(_isRemoteNameSpace); |
|
} |
|
|
|
String ProviderIdContainer::getRemoteInfo(void) const |
|
{ |
|
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); |
|
} |
|
|
|
|
|
#ifdef PEGASUS_EMBEDDED_INSTANCE_SUPPORT |
|
// Only needed if normalization is enabled |
|
#ifdef PEGASUS_ENABLE_OBJECT_NORMALIZATION |
|
// |
|
// 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 = *const_cast<NormalizerContextContainer *>(p); |
|
} |
|
|
|
|
|
NormalizerContextContainer::NormalizerContextContainer(AutoPtr<NormalizerContext> & context) |
|
: _context(context) |
|
{ |
|
} |
|
|
|
NormalizerContextContainer::~NormalizerContextContainer(void) |
|
{ |
|
} |
|
|
|
NormalizerContextContainer & NormalizerContextContainer::operator=(NormalizerContextContainer & container) |
|
{ |
|
if(this == &container) |
|
{ |
|
return(*this); |
|
} |
|
|
|
_context = container._context; |
|
|
|
return(*this); |
|
} |
|
|
|
String NormalizerContextContainer::getName(void) const |
|
{ |
|
return(NAME); |
|
} |
|
|
|
OperationContext::Container * NormalizerContextContainer::clone(void) const |
|
{ |
|
return(new NormalizerContextContainer(*this)); |
|
} |
|
|
|
void NormalizerContextContainer::destroy(void) |
|
{ |
|
delete this; |
|
} |
|
|
|
NormalizerContext * NormalizerContextContainer::getContext(void) const |
|
{ |
|
return(_context.get()); |
|
} |
|
#endif // PEGASUS_ENABLE_OBJECT_NORMALIZATION |
|
#endif // PEGASUS_EMBEDDED_INSTANCE_SUPPORT |
|
|
PEGASUS_NAMESPACE_END | PEGASUS_NAMESPACE_END |