version 1.14, 2005/02/10 02:40:44
|
version 1.14.16.5, 2006/04/13 17:00:15
|
|
|
//%2005//////////////////////////////////////////////////////////////////////// |
//%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; 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.; | // Copyright (c) 2005 Hewlett-Packard Development Company, L.P.; IBM Corp.; |
// EMC Corporation; VERITAS Software Corporation; The Open Group. | // 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 |
|
|
return(_cimClass); | 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() |
|
{ |
|
} |
|
|
|
NormalizerContextContainer & NormalizerContextContainer::operator=(const NormalizerContextContainer & container) |
|
{ |
|
if(this == &container) |
|
{ |
|
return(*this); |
|
} |
|
|
|
AutoPtr<NormalizerContext> tmpContext( |
|
container.normalizerContext->clone()); |
|
normalizerContext = tmpContext; |
|
|
|
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 |