(file) Return to ObjectNormalizer.h CVS log (file) (dir) Up to [Pegasus] / pegasus / src / Pegasus / Common

  1 martin 1.16 //%LICENSE////////////////////////////////////////////////////////////////
  2 martin 1.17 //
  3 martin 1.16 // Licensed to The Open Group (TOG) under one or more contributor license
  4             // agreements.  Refer to the OpenPegasusNOTICE.txt file distributed with
  5             // this work for additional information regarding copyright ownership.
  6             // Each contributor licenses this file to you under the OpenPegasus Open
  7             // Source License; you may not use this file except in compliance with the
  8             // License.
  9 martin 1.17 //
 10 martin 1.16 // Permission is hereby granted, free of charge, to any person obtaining a
 11             // copy of this software and associated documentation files (the "Software"),
 12             // to deal in the Software without restriction, including without limitation
 13             // the rights to use, copy, modify, merge, publish, distribute, sublicense,
 14             // and/or sell copies of the Software, and to permit persons to whom the
 15             // Software is furnished to do so, subject to the following conditions:
 16 martin 1.17 //
 17 martin 1.16 // The above copyright notice and this permission notice shall be included
 18             // in all copies or substantial portions of the Software.
 19 martin 1.17 //
 20 martin 1.16 // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
 21 martin 1.17 // OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
 22 martin 1.16 // MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
 23             // IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
 24             // CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
 25             // TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
 26             // SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
 27 martin 1.17 //
 28 martin 1.16 //////////////////////////////////////////////////////////////////////////
 29 chip   1.1  //
 30             //%/////////////////////////////////////////////////////////////////////////////
 31             
 32             #ifndef Pegasus_ObjectNormalizer_h
 33             #define Pegasus_ObjectNormalizer_h
 34             
 35 kumpf  1.13 #include <Pegasus/Common/SharedPtr.h>
 36 chip   1.1  #include <Pegasus/Common/CIMClass.h>
 37             #include <Pegasus/Common/CIMInstance.h>
 38             #include <Pegasus/Common/String.h>
 39             #include <Pegasus/Common/Linkage.h>
 40             
 41             PEGASUS_NAMESPACE_BEGIN
 42             
 43 a.dunfey 1.11 class PEGASUS_COMMON_LINKAGE NormalizerContext
 44               {
 45               public:
 46                   virtual ~NormalizerContext() {};
 47               
 48                   virtual CIMClass getClass(
 49                       const CIMNamespaceName& nameSpace,
 50                       const CIMName& name) = 0;
 51               
 52                   virtual Array<CIMName> enumerateClassNames(
 53                       const CIMNamespaceName& nameSpace, const CIMName& className,
 54                       bool deepInheritance) = 0;
 55               
 56 kumpf    1.13     virtual NormalizerContext* clone() = 0;
 57 a.dunfey 1.11 };
 58               
 59 chip     1.1  // TODO: add documentation
 60               class PEGASUS_COMMON_LINKAGE ObjectNormalizer
 61               {
 62               public:
 63 kumpf    1.12     ObjectNormalizer();
 64 chip     1.3      ObjectNormalizer(
 65 kumpf    1.12         const CIMClass& cimClass,
 66 chip     1.9          Boolean includeQualifiers,
 67 a.dunfey 1.11         Boolean includeClassOrigin,
 68                       const CIMNamespaceName& nameSpace,
 69 kumpf    1.13         SharedPtr<NormalizerContext>& context);
 70 chip     1.1  
 71 kumpf    1.12     CIMObjectPath processClassObjectPath(
 72                       const CIMObjectPath& cimObjectPath) const;
 73                   CIMObjectPath processInstanceObjectPath(
 74                       const CIMObjectPath& cimObjectPath) const;
 75               
 76                   //CIMClass processClass(const CIMClass& cimClass) const;
 77                   CIMInstance processInstance(const CIMInstance& cimInstance) const;
 78                   //CIMIndication processIndication(const CIMIndication& cimIndication);
 79 chip     1.1  
 80 venkat.puvvada 1.14     static CIMProperty processProperty(
 81 kumpf          1.12         CIMConstProperty& referenceProperty,
 82                             CIMConstProperty& cimProperty,
 83 a.dunfey       1.11         Boolean includeQualifiers,
 84                             Boolean includeClassOrigin,
 85                             NormalizerContext * context,
 86 kumpf          1.12         const CIMNamespaceName& nameSpace);
 87 a.dunfey       1.11 
 88 venkat.puvvada 1.14     static void setEnableNormalization(Boolean value);
 89                     
 90 kavita.gupta   1.15     static Boolean getEnableNormalization();
 91 chip           1.1  private:
 92 chip           1.3      CIMClass _cimClass;
 93                     
 94                         Boolean _includeQualifiers;
 95                         Boolean _includeClassOrigin;
 96 kumpf          1.13     SharedPtr<NormalizerContext> _context;
 97 a.dunfey       1.11     CIMNamespaceName _nameSpace;
 98 venkat.puvvada 1.14     static Boolean _enableNormalization;
 99 chip           1.1  };
100                     
101                     PEGASUS_NAMESPACE_END
102                     
103                     #endif

No CVS admin address has been configured
Powered by
ViewCVS 0.9.2