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

Diff for /pegasus/src/Pegasus/Common/CIMClassRep.h between version 1.35 and 1.50

version 1.35, 2003/10/22 14:26:02 version 1.50, 2008/04/11 17:14:03
Line 1 
Line 1 
 //%2003////////////////////////////////////////////////////////////////////////  //%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.
 // Copyright (c) 2003 BMC Software; Hewlett-Packard Development Company, L. P.; // Copyright (c) 2003 BMC Software; Hewlett-Packard Development Company, L. P.;
 // IBM Corp.; EMC Corporation, The Open Group. // IBM Corp.; EMC Corporation, The Open Group.
   // Copyright (c) 2004 BMC Software; Hewlett-Packard Development Company, L.P.;
   // IBM Corp.; EMC Corporation; VERITAS Software Corporation; The Open Group.
   // Copyright (c) 2005 Hewlett-Packard Development Company, L.P.; IBM Corp.;
   // 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
Line 23 
Line 29 
 // //
 //============================================================================== //==============================================================================
 // //
 // Author: Mike Brasher (mbrasher@bmc.com)  
 //  
 // Modified By: Carol Ann Krug Graves, Hewlett-Packard Company  
 //                (carolann_graves@hp.com)  
 //  
 //%///////////////////////////////////////////////////////////////////////////// //%/////////////////////////////////////////////////////////////////////////////
  
 #ifndef Pegasus_CIMClassRep_h #ifndef Pegasus_CIMClassRep_h
Line 38 
Line 39 
 #include <Pegasus/Common/CIMName.h> #include <Pegasus/Common/CIMName.h>
 #include <Pegasus/Common/CIMObjectRep.h> #include <Pegasus/Common/CIMObjectRep.h>
 #include <Pegasus/Common/CIMMethod.h> #include <Pegasus/Common/CIMMethod.h>
   #include <Pegasus/Common/CIMMethodRep.h>
   #include <Pegasus/Common/CIMInstance.h>
   #include <Pegasus/Common/CIMPropertyList.h>
 #include <Pegasus/Common/Linkage.h> #include <Pegasus/Common/Linkage.h>
  
 PEGASUS_NAMESPACE_BEGIN PEGASUS_NAMESPACE_BEGIN
Line 49 
Line 53 
  
 // ATTN: KS P3 -document the CIMClass and CIMObjectRep  classes. // ATTN: KS P3 -document the CIMClass and CIMObjectRep  classes.
  
 class PEGASUS_COMMON_LINKAGE CIMClassRep : public CIMObjectRep  class CIMClassRep : public CIMObjectRep
 { {
 public: public:
  
Line 65 
Line 69 
  
     const CIMName& getSuperClassName() const { return _superClassName; }     const CIMName& getSuperClassName() const { return _superClassName; }
  
     void setSuperClassName(const CIMName& superClassName);      void setSuperClassName(const CIMName& superClassName)
       {
           _superClassName = superClassName;
       }
  
     virtual void addProperty(const CIMProperty& x);     virtual void addProperty(const CIMProperty& x);
  
     void addMethod(const CIMMethod& x);     void addMethod(const CIMMethod& x);
  
     Uint32 findMethod(const CIMName& name) const;      Uint32 findMethod(const CIMName& name) const
       {
           return _methods.find(name, generateCIMNameTag(name));
       }
  
     CIMMethod getMethod(Uint32 index);      CIMMethod getMethod(Uint32 index)
       {
           return _methods[index];
       }
  
     CIMConstMethod getMethod(Uint32 index) const     CIMConstMethod getMethod(Uint32 index) const
     {     {
         return ((CIMClassRep*)this)->getMethod(index);         return ((CIMClassRep*)this)->getMethod(index);
     }     }
  
     void removeMethod(Uint32 index);      void removeMethod(Uint32 index)
       {
           _methods.remove(index);
       }
  
     Uint32 getMethodCount() const;      Uint32 getMethodCount() const
       {
           return _methods.size();
       }
  
     void resolve(     void resolve(
         DeclContext* context,         DeclContext* context,
Line 90 
Line 109 
  
     virtual Boolean identical(const CIMObjectRep* x) const;     virtual Boolean identical(const CIMObjectRep* x) const;
  
     void toXml(Array<Sint8>& out) const;  
   
     void toMof(Array<Sint8>& out) const;  
   
     virtual CIMObjectRep* clone() const     virtual CIMObjectRep* clone() const
     {     {
         return new CIMClassRep(*this);         return new CIMClassRep(*this);
Line 103 
Line 118 
  
     Boolean hasKeys() const;     Boolean hasKeys() const;
  
 private:      CIMInstance buildInstance(Boolean includeQualifiers,
           Boolean includeClassOrigin,
           const CIMPropertyList & propertyList) const;
  
     CIMClassRep();  private:
  
     CIMClassRep(const CIMClassRep& x);     CIMClassRep(const CIMClassRep& x);
  
     // This method is declared and made private so that the compiler does      CIMClassRep();    // Unimplemented
     // not implicitly define a default copy constructor.      CIMClassRep& operator=(const CIMClassRep& x);    // Unimplemented
     CIMClassRep& operator=(const CIMClassRep& x)  
     {  
         //PEGASUS_ASSERT(0);  
         return *this;  
     }  
  
     CIMName _superClassName;     CIMName _superClassName;
     Array<CIMMethod> _methods;      typedef OrderedSet<CIMMethod,
                          CIMMethodRep,
                          PEGASUS_METHOD_ORDEREDSET_HASHSIZE> MethodSet;
       MethodSet _methods;
  
     friend class CIMClass;     friend class CIMClass;
     friend class CIMInstanceRep;     friend class CIMInstanceRep;
       friend class BinaryStreamer;
 }; };
  
 PEGASUS_NAMESPACE_END PEGASUS_NAMESPACE_END


Legend:
Removed from v.1.35  
changed lines
  Added in v.1.50

No CVS admin address has been configured
Powered by
ViewCVS 0.9.2