version 1.14.16.2, 2006/02/10 16:09:38
|
version 1.14.16.6, 2006/04/13 22:21:12
|
|
|
return(_cimClass); | return(_cimClass); |
} | } |
| |
|
|
#ifdef PEGASUS_EMBEDDED_INSTANCE_SUPPORT |
|
// Only needed if normalization is enabled |
|
#ifdef PEGASUS_ENABLE_OBJECT_NORMALIZATION |
|
// | // |
// NormalizerContextContainer | // NormalizerContextContainer |
// | // |
|
|
| |
NormalizerContextContainer::NormalizerContextContainer(const OperationContext::Container & container) | NormalizerContextContainer::NormalizerContextContainer(const OperationContext::Container & container) |
{ | { |
const NormalizerContextContainer * p = |
const NormalizerContextContainer * p = dynamic_cast<const NormalizerContextContainer *>(&container); |
dynamic_cast<const NormalizerContextContainer *>(&container); |
|
| |
if(p == 0) | if(p == 0) |
{ | { |
throw DynamicCastFailedException(); | throw DynamicCastFailedException(); |
} | } |
| |
*this = *const_cast<NormalizerContextContainer *>(p); |
*this = *p; |
} | } |
| |
| |
NormalizerContextContainer::NormalizerContextContainer(AutoPtr<NormalizerContext> & context) | NormalizerContextContainer::NormalizerContextContainer(AutoPtr<NormalizerContext> & context) |
: _context(context) |
: normalizerContext(context.get()) |
{ | { |
|
context.release(); |
} | } |
| |
NormalizerContextContainer::~NormalizerContextContainer(void) |
NormalizerContextContainer::~NormalizerContextContainer() |
{ | { |
} | } |
| |
NormalizerContextContainer & NormalizerContextContainer::operator=(NormalizerContextContainer & container) |
NormalizerContextContainer & NormalizerContextContainer::operator=( |
|
const NormalizerContextContainer & container) |
{ | { |
if(this == &container) | if(this == &container) |
{ | { |
return(*this); | return(*this); |
} | } |
| |
_context = container._context; |
normalizerContext.reset(container.normalizerContext->clone().release()); |
| |
return(*this); | return(*this); |
} | } |
| |
String NormalizerContextContainer::getName(void) const |
String NormalizerContextContainer::getName() const |
{ | { |
return(NAME); | return(NAME); |
} | } |
| |
OperationContext::Container * NormalizerContextContainer::clone(void) const |
OperationContext::Container * NormalizerContextContainer::clone() const |
{ | { |
return(new NormalizerContextContainer(*this)); | return(new NormalizerContextContainer(*this)); |
} | } |
| |
void NormalizerContextContainer::destroy(void) |
void NormalizerContextContainer::destroy() |
{ | { |
delete this; | delete this; |
} | } |
| |
NormalizerContext * NormalizerContextContainer::getContext(void) const |
NormalizerContext * NormalizerContextContainer::getContext() const |
{ | { |
return(_context.get()); |
return normalizerContext.get(); |
} | } |
#endif // PEGASUS_ENABLE_OBJECT_NORMALIZATION |
|
#endif // PEGASUS_EMBEDDED_INSTANCE_SUPPORT |
|
| |
PEGASUS_NAMESPACE_END | PEGASUS_NAMESPACE_END |