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

Diff for /pegasus/src/Pegasus/Common/CIMObject.h between version 1.20 and 1.28

version 1.20, 2002/05/14 03:27:25 version 1.28, 2002/06/01 00:56:25
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 23 
Line 24 
 // Author: Mike Brasher (mbrasher@bmc.com) // Author: Mike Brasher (mbrasher@bmc.com)
 // //
 // Modified By: Roger Kumpf, Hewlett-Packard Company (roger_kumpf@hp.com) // Modified By: Roger Kumpf, Hewlett-Packard Company (roger_kumpf@hp.com)
   //              Carol Ann Krug Graves, Hewlett-Packard Company
   //                  (carolann_graves@hp.com)
 // //
 //%///////////////////////////////////////////////////////////////////////////// //%/////////////////////////////////////////////////////////////////////////////
  
Line 102 
Line 105 
     */     */
     const String& getClassName() const;     const String& getClassName() const;
  
     /** equalClassName Compares ClassName with a String. This test performs      const CIMObjectPath& getPath() const;
         a comparison of the classname component of the object  
         with a String.  Note that this function was included specifically  
         because the equality compare is not just a straight comparison  
         because classnames are case independent.  
         @param classname String containing the name for comparison  
         @return True if it is the same class name (equalNoCase compare passes)  
         or false if not.  
     */  
     const Boolean equalClassName(const String& classname) const;  
  
     const CIMReference& getPath() const;      /**
         Sets the object path for the object
         @param  path  CIMObjectPath containing the object path
        */
       void setPath (const CIMObjectPath & path);
  
     /** addQualifier - Adds the CIMQualifier object to the instance.     /** addQualifier - Adds the CIMQualifier object to the instance.
         Thows an exception of the CIMQualifier already exists in the instance         Thows an exception of the CIMQualifier already exists in the instance
Line 259 
Line 257 
 #ifdef PEGASUS_INTERNALONLY #ifdef PEGASUS_INTERNALONLY
     /** isNull() - ATTN: */     /** isNull() - ATTN: */
     Boolean isNull() const;     Boolean isNull() const;
   
     /** Convert object to XML format.  
     */  
     void toXml(Array<Sint8>& out) const;  
 #endif #endif
  
 private: private:
Line 282 
Line 276 
 #endif #endif
 }; };
  
   #define PEGASUS_ARRAY_T CIMObject
   # include <Pegasus/Common/ArrayInter.h>
   #undef PEGASUS_ARRAY_T
   
 //////////////////////////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////////////////////////
 // //
 // CIMConstObject // CIMConstObject
Line 330 
Line 328 
  
     const String& getClassName() const;     const String& getClassName() const;
  
     const CIMReference& getPath() const;      const CIMObjectPath& getPath() const;
  
     Uint32 findQualifier(const String& name) const;     Uint32 findQualifier(const String& name) const;
  
Line 350 
Line 348 
  
 #ifdef PEGASUS_INTERNALONLY #ifdef PEGASUS_INTERNALONLY
     Boolean isNull() const;     Boolean isNull() const;
   
     void toXml(Array<Sint8>& out) const;  
   
     void print(PEGASUS_STD(ostream) &o=PEGASUS_STD(cout)) const;  
 #endif #endif
  
 private: private:
Line 371 
Line 365 
 #endif #endif
 }; };
  
 /** The CIMObjectWithPath encapsulates a CIMReference and CIMObject.  
     Accessors are provided for getting the two parts. Constructors are  
     provided for initializing it from a CIMObject.  
 */  
 class PEGASUS_COMMON_LINKAGE CIMObjectWithPath  
 {  
 public:  
   
     /** Constructor  
     */  
     CIMObjectWithPath();  
   
     /** constructor  
     */  
     CIMObjectWithPath(const CIMReference& reference, const CIMObject& object);  
   
     /** Constructor - Constructs a CIMObjectWithPath Object from  
         another CimObjectWithPath  
         @param - ATTN  
     */  
     CIMObjectWithPath(const CIMObjectWithPath& x);  
   
     ~CIMObjectWithPath();  
   
     CIMObjectWithPath& operator=(const CIMObjectWithPath& x);  
   
     /** set -  
     */  
     void set(const CIMReference& reference, const CIMObject& object);  
   
     /**  
     */  
     const CIMReference& getReference() const;  
   
     /**  
     */  
     const CIMObject& getObject() const;  
   
     /**  
     */  
     CIMReference& getReference();  
   
     /**  
     */  
     CIMObject& getObject();  
   
 #ifdef PEGASUS_INTERNALONLY  
     /**  
     */  
     void toXml(Array<Sint8>& out) const;  
 #endif  
   
 private:  
   
     CIMReference _reference;  
     CIMObject _object;  
 };  
   
 PEGASUS_NAMESPACE_END PEGASUS_NAMESPACE_END
  
 #endif /* Pegasus_Object_h */ #endif /* Pegasus_Object_h */


Legend:
Removed from v.1.20  
changed lines
  Added in v.1.28

No CVS admin address has been configured
Powered by
ViewCVS 0.9.2