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

Diff for /pegasus/src/Pegasus/Common/CIMObjectRep.h between version 1.4 and 1.16

version 1.4, 2002/01/09 19:09:39 version 1.16, 2002/06/01 00:56:26
Line 1 
Line 1 
 //%///////////////////////////////////////////////////////////////////////////// //%/////////////////////////////////////////////////////////////////////////////
 // //
 // Copyright (c) 2000, 2001 The Open group, BMC Software, Tivoli Systems, IBM  // Copyright (c) 2000, 2001, 2002 BMC Software, Hewlett-Packard Company, IBM,
   // The Open Group, Tivoli Systems
 // //
 // 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 22 
Line 23 
 // //
 // Author: Mike Brasher (mbrasher@bmc.com) // Author: Mike Brasher (mbrasher@bmc.com)
 // //
 // Modified By:  // Modified By: Carol Ann Krug Graves, Hewlett-Packard Company
   //                  (carolann_graves@hp.com)
 // //
 //%///////////////////////////////////////////////////////////////////////////// //%/////////////////////////////////////////////////////////////////////////////
  
Line 31 
Line 33 
  
 #include <Pegasus/Common/Config.h> #include <Pegasus/Common/Config.h>
 #include <Pegasus/Common/String.h> #include <Pegasus/Common/String.h>
   #include <Pegasus/Common/Sharable.h>
 #include <Pegasus/Common/CIMProperty.h> #include <Pegasus/Common/CIMProperty.h>
 #include <Pegasus/Common/CIMQualifier.h> #include <Pegasus/Common/CIMQualifier.h>
   #include <Pegasus/Common/CIMQualifierList.h>
 #include <Pegasus/Common/Array.h> #include <Pegasus/Common/Array.h>
  
 PEGASUS_NAMESPACE_BEGIN PEGASUS_NAMESPACE_BEGIN
Line 48 
Line 52 
 { {
 public: public:
  
     CIMObjectRep(const CIMReference& className);      CIMObjectRep(const CIMObjectPath& className);
  
     virtual ~CIMObjectRep();     virtual ~CIMObjectRep();
  
Line 57 
Line 61 
         return _reference.getClassName();         return _reference.getClassName();
     }     }
  
         const CIMReference& getPath() const      const CIMObjectPath& getPath() const
     {     {
         return _reference;         return _reference;
     }     }
  
       /**
         Sets the object path for the object
         @param  path  CIMObjectPath containing the object path
        */
       void setPath (const CIMObjectPath & path);
   
     void addQualifier(const CIMQualifier& qualifier)     void addQualifier(const CIMQualifier& qualifier)
     {     {
         _qualifiers.add(qualifier);         _qualifiers.add(qualifier);
Line 87 
Line 97 
         return _qualifiers.getQualifier(pos);         return _qualifiers.getQualifier(pos);
     }     }
  
       Boolean isTrueQualifer(String& name) const
       {
           return _qualifiers.isTrue(name);
       }
   
     Uint32 getQualifierCount() const     Uint32 getQualifierCount() const
     {     {
         return _qualifiers.getCount();         return _qualifiers.getCount();
Line 99 
Line 114 
  
     virtual void addProperty(const CIMProperty& x);     virtual void addProperty(const CIMProperty& x);
  
     Uint32 findProperty(const String& name);      Uint32 findProperty(const String& name) const;
  
     Uint32 findProperty(const String& name) const      Boolean existsProperty(const String& name) const;
     {  
         return ((CIMObjectRep*)this)->findProperty(name);  
     }  
   
     Boolean existsProperty(const String& name);  
   
     Boolean existsProperty(const String& name) const  
     {  
         return ((CIMObjectRep*)this)->existsProperty(name);  
     }  
  
     CIMProperty getProperty(Uint32 pos);     CIMProperty getProperty(Uint32 pos);
  
Line 128 
Line 133 
  
     virtual void toXml(Array<Sint8>& out) const = 0;     virtual void toXml(Array<Sint8>& out) const = 0;
  
     virtual void print(PEGASUS_STD(ostream)& os = PEGASUS_STD(cout)) const = 0;  
   
     virtual CIMObjectRep* clone() const = 0;     virtual CIMObjectRep* clone() const = 0;
  
 protected: protected:
Line 138 
Line 141 
  
     CIMObjectRep(const CIMObjectRep& x);     CIMObjectRep(const CIMObjectRep& x);
  
       CIMObjectPath _reference;
       CIMQualifierList _qualifiers;
       Array<CIMProperty> _properties;
       Boolean _resolved;
   
   private:
   
       // This method is declared and made private so that the compiler does
       // not implicitly define a default copy constructor.
     CIMObjectRep& operator=(const CIMObjectRep& x)     CIMObjectRep& operator=(const CIMObjectRep& x)
     {     {
         // This method is never called.          //PEGASUS_ASSERT(0);
         return *this;         return *this;
     }     }
  
     CIMReference _reference;  
     CIMQualifierList _qualifiers;  
     Array<CIMProperty> _properties;  
     Boolean _resolved;  
   
     friend class CIMObject;     friend class CIMObject;
 }; };
  


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

No CVS admin address has been configured
Powered by
ViewCVS 0.9.2