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

  1 karl  1.44 //%2006////////////////////////////////////////////////////////////////////////
  2 mike  1.16 //
  3 karl  1.40 // Copyright (c) 2000, 2001, 2002 BMC Software; Hewlett-Packard Development
  4            // Company, L.P.; IBM Corp.; The Open Group; Tivoli Systems.
  5            // Copyright (c) 2003 BMC Software; Hewlett-Packard Development Company, L.P.;
  6 karl  1.35 // IBM Corp.; EMC Corporation, The Open Group.
  7 karl  1.40 // Copyright (c) 2004 BMC Software; Hewlett-Packard Development Company, L.P.;
  8            // IBM Corp.; EMC Corporation; VERITAS Software Corporation; The Open Group.
  9 karl  1.42 // Copyright (c) 2005 Hewlett-Packard Development Company, L.P.; IBM Corp.;
 10            // EMC Corporation; VERITAS Software Corporation; The Open Group.
 11 karl  1.44 // Copyright (c) 2006 Hewlett-Packard Development Company, L.P.; IBM Corp.;
 12            // EMC Corporation; Symantec Corporation; The Open Group.
 13 mike  1.16 //
 14            // Permission is hereby granted, free of charge, to any person obtaining a copy
 15 chip  1.20 // of this software and associated documentation files (the "Software"), to
 16            // deal in the Software without restriction, including without limitation the
 17            // rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
 18 mike  1.16 // sell copies of the Software, and to permit persons to whom the Software is
 19            // furnished to do so, subject to the following conditions:
 20 kumpf 1.28 // 
 21 chip  1.20 // THE ABOVE COPYRIGHT NOTICE AND THIS PERMISSION NOTICE SHALL BE INCLUDED IN
 22 mike  1.16 // ALL COPIES OR SUBSTANTIAL PORTIONS OF THE SOFTWARE. THE SOFTWARE IS PROVIDED
 23            // "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT
 24 chip  1.20 // LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR
 25            // PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
 26            // HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN
 27 mike  1.16 // ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
 28            // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
 29            //
 30            //==============================================================================
 31            //
 32            // Author: Mike Brasher (mbrasher@bmc.com)
 33            //
 34 kumpf 1.29 // Modified By: Carol Ann Krug Graves, Hewlett-Packard Company
 35 david.dillard 1.41 //                  (carolann_graves@hp.com)
 36 schuur        1.36 //              Adriann Schuur (schuur@de.ibm.com) PEP 164
 37 david.dillard 1.41 //              David Dillard, VERITAS Software Corp.
 38                    //                  (david.dillard@veritas.com)
 39 mike          1.16 //
 40                    //%/////////////////////////////////////////////////////////////////////////////
 41                    
 42                    #ifndef Pegasus_CIMClassRep_h
 43                    #define Pegasus_CIMClassRep_h
 44                    
 45                    #include <Pegasus/Common/Config.h>
 46 kumpf         1.33 #include <Pegasus/Common/InternalException.h>
 47 kumpf         1.31 #include <Pegasus/Common/CIMName.h>
 48 mike          1.18 #include <Pegasus/Common/CIMObjectRep.h>
 49 mike          1.16 #include <Pegasus/Common/CIMMethod.h>
 50 karl          1.38 #include <Pegasus/Common/CIMInstance.h>
 51 karl          1.37 #include <Pegasus/Common/CIMPropertyList.h>
 52 kumpf         1.30 #include <Pegasus/Common/Linkage.h>
 53 mike          1.16 
 54                    PEGASUS_NAMESPACE_BEGIN
 55                    
 56                    class DeclContext;
 57                    class CIMClass;
 58                    class CIMConstClass;
 59                    class CIMInstanceRep;
 60                    
 61 karl          1.21 // ATTN: KS P3 -document the CIMClass and CIMObjectRep  classes.
 62 mike          1.19 
 63 mike          1.18 class PEGASUS_COMMON_LINKAGE CIMClassRep : public CIMObjectRep
 64 mike          1.16 {
 65                    public:
 66                    
 67                        CIMClassRep(
 68 kumpf         1.31 	const CIMName& className,
 69                    	const CIMName& superClassName);
 70 mike          1.16 
 71 mike          1.18     virtual ~CIMClassRep();
 72 mike          1.16 
 73                        Boolean isAssociation() const;
 74                    
 75                        Boolean isAbstract() const;
 76 karl          1.21 
 77 kumpf         1.31     const CIMName& getSuperClassName() const { return _superClassName; }
 78 mike          1.16 
 79 kumpf         1.31     void setSuperClassName(const CIMName& superClassName);
 80 mike          1.16 
 81 mike          1.18     virtual void addProperty(const CIMProperty& x);
 82 mike          1.16 
 83                        void addMethod(const CIMMethod& x);
 84                    
 85 kumpf         1.31     Uint32 findMethod(const CIMName& name) const;
 86 mike          1.16 
 87 kumpf         1.34     CIMMethod getMethod(Uint32 index);
 88 mike          1.16 
 89 kumpf         1.34     CIMConstMethod getMethod(Uint32 index) const
 90 mike          1.16     {
 91 kumpf         1.34 	return ((CIMClassRep*)this)->getMethod(index);
 92 mike          1.16     }
 93                    
 94 kumpf         1.34     void removeMethod(Uint32 index);
 95 mike          1.16 
 96                        Uint32 getMethodCount() const;
 97                    
 98                        void resolve(
 99                    	DeclContext* context,
100 kumpf         1.31 	const CIMNamespaceName& nameSpace);
101 mike          1.16 
102 kumpf         1.23     virtual Boolean identical(const CIMObjectRep* x) const;
103 mike          1.18 
104 mike          1.43     void toXml(Buffer& out) const;
105 mike          1.16 
106 mike          1.43     void toMof(Buffer& out) const;
107 mike          1.17 
108 mike          1.18     virtual CIMObjectRep* clone() const
109 mike          1.16     {
110                    	return new CIMClassRep(*this);
111                        }
112                    
113 kumpf         1.31     void getKeyNames(Array<CIMName>& keyNames) const;
114 mike          1.16 
115                        Boolean hasKeys() const;
116                    
117 karl          1.39     CIMInstance buildInstance(Boolean includeQualifiers,
118 karl          1.37         Boolean includeClassOrigin,
119                            const CIMPropertyList & propertyList) const;
120                    
121 mike          1.16 private:
122                    
123                        CIMClassRep();
124                    
125                        CIMClassRep(const CIMClassRep& x);
126                    
127 kumpf         1.22     // This method is declared and made private so that the compiler does
128                        // not implicitly define a default copy constructor.
129 mike          1.18     CIMClassRep& operator=(const CIMClassRep& x)
130                        {
131 kumpf         1.27         //PEGASUS_ASSERT(0);
132 kumpf         1.22         return *this;
133 mike          1.18     }
134 mike          1.16 
135 kumpf         1.31     CIMName _superClassName;
136 mike          1.16     Array<CIMMethod> _methods;
137                    
138                        friend class CIMClass;
139                        friend class CIMInstanceRep;
140 schuur        1.36     friend class BinaryStreamer;
141 mike          1.16 };
142                    
143                    PEGASUS_NAMESPACE_END
144                    
145                    #endif /* Pegasus_CIMClassRep_h */

No CVS admin address has been configured
Powered by
ViewCVS 0.9.2