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

Diff for /pegasus/src/Pegasus/Common/CIMValue.h between version 1.45 and 1.51

version 1.45, 2005/06/06 10:08:41 version 1.51, 2006/11/07 21:30:36
Line 1 
Line 1 
 //%2005////////////////////////////////////////////////////////////////////////  //%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.
Line 8 
Line 8 
 // IBM Corp.; EMC Corporation; VERITAS Software Corporation; The Open Group. // IBM Corp.; EMC Corporation; VERITAS Software Corporation; The Open Group.
 // Copyright (c) 2005 Hewlett-Packard Development Company, L.P.; IBM Corp.; // Copyright (c) 2005 Hewlett-Packard Development Company, L.P.; IBM Corp.;
 // EMC Corporation; VERITAS Software Corporation; The Open Group. // 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 46 
Line 48 
  
 class CIMValueRep; class CIMValueRep;
 class CIMObject; class CIMObject;
   #ifdef PEGASUS_USE_EXPERIMENTAL_INTERFACES
   #ifdef PEGASUS_EMBEDDED_INSTANCE_SUPPORT
   class CIMInstance;
   #endif // PEGASUS_EMBEDDED_INSTANCE_SUPPORT
   #endif // PEGASUS_USE_EXPERIMENTAL_INTERFACES
  
 /** /**
     The CIMValue class represents a value of any of the CIM data types     The CIMValue class represents a value of any of the CIM data types
Line 113 
Line 120 
     /// Constructor.     /// Constructor.
     CIMValue(const CIMObjectPath& x);     CIMValue(const CIMObjectPath& x);
  
     /// Constructor.      /** Constructor.
     /// Note: Constructing a CIMValue with an uninitialized CIMObject is not          Note: Constructing a CIMValue with an uninitialized CIMObject is not
     /// defined and results in a thrown UninitializedObjectException.          defined and results in a thrown UninitializedObjectException.
     /// Note: The input CIMObject will be cloned before putting it into the          Note: The input CIMObject will be cloned before putting it into the
     /// value of the constructed CIMValue. This is because CIMObjects use a          value of the constructed CIMValue. This is because CIMObjects use a
     /// shared representation model, but we don't want CIMObjects inside a          shared representation model, but we don't want CIMObjects inside a
     /// CIMValue to be altered by other external changes.          CIMValue to be altered by other external changes.
       */
     CIMValue(const CIMObject& x);     CIMValue(const CIMObject& x);
  
     /// Constructor.     /// Constructor.
   #ifdef PEGASUS_USE_EXPERIMENTAL_INTERFACES
   #ifdef PEGASUS_EMBEDDED_INSTANCE_SUPPORT
       CIMValue(const CIMInstance& x);
   #endif // PEGASUS_EMBEDDED_INSTANCE_SUPPORT
   #endif // PEGASUS_USE_EXPERIMENTAL_INTERFACES
   
       /// Constructor.
     CIMValue(const Array<Boolean>& x);     CIMValue(const Array<Boolean>& x);
  
     /// Constructor.     /// Constructor.
