version 1.9, 2005/03/10 17:01:18
|
version 1.9.10.4, 2006/03/10 14:30:37
|
|
|
//%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 |
|
|
#ifndef Pegasus_ObjectNormalizer_h | #ifndef Pegasus_ObjectNormalizer_h |
#define Pegasus_ObjectNormalizer_h | #define Pegasus_ObjectNormalizer_h |
| |
|
#include <Pegasus/Common/AutoPtr.h> |
#include <Pegasus/Common/CIMClass.h> | #include <Pegasus/Common/CIMClass.h> |
#include <Pegasus/Common/CIMInstance.h> | #include <Pegasus/Common/CIMInstance.h> |
#include <Pegasus/Common/String.h> | #include <Pegasus/Common/String.h> |
|
|
#include <Pegasus/Common/Linkage.h> | #include <Pegasus/Common/Linkage.h> |
| |
PEGASUS_NAMESPACE_BEGIN | PEGASUS_NAMESPACE_BEGIN |
| |
|
class PEGASUS_COMMON_LINKAGE NormalizerContext |
|
{ |
|
public: |
|
virtual ~NormalizerContext() {}; |
|
|
|
virtual CIMClass getClass( |
|
const CIMNamespaceName& nameSpace, |
|
const CIMName& name) = 0; |
|
|
|
virtual Array<CIMName> enumerateClassNames( |
|
const CIMNamespaceName& nameSpace, const CIMName& className, |
|
bool deepInheritance) = 0; |
|
|
|
virtual AutoPtr<NormalizerContext> clone() = 0; |
|
}; |
|
|
// TODO: add documentation | // TODO: add documentation |
class PEGASUS_COMMON_LINKAGE ObjectNormalizer | class PEGASUS_COMMON_LINKAGE ObjectNormalizer |
{ | { |
|
|
ObjectNormalizer( | ObjectNormalizer( |
const CIMClass & cimClass, | const CIMClass & cimClass, |
Boolean includeQualifiers, | Boolean includeQualifiers, |
Boolean includeClassOrigin); |
Boolean includeClassOrigin, |
|
const CIMNamespaceName& nameSpace, |
|
AutoPtr<NormalizerContext> & context); |
| |
CIMObjectPath processClassObjectPath(const CIMObjectPath & cimObjectPath) const; | CIMObjectPath processClassObjectPath(const CIMObjectPath & cimObjectPath) const; |
CIMObjectPath processInstanceObjectPath(const CIMObjectPath & cimObjectPath) const; | CIMObjectPath processInstanceObjectPath(const CIMObjectPath & cimObjectPath) const; |
|
|
| |
Boolean _includeQualifiers; | Boolean _includeQualifiers; |
Boolean _includeClassOrigin; | Boolean _includeClassOrigin; |
|
AutoPtr<NormalizerContext> _context; |
|
CIMNamespaceName _nameSpace; |
}; | }; |
| |
PEGASUS_NAMESPACE_END | PEGASUS_NAMESPACE_END |