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

Diff for /pegasus/src/Pegasus/Common/CIMInstance.h between version 1.3 and 1.4

version 1.3, 2001/02/20 05:16:57 version 1.4, 2001/02/20 07:25:57
Line 23 
Line 23 
 // Author: // Author:
 // //
 // $Log$ // $Log$
   // Revision 1.4  2001/02/20 07:25:57  mike
   // Added basic create-instance in repository and in client.
   //
 // Revision 1.3  2001/02/20 05:16:57  mike // Revision 1.3  2001/02/20 05:16:57  mike
 // Implemented CIMInstance::getInstanceName() // Implemented CIMInstance::getInstanceName()
 // //
Line 73 
Line 76 
 // //
 //////////////////////////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////////////////////////
  
 class CIMConstInstance;  class ConstCIMInstance;
  
 /** Class CIMInstance   - The CIMInstance class represents the instance of /** Class CIMInstance   - The CIMInstance class represents the instance of
     a CIM class in Pegasus. It is used manipulate instances and the     a CIM class in Pegasus. It is used manipulate instances and the
Line 284 
Line 287 
     /** CIMMethod     /** CIMMethod
  
     */     */
     Boolean identical(const CIMConstInstance& x) const;      Boolean identical(const ConstCIMInstance& x) const;
  
     /** CIMMethod     /** CIMMethod
  
Line 305 
Line 308 
         is all lowercase; the keys-value pairs appear in sorted order by         is all lowercase; the keys-value pairs appear in sorted order by
         key name).         key name).
     */     */
     String getInstanceName(ConstCIMClass& cimClass) const      String getInstanceName(const ConstCIMClass& cimClass) const
     {     {
         _checkRep();         _checkRep();
         return _rep->getInstanceName(cimClass);         return _rep->getInstanceName(cimClass);
Line 324 
Line 327 
     }     }
  
     CIMInstanceRep* _rep;     CIMInstanceRep* _rep;
     friend class CIMConstInstance;      friend class ConstCIMInstance;
 }; };
  
 //////////////////////////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////////////////////////
 // //
 // CIMConstInstance  // ConstCIMInstance
 // //
 //////////////////////////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////////////////////////
  
 class PEGASUS_COMMON_LINKAGE CIMConstInstance  class PEGASUS_COMMON_LINKAGE ConstCIMInstance
 { {
 public: public:
  
     CIMConstInstance() : _rep(0)      ConstCIMInstance() : _rep(0)
     {     {
  
     }     }
  
     CIMConstInstance(const CIMConstInstance& x)      ConstCIMInstance(const ConstCIMInstance& x)
     {     {
         Inc(_rep = x._rep);         Inc(_rep = x._rep);
     }     }
  
     CIMConstInstance(const CIMInstance& x)      ConstCIMInstance(const CIMInstance& x)
     {     {
         Inc(_rep = x._rep);         Inc(_rep = x._rep);
     }     }
  
     CIMConstInstance& operator=(const CIMConstInstance& x)      ConstCIMInstance& operator=(const ConstCIMInstance& x)
     {     {
         if (x._rep != _rep)         if (x._rep != _rep)
         {         {
Line 362 
Line 365 
         return *this;         return *this;
     }     }
  
     CIMConstInstance& operator=(const CIMInstance& x)      ConstCIMInstance& operator=(const CIMInstance& x)
     {     {
         if (x._rep != _rep)         if (x._rep != _rep)
         {         {
Line 374 
Line 377 
  
     // Throws IllegalName if className argument not legal CIM identifier.     // Throws IllegalName if className argument not legal CIM identifier.
  
     CIMConstInstance(const String& className)      ConstCIMInstance(const String& className)
     {     {
         _rep = new CIMInstanceRep(className);         _rep = new CIMInstanceRep(className);
     }     }
  
     ~CIMConstInstance()      ~ConstCIMInstance()
     {     {
         Dec(_rep);         Dec(_rep);
     }     }
Line 440 
Line 443 
         _rep->print();         _rep->print();
     }     }
  
     Boolean identical(const CIMConstInstance& x) const      Boolean identical(const ConstCIMInstance& x) const
     {     {
         x._checkRep();         x._checkRep();
         _checkRep();         _checkRep();
Line 452 
Line 455 
         return CIMInstance(_rep->clone());         return CIMInstance(_rep->clone());
     }     }
  
     String getInstanceName(ConstCIMClass& cimClass) const      String getInstanceName(const ConstCIMClass& cimClass) const
     {     {
         _checkRep();         _checkRep();
         return _rep->getInstanceName(cimClass);         return _rep->getInstanceName(cimClass);


Legend:
Removed from v.1.3  
changed lines
  Added in v.1.4

No CVS admin address has been configured
Powered by
ViewCVS 0.9.2