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

Diff for /pegasus/src/Pegasus/Common/CIMClass.h between version 1.7 and 1.8

version 1.7, 2001/04/04 20:02:27 version 1.8, 2001/04/08 01:13:21
Line 23 
Line 23 
 // Author: // Author:
 // //
 // $Log$ // $Log$
 // Revision 1.7  2001/04/04 20:02:27  karl  // Revision 1.8  2001/04/08 01:13:21  mike
 // documentation update  // Changed "ConstCIM" to "CIMConst"
 // //
 // Revision 1.6  2001/03/29 16:40:31  karl // Revision 1.6  2001/03/29 16:40:31  karl
 // add doc // add doc
Line 39 
Line 39 
 // Implemented CIMInstance::getInstanceName() // Implemented CIMInstance::getInstanceName()
 // //
 // Revision 1.2  2001/02/19 01:47:16  mike // Revision 1.2  2001/02/19 01:47:16  mike
 // Renamed names of the form CIMConst to ConstCIM.  // Renamed names of the form CIMConst to CIMConst.
 // //
 // Revision 1.1  2001/02/18 18:39:05  mike // Revision 1.1  2001/02/18 18:39:05  mike
 // new // new
 // //
 // Revision 1.2  2001/02/18 03:56:00  mike // Revision 1.2  2001/02/18 03:56:00  mike
 // Changed more class names (e.g., ConstClassDecl -> ConstCIMClass)  // Changed more class names (e.g., ConstClassDecl -> CIMConstClass)
 // //
 // Revision 1.1  2001/02/16 02:06:06  mike // Revision 1.1  2001/02/16 02:06:06  mike
 // Renamed many classes and headers. // Renamed many classes and headers.
Line 76 
Line 76 
  
 PEGASUS_NAMESPACE_BEGIN PEGASUS_NAMESPACE_BEGIN
  
 class ConstCIMClass;  class CIMConstClass;
  
 /** The CIMClass class is used to represent CIM classes in Pegasus.  In CIM, /** The CIMClass class is used to represent CIM classes in Pegasus.  In CIM,
     a class object may be a class or an associator.  A CIM class must contain a     a class object may be a class or an associator.  A CIM class must contain a
Line 321 
Line 321 
     }     }
  
     /// CIMMethod getProperty - ATTN     /// CIMMethod getProperty - ATTN
     ConstCIMProperty getProperty(Uint32 pos) const      CIMConstProperty getProperty(Uint32 pos) const
     {     {
         _checkRep();         _checkRep();
         return _rep->getProperty(pos);         return _rep->getProperty(pos);
Line 432 
Line 432 
         @parm Class object for the class to be compared         @parm Class object for the class to be compared
         @return True if the classes are identical         @return True if the classes are identical
     */     */
     Boolean identical(const ConstCIMClass& x) const;      Boolean identical(const CIMConstClass& x) const;
  
     /// CIMMethod clone - ATTN:     /// CIMMethod clone - ATTN:
     CIMClass clone() const     CIMClass clone() const
Line 459 
Line 459 
     }     }
  
     CIMClassRep* _rep;     CIMClassRep* _rep;
     friend class ConstCIMClass;      friend class CIMConstClass;
 }; };
  
 /** ConstCIMClass - ATTN: define this.  /** CIMConstClass - ATTN: define this.
  
 */ */
  
 class PEGASUS_COMMON_LINKAGE ConstCIMClass  class PEGASUS_COMMON_LINKAGE CIMConstClass
 { {
 public: public:
  
     ConstCIMClass() : _rep(0)      CIMConstClass() : _rep(0)
     {     {
  
     }     }
  
     ConstCIMClass(const ConstCIMClass& x)      CIMConstClass(const CIMConstClass& x)
     {     {
         Inc(_rep = x._rep);         Inc(_rep = x._rep);
     }     }
  
     ConstCIMClass(const CIMClass& x)      CIMConstClass(const CIMClass& x)
     {     {
         Inc(_rep = x._rep);         Inc(_rep = x._rep);
     }     }
  
     ConstCIMClass& operator=(const ConstCIMClass& x)      CIMConstClass& operator=(const CIMConstClass& x)
     {     {
         if (x._rep != _rep)         if (x._rep != _rep)
         {         {
Line 495 
Line 495 
         return *this;         return *this;
     }     }
  
     ConstCIMClass& operator=(const CIMClass& x)      CIMConstClass& operator=(const CIMClass& x)
     {     {
         if (x._rep != _rep)         if (x._rep != _rep)
         {         {
Line 507 
Line 507 
  
     // Throws IllegalName if className argument not legal CIM identifier.     // Throws IllegalName if className argument not legal CIM identifier.
  
     ConstCIMClass(      CIMConstClass(
         const String& className,         const String& className,
         const String& superClassName = String())         const String& superClassName = String())
     {     {
         _rep = new CIMClassRep(className, superClassName);         _rep = new CIMClassRep(className, superClassName);
     }     }
  
     ~ConstCIMClass()      ~CIMConstClass()
     {     {
         Dec(_rep);         Dec(_rep);
     }     }
Line 567 
Line 567 
         return _rep->findProperty(name);         return _rep->findProperty(name);
     }     }
  
     ConstCIMProperty getProperty(Uint32 pos) const      CIMConstProperty getProperty(Uint32 pos) const
     {     {
         _checkRep();         _checkRep();
         return _rep->getProperty(pos);         return _rep->getProperty(pos);
Line 611 
Line 611 
         _rep->print(o);         _rep->print(o);
     }     }
  
     Boolean identical(const ConstCIMClass& x) const      Boolean identical(const CIMConstClass& x) const
     {     {
         x._checkRep();         x._checkRep();
         _checkRep();         _checkRep();


Legend:
Removed from v.1.7  
changed lines
  Added in v.1.8

No CVS admin address has been configured
Powered by
ViewCVS 0.9.2