Line 167 
Line 182 
     /// Constructor.     /// Constructor.
     CIMValue(const Array<CIMObjectPath>& x);     CIMValue(const Array<CIMObjectPath>& x);
  
     /// Constructor.      /** Constructor.
     /// Note: Constructing a CIMValue with an uninitialized CIMObject anywhere          Note: Constructing a CIMValue with an uninitialized CIMObject anywhere
     /// in the input array is not defined and results in a thrown          in the input array is not defined and results in a thrown
     /// UninitializedObjectException.          UninitializedObjectException.
     /// Note: Each CIMObject in the input Array will be cloned before putting          Note: Each CIMObject in the input Array will be cloned before putting
     /// the Array into the value of the constructed CIMValue. This is because          the Array into the value of the constructed CIMValue. This is because
     /// CIMObjects use a shared representation model, but we don't want          CIMObjects use a shared representation model, but we don't want
     /// CIMObjects inside a CIMValue to be altered by other external changes.          CIMObjects inside a CIMValue to be altered by other external changes.
       */
     CIMValue(const Array<CIMObject>& x);     CIMValue(const Array<CIMObject>& x);
  
     /// Constructor.     /// Constructor.
     /// Note: If the input type is CIMObject, it/they will be cloned before  #ifdef PEGASUS_USE_EXPERIMENTAL_INTERFACES
     /// putting it into the value of the constructed CIMValue. This is because  #ifdef PEGASUS_EMBEDDED_INSTANCE_SUPPORT
     /// CIMObjects use a shared representation model, but we don't want      CIMValue(const Array<CIMInstance>& x);
     /// CIMObjects inside a CIMValue to be altered by other external changes.  #endif // PEGASUS_EMBEDDED_INSTANCE_SUPPORT
   #endif // PEGASUS_USE_EXPERIMENTAL_INTERFACES
   
       /** Constructor.
           Note: If the input type is CIMObject, it/they will be cloned before
           putting it into the value of the constructed CIMValue. This is because
           CIMObjects use a shared representation model, but we don't want
           CIMObjects inside a CIMValue to be altered by other external changes.
       */
     CIMValue(const CIMValue& x);     CIMValue(const CIMValue& x);
  
     /// Destructor.     /// Destructor.
     ~CIMValue();     ~CIMValue();
  
     /// Operator =      /** Operator =
     /// Note: If the right hand side type is CIMObject, it/they will be cloned          Note: If the right hand side type is CIMObject, it/they will be cloned
     /// before putting it into the value of the target CIMValue. This is because          before putting it into the value of the target CIMValue. This is because
     /// CIMObjects use a shared representation model, but we don't want          CIMObjects use a shared representation model, but we don't want
     /// CIMObjects inside a CIMValue to be altered by other external changes.          CIMObjects inside a CIMValue to be altered by other external changes.
       */
     CIMValue& operator=(const CIMValue& x);     CIMValue& operator=(const CIMValue& x);
  
     /** Assigns one CIMValue object to another CIMValue object.     /** Assigns one CIMValue object to another CIMValue object.
Line 262 
Line 287 
             x.set(Uint16(9));             x.set(Uint16(9));
         </pre>         </pre>
         @exception UninitializedObjectException If the given type is CIMObject,         @exception UninitializedObjectException If the given type is CIMObject,
         and the input CIMObject parameter is uninitialized or at least one entry          and the input CIMObject parameter is uninitialized or at least one
         in the Array of CIMObjects is uninitialized.          entry in the Array of CIMObjects is uninitialized.
         Note: If the input type is CIMObject, it/they will be cloned before         Note: If the input type is CIMObject, it/they will be cloned before
         putting it into the value of the target CIMValue. This is because         putting it into the value of the target CIMValue. This is because
         CIMObjects use a shared representation model, but we don't want         CIMObjects use a shared representation model, but we don't want
Line 302 
Line 327 
     ///     ///
     void set(const CIMObject& x);     void set(const CIMObject& x);
     ///     ///
   #ifdef PEGASUS_USE_EXPERIMENTAL_INTERFACES
   #ifdef PEGASUS_EMBEDDED_INSTANCE_SUPPORT
       void set(const CIMInstance& x);
   #endif // PEGASUS_EMBEDDED_INSTANCE_SUPPORT
   #endif // PEGASUS_USE_EXPERIMENTAL_INTERFACES
       ///
     void set(const Array<Boolean>& x);     void set(const Array<Boolean>& x);
     ///     ///
     void set(const Array<Uint8>& x);     void set(const Array<Uint8>& x);
Line 333 
Line 364 
     void set(const Array<CIMObjectPath>& x);     void set(const Array<CIMObjectPath>& x);
     ///     ///
     void set(const Array<CIMObject>& x);     void set(const Array<CIMObject>& x);
       ///
   #ifdef PEGASUS_USE_EXPERIMENTAL_INTERFACES
   #ifdef PEGASUS_EMBEDDED_INSTANCE_SUPPORT
       void set(const Array<CIMInstance>& x);
   #endif // PEGASUS_EMBEDDED_INSTANCE_SUPPORT
   #endif // PEGASUS_USE_EXPERIMENTAL_INTERFACES
  
     /** Gets the value of a CIMValue.     /** Gets the value of a CIMValue.
         Note: Before using get, the caller should use getType () and isNull ()         Note: Before using get, the caller should use getType () and isNull ()
Line 388 
Line 425 
     ///     ///
     void get(CIMObject& x) const;     void get(CIMObject& x) const;
     ///     ///
   #ifdef PEGASUS_USE_EXPERIMENTAL_INTERFACES
   #ifdef PEGASUS_EMBEDDED_INSTANCE_SUPPORT
       void get(CIMInstance& x) const;
   #endif // PEGASUS_EMBEDDED_INSTANCE_SUPPORT
   #endif // PEGASUS_USE_EXPERIMENTAL_INTERFACES
       ///
     void get(Array<Boolean>& x) const;     void get(Array<Boolean>& x) const;
     ///     ///
     void get(Array<Uint8>& x) const;     void get(Array<Uint8>& x) const;
Line 419 
Line 462 
     void get(Array<CIMObjectPath>& x) const;     void get(Array<CIMObjectPath>& x) const;
     ///     ///
     void get(Array<CIMObject>& x) const;     void get(Array<CIMObject>& x) const;
       ///
   #ifdef PEGASUS_USE_EXPERIMENTAL_INTERFACES
   #ifdef PEGASUS_EMBEDDED_INSTANCE_SUPPORT
       void get(Array<CIMInstance>& x) const;
   #endif // PEGASUS_EMBEDDED_INSTANCE_SUPPORT
   #endif // PEGASUS_USE_EXPERIMENTAL_INTERFACES
  
     /** Compares with another CIMValue object for equality.     /** Compares with another CIMValue object for equality.
         @param x - CIMValue to compare with.         @param x - CIMValue to compare with.
Line 485 
Line 534 
  
 private: private:
  
       void _get(const String*& data, Uint32& size) const;
   
     CIMValueRep* _rep;     CIMValueRep* _rep;
  
     friend class CIMMethodRep;     friend class CIMMethodRep;
Line 493 
Line 544 
     friend class CIMQualifierRep;     friend class CIMQualifierRep;
     friend class CIMQualifierDeclRep;     friend class CIMQualifierDeclRep;
     friend class BinaryStreamer;     friend class BinaryStreamer;
       friend class XmlWriter;
 }; };
  
 /** operator == compares two CIMValue objects for equality. /** operator == compares two CIMValue objects for equality.
Line 517 
Line 569 
  
 PEGASUS_NAMESPACE_END PEGASUS_NAMESPACE_END
  
   #ifdef PEGASUS_INTERNALONLY
   #include <Pegasus/Common/CIMValueInline.h>
   #endif
   
 #endif /* Pegasus_Value_h */ #endif /* Pegasus_Value_h */


Legend:
Removed from v.1.45  
changed lines
  Added in v.1.51

No CVS admin address has been configured
Powered by
ViewCVS 0.9.2