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

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

No CVS admin address has been configured
Powered by
ViewCVS 0.9.2