(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.20 and 1.24

version 1.20, 2002/05/14 05:10:33 version 1.24, 2002/05/24 01:24:37
Line 33 
Line 33 
 #include <Pegasus/Common/String.h> #include <Pegasus/Common/String.h>
 #include <Pegasus/Common/Config.h> #include <Pegasus/Common/Config.h>
 #include <Pegasus/Common/CIMType.h> #include <Pegasus/Common/CIMType.h>
 #include <Pegasus/Common/CIMReference.h>  #include <Pegasus/Common/CIMObjectPath.h>
 #include <Pegasus/Common/CIMDateTime.h> #include <Pegasus/Common/CIMDateTime.h>
 #include <Pegasus/Common/Exception.h> #include <Pegasus/Common/Exception.h>
 #include <Pegasus/Common/Array.h> #include <Pegasus/Common/Array.h>
Line 113 
Line 113 
     CIMValue(const CIMDateTime& x);     CIMValue(const CIMDateTime& x);
  
     /// Constructor     /// Constructor
     CIMValue(const CIMReference& x);      CIMValue(const CIMObjectPath& x);
  
     /// Constructor     /// Constructor
     CIMValue(const Array<Boolean>& x);     CIMValue(const Array<Boolean>& x);
Line 158 
Line 158 
     CIMValue(const Array<CIMDateTime>& x);     CIMValue(const Array<CIMDateTime>& x);
  
     /// Constructor     /// Constructor
     CIMValue(const Array<CIMReference>& x);      CIMValue(const Array<CIMObjectPath>& x);
  
     /// Constructor     /// Constructor
     CIMValue(const CIMValue& x);     CIMValue(const CIMValue& x);
Line 279 
Line 279 
     ///     ///
     void set(const CIMDateTime& x);     void set(const CIMDateTime& x);
     ///     ///
     void set(const CIMReference& x);      void set(const CIMObjectPath& x);
     ///     ///
     void set(const Array<Boolean>& x);     void set(const Array<Boolean>& x);
     ///     ///
Line 309 
Line 309 
     ///     ///
     void set(const Array<CIMDateTime>& x);     void set(const Array<CIMDateTime>& x);
     ///     ///
     void set(const Array<CIMReference>& x);      void set(const Array<CIMObjectPath>& x);
  
     /** get - Gets the value of a CIMValue     /** get - Gets the value of a CIMValue
         @param Variable in which we return the value:         @param Variable in which we return the value:
Line 348 
Line 348 
     ///     ///
     void get(CIMDateTime& x) const;     void get(CIMDateTime& x) const;
     ///     ///
     void get(CIMReference& x) const;      void get(CIMObjectPath& x) const;
     ///     ///
     void get(Array<Boolean>& x) const;     void get(Array<Boolean>& x) const;
     ///     ///
Line 378 
Line 378 
     ///     ///
     void get(Array<CIMDateTime>& x) const;     void get(Array<CIMDateTime>& x) const;
     ///     ///
     void get(Array<CIMReference>& x) const;      void get(Array<CIMObjectPath>& x) const;
  
     /** Makes a deep copy (clone) of the given object. */     /** Makes a deep copy (clone) of the given object. */
     CIMValue clone() const;     CIMValue clone() const;
  
     /** toXML - Converts a CIMValue object to XML. The XML is appended  
         to the Array provided with the call.  Returns the result as an  
         XML element wrapped in the <VALUE>, <VALUE.ARRAY>, <VALUE.REFERENCE>,  
         or <VALUE.REFARRAY> tags. If the CIMValue is Null, no element is  
         returned.  
         @param out Sint8 Array to hold the XML representation  
         @return Returns the XML representation of the CIMValue  
         object in the input parameter out.  
     */  
     void toXml(Array<Sint8>& out) const;  
   
     /** toXML - Converts a CIMValue object to XML. There is no input  
         parameter and the result is returned as a String rather  
         than appended to an 8-bit array as above.  Returns the  
         element as value wrapped in the <VALUE>, <VALUE.ARRAY>,  
         <VALUE.REFERENCE>, or <VALUE.REFARRAY> tags. If the  
         CIMValue is Null, no element is returned.  
         @return Returns the XML representation of the CIMValue  
         object in String form.  
     */  
     String toXml() const;  
   
     /** CIMMethod print - Format and print the Value as XML to std output  
         stream  
         @param o Stream to output to. Defaults to cout.  
         @return None  
         <PRE>  
         Example:  
             CIMValue value(Boolean(true));  
             value.print();  // Prints "true"  
         </PRE>  
     */  
     void print(PEGASUS_STD(ostream) &o=PEGASUS_STD(cout)) const;  
   
     /** toMof - Converts a CIMValueObject to Mof.  
         @out Sint8 Array to hold the Mof representation  
         @return Returns the Mof representation of the CIMValue  
         object in the input parameter out.  
     */  
     void toMof(Array<Sint8>& out) const;  
   
     /** toString - Converts the CIMvalue to a string.  Should only be     /** toString - Converts the CIMvalue to a string.  Should only be
             used for output purposes.  To get an actual String value, use             used for output purposes.  To get an actual String value, use
             get(String &).             get(String &).
Line 465 
Line 424 
 PEGASUS_COMMON_LINKAGE Boolean operator!=(const CIMValue& x, const CIMValue& y); PEGASUS_COMMON_LINKAGE Boolean operator!=(const CIMValue& x, const CIMValue& y);
  
 #define PEGASUS_ARRAY_T CIMValue #define PEGASUS_ARRAY_T CIMValue
 # include "ArrayInter.h"  # include <Pegasus/Common/ArrayInter.h>
 #undef PEGASUS_ARRAY_T #undef PEGASUS_ARRAY_T
  
 PEGASUS_NAMESPACE_END PEGASUS_NAMESPACE_END


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

No CVS admin address has been configured
Powered by
ViewCVS 0.9.2