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

   1 martin 1.55 //%LICENSE////////////////////////////////////////////////////////////////
   2 martin 1.56 //
   3 martin 1.55 // Licensed to The Open Group (TOG) under one or more contributor license
   4             // agreements.  Refer to the OpenPegasusNOTICE.txt file distributed with
   5             // this work for additional information regarding copyright ownership.
   6             // Each contributor licenses this file to you under the OpenPegasus Open
   7             // Source License; you may not use this file except in compliance with the
   8             // License.
   9 martin 1.56 //
  10 martin 1.55 // Permission is hereby granted, free of charge, to any person obtaining a
  11             // copy of this software and associated documentation files (the "Software"),
  12             // to deal in the Software without restriction, including without limitation
  13             // the rights to use, copy, modify, merge, publish, distribute, sublicense,
  14             // and/or sell copies of the Software, and to permit persons to whom the
  15             // Software is furnished to do so, subject to the following conditions:
  16 martin 1.56 //
  17 martin 1.55 // The above copyright notice and this permission notice shall be included
  18             // in all copies or substantial portions of the Software.
  19 martin 1.56 //
  20 martin 1.55 // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
  21 martin 1.56 // OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
  22 martin 1.55 // MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
  23             // IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
  24             // CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
  25             // TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
  26             // SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
  27 martin 1.56 //
  28 martin 1.55 //////////////////////////////////////////////////////////////////////////
  29 mike   1.11 //
  30             //%/////////////////////////////////////////////////////////////////////////////
  31             
  32             #ifndef Pegasus_Value_h
  33             #define Pegasus_Value_h
  34             
  35             #include <Pegasus/Common/String.h>
  36             #include <Pegasus/Common/Config.h>
  37             #include <Pegasus/Common/CIMType.h>
  38 kumpf  1.23 #include <Pegasus/Common/CIMObjectPath.h>
  39 dave.sudlik 1.41 #include <Pegasus/Common/CIMObject.h>
  40 mike        1.11 #include <Pegasus/Common/CIMDateTime.h>
  41 kumpf       1.18 #include <Pegasus/Common/Exception.h>
  42 mike        1.11 #include <Pegasus/Common/Array.h>
  43 kumpf       1.29 #include <Pegasus/Common/Linkage.h>
  44 mike        1.11 
  45                  PEGASUS_NAMESPACE_BEGIN
  46                  
  47 kumpf       1.18 class CIMValueRep;
  48 dave.sudlik 1.41 class CIMObject;
  49 a.dunfey    1.50 class CIMInstance;
  50 kumpf       1.18 
  51 mike        1.11 /**
  52 kumpf       1.53     The CIMValue class represents a value of any of the CIM data types.
  53                      This class encapsulates a union which holds value of any CIMType.
  54                      A type field indicates the type of the value.
  55 mike        1.11 */
  56                  class PEGASUS_COMMON_LINKAGE CIMValue
  57                  {
  58                  public:
  59 kumpf       1.53     /**
  60                          Constructs a null CIMValue with type Boolean and isArray=false.
  61 karl        1.15     */
  62 mike        1.11     CIMValue();
  63                  
  64 kumpf       1.53     /**
  65                          Constructs a null CIMValue object with the specified type and
  66                          array indicator.
  67                          @param type The CIMType of the value
  68                          @param isArray A Boolean indicating whether the value is of array type
  69                          @param arraySize An integer specifying the size of the array, if the
  70                              CIMValue is for an array of a fixed size.  This value is ignored
  71                              if the isArray argument is false.
  72 karl        1.15     */
  73                      CIMValue(CIMType type, Boolean isArray, Uint32 arraySize = 0);
  74                  
  75 kumpf       1.53     /**
  76                          Constructs a CIMValue with the specified value and inferred type.
  77                          @param x The Boolean value to assign
  78                      */
  79 kumpf       1.18     CIMValue(Boolean x);
  80 mike        1.11 
  81 kumpf       1.53     /**
  82                          Constructs a CIMValue with the specified value and inferred type.
  83                          @param x The Uint8 value to assign
  84                      */
  85 kumpf       1.18     CIMValue(Uint8 x);
  86 mike        1.11 
  87 kumpf       1.53     /**
  88                          Constructs a CIMValue with the specified value and inferred type.
  89                          @param x The Sint8 value to assign
  90                      */
  91 kumpf       1.18     CIMValue(Sint8 x);
  92 mike        1.11 
  93 kumpf       1.53     /**
  94                          Constructs a CIMValue with the specified value and inferred type.
  95                          @param x The Uint16 value to assign
  96                      */
  97 kumpf       1.18     CIMValue(Uint16 x);
  98 mike        1.11 
  99 kumpf       1.53     /**
 100                          Constructs a CIMValue with the specified value and inferred type.
 101                          @param x The Sint16 value to assign
 102                      */
 103 kumpf       1.18     CIMValue(Sint16 x);
 104 mike        1.11 
 105 kumpf       1.53     /**
 106                          Constructs a CIMValue with the specified value and inferred type.
 107                          @param x The Uint32 value to assign
 108                      */
 109 kumpf       1.18     CIMValue(Uint32 x);
 110 mike        1.11 
 111 kumpf       1.53     /**
 112                          Constructs a CIMValue with the specified value and inferred type.
 113                          @param x The Sint32 value to assign
 114                      */
 115 kumpf       1.18     CIMValue(Sint32 x);
 116 mike        1.11 
 117 kumpf       1.53     /**
 118                          Constructs a CIMValue with the specified value and inferred type.
 119                          @param x The Uint64 value to assign
 120                      */
 121 kumpf       1.18     CIMValue(Uint64 x);
 122 mike        1.11 
 123 kumpf       1.53     /**
 124                          Constructs a CIMValue with the specified value and inferred type.
 125                          @param x The Sint64 value to assign
 126                      */
 127 kumpf       1.18     CIMValue(Sint64 x);
 128 mike        1.11 
 129 kumpf       1.53     /**
 130                          Constructs a CIMValue with the specified value and inferred type.
 131                          @param x The Real32 value to assign
 132                      */
 133 kumpf       1.18     CIMValue(Real32 x);
 134 mike        1.11 
 135 kumpf       1.53     /**
 136                          Constructs a CIMValue with the specified value and inferred type.
 137                          @param x The Real64 value to assign
 138                      */
 139 kumpf       1.18     CIMValue(Real64 x);
 140 mike        1.11 
 141 kumpf       1.53     /**
 142                          Constructs a CIMValue with the specified value and inferred type.
 143                          @param x The Char16 value to assign
 144                      */
 145 kumpf       1.18     CIMValue(const Char16& x);
 146 mike        1.11 
 147 kumpf       1.53     /**
 148                          Constructs a CIMValue with the specified value and inferred type.
 149                          @param x The String value to assign
 150                      */
 151 kumpf       1.18     CIMValue(const String& x);
 152 mike        1.11 
 153 kumpf       1.53     /**
 154                          Constructs a CIMValue with the specified value and inferred type.
 155                          @param x The CIMDateTime value to assign
 156                      */
 157 kumpf       1.18     CIMValue(const CIMDateTime& x);
 158 mike        1.11 
 159 kumpf       1.53     /**
 160                          Constructs a CIMValue with the specified value and inferred type.
 161                          @param x The CIMObjectPath value to assign
 162                      */
 163 kumpf       1.23     CIMValue(const CIMObjectPath& x);
 164 mike        1.11 
 165 kumpf       1.53     /**
 166                          Constructs a CIMValue with the specified value and inferred type.
 167                          Note: The CIMObject argument is cloned to prevent subsequent
 168                          modification through the shared representation model.
 169                          @param x The CIMObject value to assign
 170                          @exception UninitializedObjectException If the CIMObject is
 171                              uninitialized.
 172 denise.eckstein 1.46     */
 173 dave.sudlik     1.41     CIMValue(const CIMObject& x);
 174                      
 175 kumpf           1.53     /**
 176                              Constructs a CIMValue with the specified value and inferred type.
 177                              Note: The CIMInstance argument is cloned to prevent subsequent
 178                              modification through the shared representation model.
 179                              @param x The CIMInstance value to assign
 180                              @exception UninitializedObjectException If the CIMInstance is
 181                                  uninitialized.
 182                          */
 183 a.dunfey        1.50     CIMValue(const CIMInstance& x);
 184                      
 185 kumpf           1.53     /**
 186                              Constructs a CIMValue with the specified value and inferred type.
 187                              @param x The Boolean Array value to assign
 188                          */
 189 kumpf           1.18     CIMValue(const Array<Boolean>& x);
 190 mike            1.11 
 191 kumpf           1.53     /**
 192                              Constructs a CIMValue with the specified value and inferred type.
 193                              @param x The Uint8 Array value to assign
 194                          */
 195 kumpf           1.18     CIMValue(const Array<Uint8>& x);
 196 mike            1.11 
 197 kumpf           1.53     /**
 198                              Constructs a CIMValue with the specified value and inferred type.
 199                              @param x The Sint8 Array value to assign
 200                          */
 201 kumpf           1.18     CIMValue(const Array<Sint8>& x);
 202 mike            1.11 
 203 kumpf           1.53     /**
 204                              Constructs a CIMValue with the specified value and inferred type.
 205                              @param x The Uint16 Array value to assign
 206                          */
 207 kumpf           1.18     CIMValue(const Array<Uint16>& x);
 208 mike            1.11 
 209 kumpf           1.53     /**
 210                              Constructs a CIMValue with the specified value and inferred type.
 211                              @param x The Sint16 Array value to assign
 212                          */
 213 kumpf           1.18     CIMValue(const Array<Sint16>& x);
 214 mike            1.11 
 215 kumpf           1.53     /**
 216                              Constructs a CIMValue with the specified value and inferred type.
 217                              @param x The Uint32 Array value to assign
 218                          */
 219 kumpf           1.18     CIMValue(const Array<Uint32>& x);
 220 mike            1.11 
 221 kumpf           1.53     /**
 222                              Constructs a CIMValue with the specified value and inferred type.
 223                              @param x The Sint32 Array value to assign
 224                          */
 225 kumpf           1.18     CIMValue(const Array<Sint32>& x);
 226 mike            1.11 
 227 kumpf           1.53     /**
 228                              Constructs a CIMValue with the specified value and inferred type.
 229                              @param x The Uint64 Array value to assign
 230                          */
 231 kumpf           1.18     CIMValue(const Array<Uint64>& x);
 232 mike            1.11 
 233 kumpf           1.53     /**
 234                              Constructs a CIMValue with the specified value and inferred type.
 235                              @param x The Sint64 Array value to assign
 236                          */
 237 kumpf           1.18     CIMValue(const Array<Sint64>& x);
 238 mike            1.11 
 239 kumpf           1.53     /**
 240                              Constructs a CIMValue with the specified value and inferred type.
 241                              @param x The Real32 Array value to assign
 242                          */
 243 kumpf           1.18     CIMValue(const Array<Real32>& x);
 244 mike            1.11 
 245 kumpf           1.53     /**
 246                              Constructs a CIMValue with the specified value and inferred type.
 247                              @param x The Real64 Array value to assign
 248                          */
 249 kumpf           1.18     CIMValue(const Array<Real64>& x);
 250 mike            1.11 
 251 kumpf           1.53     /**
 252                              Constructs a CIMValue with the specified value and inferred type.
 253                              @param x The Char16 Array value to assign
 254                          */
 255 kumpf           1.18     CIMValue(const Array<Char16>& x);
 256 mike            1.11 
 257 kumpf           1.53     /**
 258                              Constructs a CIMValue with the specified value and inferred type.
 259                              @param x The String Array value to assign
 260                          */
 261 kumpf           1.18     CIMValue(const Array<String>& x);
 262 mike            1.11 
 263 kumpf           1.53     /**
 264                              Constructs a CIMValue with the specified value and inferred type.
 265                              @param x The CIMDateTime Array value to assign
 266                          */
 267 kumpf           1.18     CIMValue(const Array<CIMDateTime>& x);
 268 mike            1.11 
 269 kumpf           1.53     /**
 270                              Constructs a CIMValue with the specified value and inferred type.
 271                              @param x The CIMObjectPath Array value to assign
 272                          */
 273 kumpf           1.23     CIMValue(const Array<CIMObjectPath>& x);
 274 kumpf           1.14 
 275 kumpf           1.53     /**
 276                              Constructs a CIMValue with the specified value and inferred type.
 277                              Note: The CIMObjects in the Array argument are cloned to prevent
 278                              subsequent modification through the shared representation model.
 279                              @param x The CIMObject Array value to assign
 280                              @exception UninitializedObjectException If any of the CIMObjects in the
 281                                  Array are uninitialized.
 282 denise.eckstein 1.46     */
 283 dave.sudlik     1.41     CIMValue(const Array<CIMObject>& x);
 284                      
 285 kumpf           1.53     /**
 286                              Constructs a CIMValue with the specified value and inferred type.
 287                              Note: The CIMInstances in the Array argument are cloned to prevent
 288                              subsequent modification through the shared representation model.
 289                              @param x The CIMInstance Array value to assign
 290                              @exception UninitializedObjectException If any of the CIMInstances in
 291                                  the Array are uninitialized.
 292                          */
 293 a.dunfey        1.50     CIMValue(const Array<CIMInstance>& x);
 294                      
 295 kumpf           1.53     /**
 296                              Constructs a CIMValue by copying another CIMValue object.
 297                              Note: If the specified CIMValue contains CIMObject or CIMInstance
 298                              objects, they are cloned to prevent subsequent modification through
 299                              the shared representation model.
 300                              @param x The CIMValue object to copy
 301 denise.eckstein 1.46     */
 302 mike            1.11     CIMValue(const CIMValue& x);
 303                      
 304 kumpf           1.53     /**
 305                              Destructs a CIMValue object.
 306                          */
 307 mike            1.11     ~CIMValue();
 308                      
 309 kumpf           1.53     /**
 310                              Assigns the value from a specified CIMValue object.
 311                              Note: If the specified CIMValue contains CIMObject or CIMInstance
 312                              objects, they are cloned to prevent subsequent modification through
 313                              the shared representation model.
 314                              @param x The CIMValue object to copy
 315                              @return A reference to this CIMValue object with the new assignment
 316 denise.eckstein 1.46     */
 317 kumpf           1.18     CIMValue& operator=(const CIMValue& x);
 318 mike            1.11 
 319 kumpf           1.53     /**
 320                              Assigns the value from a specified CIMValue object.
 321                              Note: If the specified CIMValue contains CIMObject or CIMInstance
 322                              objects, they are cloned to prevent subsequent modification through
 323                              the shared representation model.
 324                              @param x The CIMValue object to copy
 325 karl            1.13     */
 326 mike            1.11     void assign(const CIMValue& x);
 327                      
 328 kumpf           1.53     /**
 329                              Resets to a null value with type Boolean and isArray=false.
 330 karl            1.13     */
 331 mike            1.11     void clear();
 332                      
 333 kumpf           1.53     /**
 334                              Compares the type and isArray attributes with a specified CIMValue.
 335                              @param x The CIMValue object with which to compare
 336                              @return A Boolean indicating whether the CIMValue objects have the same
 337                                  type and isArray attribute value.
 338 mike            1.11     */
 339 kumpf           1.18     Boolean typeCompatible(const CIMValue& x) const;
 340 mike            1.11 
 341 kumpf           1.53     /**
 342                              Indicates whether the value is an array.
 343                              @return A Boolean indicating whether the value is an array.
 344 mike            1.11     */
 345 kumpf           1.18     Boolean isArray() const;
 346 mike            1.11 
 347 kumpf           1.53     /**
 348                              Indicates whether the value is null.  A null CIMValue has a type, but
 349                              no value can be retrieved from it.
 350                              @return A Boolean indicating whether the value is null.
 351 mike            1.12     */
 352 kumpf           1.18     Boolean isNull() const;
 353 mike            1.12 
 354 kumpf           1.53     /**
 355                              Gets the fixed array size of a CIMValue.  This value is undefined for
 356                              non-array values.  A value of 0 is given for variable size arrays.
 357                              @return An integer indicating the array size.
 358 mike            1.11     */
 359                          Uint32 getArraySize() const;
 360                      
 361 kumpf           1.53     /**
 362                              Gets the value type.
 363                              @return A CIMType indicating the type of the value.
 364 karl            1.13     */
 365 kumpf           1.18     CIMType getType() const;
 366 mike            1.11 
 367 kumpf           1.53     /**
 368                              Sets the value to null with the specified type and array indicator.
 369                              @param type The CIMType of the value
 370                              @param isArray A Boolean indicating whether the value is of array type
 371                              @param arraySize An integer specifying the size of the array, if the
 372                                  CIMValue is for an array of a fixed size.  This value is ignored
 373                                  if the isArray argument is false.
 374 karl            1.13     */
 375 mike            1.11     void setNullValue(CIMType type, Boolean isArray, Uint32 arraySize = 0);
 376                      
 377 kumpf           1.53     /**
 378                              Sets the CIMValue to the specified value and inferred type.
 379                              @param x The Boolean value to assign
 380 kumpf           1.51     */
 381 mike            1.11     void set(Boolean x);
 382                      
 383 kumpf           1.53     /**
 384                              Sets the CIMValue to the specified value and inferred type.
 385                              @param x The Uint8 value to assign
 386                          */
 387 mike            1.11     void set(Uint8 x);
 388 kumpf           1.53 
 389                          /**
 390                              Sets the CIMValue to the specified value and inferred type.
 391                              @param x The Sint8 value to assign
 392                          */
 393 mike            1.11     void set(Sint8 x);
 394 kumpf           1.53 
 395                          /**
 396                              Sets the CIMValue to the specified value and inferred type.
 397                              @param x The Uint16 value to assign
 398                          */
 399 mike            1.11     void set(Uint16 x);
 400 kumpf           1.53 
 401                          /**
 402                              Sets the CIMValue to the specified value and inferred type.
 403                              @param x The Sint16 value to assign
 404                          */
 405 mike            1.11     void set(Sint16 x);
 406 kumpf           1.53 
 407                          /**
 408                              Sets the CIMValue to the specified value and inferred type.
 409                              @param x The Uint32 value to assign
 410                          */
 411 mike            1.11     void set(Uint32 x);
 412 kumpf           1.53 
 413                          /**
 414                              Sets the CIMValue to the specified value and inferred type.
 415                              @param x The Sint32 value to assign
 416                          */
 417 mike            1.11     void set(Sint32 x);
 418 kumpf           1.53 
 419                          /**
 420                              Sets the CIMValue to the specified value and inferred type.
 421                              @param x The Uint64 value to assign
 422                          */
 423 mike            1.11     void set(Uint64 x);
 424 kumpf           1.53 
 425                          /**
 426                              Sets the CIMValue to the specified value and inferred type.
 427                              @param x The Sint64 value to assign
 428                          */
 429 mike            1.11     void set(Sint64 x);
 430 kumpf           1.53 
 431                          /**
 432                              Sets the CIMValue to the specified value and inferred type.
 433                              @param x The Real32 value to assign
 434                          */
 435 mike            1.11     void set(Real32 x);
 436 kumpf           1.53 
 437                          /**
 438                              Sets the CIMValue to the specified value and inferred type.
 439                              @param x The Real64 value to assign
 440                          */
 441 mike            1.11     void set(Real64 x);
 442 kumpf           1.53 
 443                          /**
 444                              Sets the CIMValue to the specified value and inferred type.
 445                              @param x The Char16 value to assign
 446                          */
 447 mike            1.11     void set(const Char16& x);
 448 kumpf           1.53 
 449                          /**
 450                              Sets the CIMValue to the specified value and inferred type.
 451                              @param x The String value to assign
 452                          */
 453 mike            1.11     void set(const String& x);
 454 kumpf           1.53 
 455                          /**
 456                              Sets the CIMValue to the specified value and inferred type.
 457                              @param x The CIMDateTime value to assign
 458                          */
 459 mike            1.11     void set(const CIMDateTime& x);
 460 kumpf           1.53 
 461                          /**
 462                              Sets the CIMValue to the specified value and inferred type.
 463                              @param x The CIMObjectPath value to assign
 464                          */
 465 kumpf           1.23     void set(const CIMObjectPath& x);
 466 kumpf           1.53 
 467                          /**
 468                              Sets the CIMValue to the specified value and inferred type.
 469                              Note: The CIMObject argument is cloned to prevent subsequent
 470                              modification through the shared representation model.
 471                              @param x The CIMObject value to assign
 472                              @exception UninitializedObjectException If the CIMObject is
 473                                  uninitialized.
 474                          */
 475 dave.sudlik     1.41     void set(const CIMObject& x);
 476 kumpf           1.53 
 477                          /**
 478                              Sets the CIMValue to the specified value and inferred type.
 479                              Note: The CIMInstance argument is cloned to prevent subsequent
 480                              modification through the shared representation model.
 481                              @param x The CIMInstance value to assign
 482                              @exception UninitializedObjectException If the CIMInstance is
 483                                  uninitialized.
 484                          */
 485 a.dunfey        1.50     void set(const CIMInstance& x);
 486 kumpf           1.53 
 487                          /**
 488                              Sets the CIMValue to the specified value and inferred type.
 489                              @param x The Boolean Array value to assign
 490                          */
 491 mike            1.11     void set(const Array<Boolean>& x);
 492 kumpf           1.53 
 493                          /**
 494                              Sets the CIMValue to the specified value and inferred type.
 495                              @param x The Uint8 Array value to assign
 496                          */
 497 mike            1.11     void set(const Array<Uint8>& x);
 498 kumpf           1.53 
 499                          /**
 500                              Sets the CIMValue to the specified value and inferred type.
 501                              @param x The Sint8 Array value to assign
 502                          */
 503 mike            1.11     void set(const Array<Sint8>& x);
 504 kumpf           1.53 
 505                          /**
 506                              Sets the CIMValue to the specified value and inferred type.
 507                              @param x The Uint16 Array value to assign
 508                          */
 509 mike            1.11     void set(const Array<Uint16>& x);
 510 kumpf           1.53 
 511                          /**
 512                              Sets the CIMValue to the specified value and inferred type.
 513                              @param x The Sint16 Array value to assign
 514                          */
 515 mike            1.11     void set(const Array<Sint16>& x);
 516 kumpf           1.53 
 517                          /**
 518                              Sets the CIMValue to the specified value and inferred type.
 519                              @param x The Uint32 Array value to assign
 520                          */
 521 mike            1.11     void set(const Array<Uint32>& x);
 522 kumpf           1.53 
 523                          /**
 524                              Sets the CIMValue to the specified value and inferred type.
 525                              @param x The Sint32 Array value to assign
 526                          */
 527 mike            1.11     void set(const Array<Sint32>& x);
 528 kumpf           1.53 
 529                          /**
 530                              Sets the CIMValue to the specified value and inferred type.
 531                              @param x The Uint64 Array value to assign
 532                          */
 533 mike            1.11     void set(const Array<Uint64>& x);
 534 kumpf           1.53 
 535                          /**
 536                              Sets the CIMValue to the specified value and inferred type.
 537                              @param x The Sint64 Array value to assign
 538                          */
 539 mike            1.11     void set(const Array<Sint64>& x);
 540 kumpf           1.53 
 541                          /**
 542                              Sets the CIMValue to the specified value and inferred type.
 543                              @param x The Real32 Array value to assign
 544                          */
 545 mike            1.11     void set(const Array<Real32>& x);
 546 kumpf           1.53 
 547                          /**
 548                              Sets the CIMValue to the specified value and inferred type.
 549                              @param x The Real64 Array value to assign
 550                          */
 551 mike            1.11     void set(const Array<Real64>& x);
 552 kumpf           1.53 
 553                          /**
 554                              Sets the CIMValue to the specified value and inferred type.
 555                              @param x The Char16 Array value to assign
 556                          */
 557 mike            1.11     void set(const Array<Char16>& x);
 558 kumpf           1.53 
 559                          /**
 560                              Sets the CIMValue to the specified value and inferred type.
 561                              @param x The String Array value to assign
 562                          */
 563 mike            1.11     void set(const Array<String>& x);
 564 kumpf           1.53 
 565                          /**
 566                              Sets the CIMValue to the specified value and inferred type.
 567                              @param x The CIMDateTime Array value to assign
 568                          */
 569 mike            1.11     void set(const Array<CIMDateTime>& x);
 570 kumpf           1.53 
 571                          /**
 572                              Sets the CIMValue to the specified value and inferred type.
 573                              @param x The CIMObjectPath Array value to assign
 574                          */
 575 kumpf           1.23     void set(const Array<CIMObjectPath>& x);
 576 kumpf           1.53 
 577                          /**
 578                              Sets the CIMValue to the specified value and inferred type.
 579                              Note: The CIMObjects in the Array argument are cloned to prevent
 580                              subsequent modification through the shared representation model.
 581                              @param x The CIMObject Array value to assign
 582                              @exception UninitializedObjectException If any of the CIMObjects in the
 583                                  Array are uninitialized.
 584                          */
 585 dave.sudlik     1.41     void set(const Array<CIMObject>& x);
 586 kumpf           1.53 
 587                          /**
 588                              Sets the CIMValue to the specified value and inferred type.
 589                              Note: The CIMInstances in the Array argument are cloned to prevent
 590                              subsequent modification through the shared representation model.
 591                              @param x The CIMInstance Array value to assign
 592                              @exception UninitializedObjectException If any of the CIMInstances in
 593                                  the Array are uninitialized.
 594                          */
 595 a.dunfey        1.50     void set(const Array<CIMInstance>& x);
 596 mike            1.11 
 597 kumpf           1.53     /**
 598                              Gets the value of the CIMValue.  The caller should first verify that
 599 karl            1.58         the value is not null and may verify type to avoid the possibility of
 600                              the TypeMismatchException.  The output parameter x is NOT
 601                              updated if the value is null (isNull() == true).
 602                              <pre>
 603                                  // get with complete checking on type and nullness
 604                                  Boolean v;
 605                                  CIMValue value = property.getValue();
 606                                  if ((value.getType() == CIMTYPE_BOOLEAN) && (!value.isNull()))
 607                                      value.get(v);
 608                                  or
 609                                  // Set the value from property into v if the value is
 610                                  // of Boolean type and !isNull(). If type incorrect, generates
 611                                  // an exception.  If CIMValue is null, leaves v false. Else
 612                                  // sets Boolean value from property into v.
 613                                  Boolean v = false;
 614                                  property.getValue().get(v);
 615                              </pre>        
 616                              @param x Output Boolean into which the value is stored if CIMValue
 617                                  state is not null.
 618 kumpf           1.53         @exception TypeMismatchException If the value type does not match the
 619                                  output parameter.
 620                          */
 621                          void get(Boolean& x) const;
 622 kumpf           1.31 
 623 kumpf           1.53     /**
 624                              Gets the value of the CIMValue.  The caller should first verify that
 625 karl            1.58         the value is not null and may verify type to avoid the possibility of
 626                              the TypeMismatchException.  The output parameter x is NOT
 627                              updated if the value is null (isNull() == true).
 628                          
 629                              @param x Output Uint8 into which the value is stored if CIMValue
 630                                  state is not null.
 631 kumpf           1.53         @exception TypeMismatchException If the value type does not match the
 632                                  output parameter.
 633 karl            1.13     */
 634 mike            1.11     void get(Uint8& x) const;
 635 kumpf           1.53 
 636                          /**
 637                              Gets the value of the CIMValue.  The caller should first verify that
 638 karl            1.58         the value is not null and may verify type to avoid the possibility of
 639                              the TypeMismatchException.  The output parameter x is NOT
 640                              updated if the value is null (isNull() == true).
 641                              @param x Output Sint8 into which the value is stored if CIMValue
 642                                  state is not null.
 643 kumpf           1.53         @exception TypeMismatchException If the value type does not match the
 644                                  output parameter.
 645                          */
 646 mike            1.11     void get(Sint8& x) const;
 647 kumpf           1.53 
 648                          /**
 649                              Gets the value of the CIMValue.  The caller should first verify that
 650 karl            1.58         the value is not null and may verify type to avoid the possibility of
 651                              the TypeMismatchException.  The output parameter x is NOT
 652                              updated if the value is null (isNull() == true).
 653                              @param x Output Uint16 into which the value is stored if CIMValue
 654                                  state is not null.
 655 kumpf           1.53         @exception TypeMismatchException If the value type does not match the
 656                                  output parameter.
 657                          */
 658 mike            1.11     void get(Uint16& x) const;
 659 kumpf           1.53 
 660                          /**
 661                              Gets the value of the CIMValue.  The caller should first verify that
 662 karl            1.58         the value is not null and may verify type to avoid the possibility of
 663                              the TypeMismatchException.  The output parameter x is NOT
 664                              updated if the value is null (isNull() == true).
 665                              @param x Output Sint16 into which the value is stored if CIMValue
 666                                  state is not null.
 667 kumpf           1.53         @exception TypeMismatchException If the value type does not match the
 668                                  output parameter.
 669                          */
 670 mike            1.11     void get(Sint16& x) const;
 671 kumpf           1.53 
 672                          /**
 673                              Gets the value of the CIMValue.  The caller should first verify that
 674 karl            1.58         the value is not null and may verify type to avoid the possibility of
 675                              the TypeMismatchException.  The output parameter x is NOT
 676                              updated if the value is null (isNull() == true).
 677 kumpf           1.53         <pre>
 678                                  Uint32 v;
 679                                  CIMValue value = property.getValue();
 680 karl            1.58             if ((value.getType() == CIMTYPE_SINT32) && (!value.isNull()))
 681 kumpf           1.53                 value.get(v);
 682                              </pre>
 683 karl            1.58         @param x Output Uint32 into which the value is stored if CIMValue
 684                                  state is not null.
 685 kumpf           1.53         @exception TypeMismatchException If the value type does not match the
 686                                  output parameter.
 687                          */
 688 mike            1.11     void get(Uint32& x) const;
 689 kumpf           1.53 
 690                          /**
 691                              Gets the value of the CIMValue.  The caller should first verify that
 692 karl            1.58         the value is not null and may verify type to avoid the possibility of
 693                              the TypeMismatchException.  The output parameter x is NOT
 694                              updated if the value is null (isNull() == true).
 695                              @param x Output Sint32 into which the value is stored if CIMValue
 696                                  state is not null.
 697 kumpf           1.53         @exception TypeMismatchException If the value type does not match the
 698                                  output parameter.
 699                          */
 700 mike            1.11     void get(Sint32& x) const;
 701 kumpf           1.53 
 702                          /**
 703                              Gets the value of the CIMValue.  The caller should first verify that
 704 karl            1.58         the value is not null and may verify type to avoid the possibility of
 705                              the TypeMismatchException.  The output parameter x is NOT
 706                              updated if the value is null (isNull() == true).
 707                              @param x Output Uint64 into which the value is stored if CIMValue
 708                                  state is not null.
 709 kumpf           1.53         @exception TypeMismatchException If the value type does not match the
 710                                  output parameter.
 711                          */
 712 mike            1.11     void get(Uint64& x) const;
 713 kumpf           1.53 
 714                          /**
 715                              Gets the value of the CIMValue.  The caller should first verify that
 716 karl            1.58         the value is not null and may verify type to avoid the possibility of
 717                              the TypeMismatchException.  The output parameter x is NOT
 718                              updated if the value is null (isNull() == true).
 719                              @param x Output Sint64 into which the value is stored if CIMValue
 720                                  state is not null.
 721 kumpf           1.53         @exception TypeMismatchException If the value type does not match the
 722                                  output parameter.
 723                          */
 724 mike            1.11     void get(Sint64& x) const;
 725 kumpf           1.53 
 726                          /**
 727                              Gets the value of the CIMValue.  The caller should first verify that
 728 karl            1.58         the value is not null and may verify type to avoid the possibility of
 729                              the TypeMismatchException.  The output parameter x is NOT
 730                              updated if the value is null (isNull() == true).
 731                              @param x Output Real32 into which the value is stored if CIMValue
 732                                  state is not null.
 733 kumpf           1.53         @exception TypeMismatchException If the value type does not match the
 734                                  output parameter.
 735                          */
 736 mike            1.11     void get(Real32& x) const;
 737 kumpf           1.53 
 738                          /**
 739                              Gets the value of the CIMValue.  The caller should first verify that
 740 karl            1.58         the value is not null and may verify type to avoid the possibility of
 741                              the TypeMismatchException.  The output parameter x is NOT
 742                              updated if the value is null (isNull() == true).
 743                              @param x Output Real64 into which the value is stored if CIMValue
 744                                  state is not null.
 745 kumpf           1.53         @exception TypeMismatchException If the value type does not match the
 746                                  output parameter.
 747                          */
 748 mike            1.11     void get(Real64& x) const;
 749 kumpf           1.53 
 750                          /**
 751                              Gets the value of the CIMValue.  The caller should first verify that
 752 karl            1.58         the value is not null and may verify type to avoid the possibility of
 753                              the TypeMismatchException.  The output parameter x is NOT
 754                              updated if the value is null (isNull() == true).
 755                              @param x Output Char16 into which the value is stored if CIMValue
 756                                  state is not null.
 757 kumpf           1.53         @exception TypeMismatchException If the value type does not match the
 758                                  output parameter.
 759                          */
 760 mike            1.11     void get(Char16& x) const;
 761 kumpf           1.53 
 762                          /**
 763                              Gets the value of the CIMValue.  The caller should first verify that
 764 karl            1.58         the value is not null and may verify type to avoid the possibility of
 765                              the TypeMismatchException.  The output parameter x is NOT
 766                              updated if the value is null (isNull() == true).
 767                              @param x Output String into which the value is stored if CIMValue
 768                                  state is not null.
 769 kumpf           1.53         @exception TypeMismatchException If the value type does not match the
 770                                  output parameter.
 771                          */
 772 mike            1.11     void get(String& x) const;
 773 kumpf           1.53 
 774                          /**
 775                              Gets the value of the CIMValue.  The caller should first verify that
 776 karl            1.58         the value is not null and may verify type to avoid the possibility of
 777                              the TypeMismatchException.  The output parameter x is NOT
 778                              updated if the value is null (isNull() == true).
 779                              @param x Output CIMDateTime into which the value is stored if CIMValue
 780                                  state is not null.
 781 kumpf           1.53         @exception TypeMismatchException If the value type does not match the
 782                                  output parameter.
 783                          */
 784 mike            1.11     void get(CIMDateTime& x) const;
 785 kumpf           1.53 
 786                          /**
 787                              Gets the value of the CIMValue.  The caller should first verify that
 788 karl            1.58         the value is not null and may verify type to avoid the possibility of
 789                              the TypeMismatchException.  The output parameter x is NOT
 790                              updated if the value is null (isNull() == true).).
 791                              @param x Output CIMObjectPath into which the value is stored if
 792                                  CIMValue state is not null.
 793 kumpf           1.53         @exception TypeMismatchException If the value type does not match the
 794                                  output parameter.
 795                          */
 796 kumpf           1.23     void get(CIMObjectPath& x) const;
 797 kumpf           1.53 
 798                          /**
 799                              Gets the value of the CIMValue.  The caller should first verify that
 800 karl            1.58         the value is not null and may verify type to avoid the possibility of
 801                              the TypeMismatchException.  The output parameter x is NOT
 802                              updated if the value is null (isNull() == true).
 803                              @param x Output CIMObject into which the value is stored if CIMValue
 804                                  state is not null.
 805 kumpf           1.53         @exception TypeMismatchException If the value type does not match the
 806                                  output parameter.
 807                          */
 808 dave.sudlik     1.41     void get(CIMObject& x) const;
 809 kumpf           1.53 
 810                          /**
 811                              Gets the value of the CIMValue.  The caller should first verify that
 812 karl            1.58         the value is not null and may verify type to avoid the possibility of
 813                              the TypeMismatchException.  The output parameter x is NOT
 814                              updated if the value is null (isNull() == true).
 815                              @param x Output CIMInstance into which the value is stored if CIMValue
 816                                  state is not null.
 817 kumpf           1.53         @exception TypeMismatchException If the value type does not match the
 818                                  output parameter.
 819                          */
 820 a.dunfey        1.50     void get(CIMInstance& x) const;
 821 kumpf           1.53 
 822                          /**
 823                              Gets the value of the CIMValue.  The caller should first verify that
 824 karl            1.58         the value is not null and may verify type to avoid the possibility of
 825                              the TypeMismatchException.  The output parameter x is NOT
 826                              updated if the value is null (isNull() == true).
 827                              @param x Output Boolean Array into which the value is stored if
 828                                  CIMValue state is not null.
 829 kumpf           1.53         @exception TypeMismatchException If the value type does not match the
 830                                  output parameter.
 831                          */
 832 mike            1.11     void get(Array<Boolean>& x) const;
 833 kumpf           1.53 
 834                          /**
 835                              Gets the value of the CIMValue.  The caller should first verify that
 836 karl            1.58         the value is not null and may verify type to avoid the possibility of
 837                              the TypeMismatchException.  The output parameter x is NOT
 838                              updated if the value is null (isNull() == true).
 839                              @param x Output Uint8 Array into which the value is stored if CIMValue
 840                                  state is not null.
 841 kumpf           1.53         @exception TypeMismatchException If the value type does not match the
 842                                  output parameter.
 843                          */
 844 mike            1.11     void get(Array<Uint8>& x) const;
 845 kumpf           1.53 
 846                          /**
 847                              Gets the value of the CIMValue.  The caller should first verify that
 848 karl            1.58         the value is not null and may verify type to avoid the possibility of
 849                              the TypeMismatchException.  The output parameter x is NOT
 850                              updated if the value is null (isNull() == true).
 851                              @param x Output Sint8 Array into which the value is stored if CIMValue
 852                                  state is not null.
 853 kumpf           1.53         @exception TypeMismatchException If the value type does not match the
 854                                  output parameter.
 855                          */
 856 mike            1.11     void get(Array<Sint8>& x) const;
 857 kumpf           1.53 
 858                          /**
 859                              Gets the value of the CIMValue.  The caller should first verify that
 860 karl            1.58         the value is not null and may verify type to avoid the possibility of
 861                              the TypeMismatchException.  The output parameter x is NOT
 862                              updated if the value is null (isNull() == true).).
 863                              @param x Output Uint16 Array into which the value is stored if CIMValue
 864                                  state is not null.
 865 kumpf           1.53         @exception TypeMismatchException If the value type does not match the
 866                                  output parameter.
 867                          */
 868 mike            1.11     void get(Array<Uint16>& x) const;
 869 kumpf           1.53 
 870                          /**
 871                              Gets the value of the CIMValue.  The caller should first verify that
 872 karl            1.58         the value is not null and may verify type to avoid the possibility of
 873                              the TypeMismatchException.  The output parameter x is NOT
 874                              updated if the value is null (isNull() == true).
 875                              @param x Output Sint16 Array into which the value is stored if CIMValue
 876                                  state is not null.
 877 kumpf           1.53         @exception TypeMismatchException If the value type does not match the
 878                                  output parameter.
 879                          */
 880 mike            1.11     void get(Array<Sint16>& x) const;
 881 kumpf           1.53 
 882                          /**
 883                              Gets the value of the CIMValue.  The caller should first verify that
 884 karl            1.58         the value is not null and may verify type to avoid the possibility of
 885                              the TypeMismatchException.  The output parameter x is NOT
 886                              updated if the value is null (isNull() == true).
 887                              @param x Output Uint32 Array into which the value is stored if CIMValue
 888                                  state is not null.
 889 kumpf           1.53         @exception TypeMismatchException If the value type does not match the
 890                                  output parameter.
 891                          */
 892 mike            1.11     void get(Array<Uint32>& x) const;
 893 kumpf           1.53 
 894                          /**
 895                              Gets the value of the CIMValue.  The caller should first verify that
 896 karl            1.58         the value is not null and may verify type to avoid the possibility of
 897                              the TypeMismatchException.  The output parameter x is NOT
 898                              updated if the value is null (isNull() == true).
 899                              @param x Output Sint32 Array into which the value is stored if CIMValue
 900                                  state is not null.
 901 kumpf           1.53         @exception TypeMismatchException If the value type does not match the
 902                                  output parameter.
 903                          */
 904 mike            1.11     void get(Array<Sint32>& x) const;
 905 kumpf           1.53 
 906                          /**
 907                              Gets the value of the CIMValue.  The caller should first verify that
 908 karl            1.58         the value is not null and may verify type to avoid the possibility of
 909                              the TypeMismatchException.  The output parameter x is NOT
 910                              updated if the value is null (isNull() == true).
 911                              @param x Output Uint64 Array into which the value is stored if CIMValue
 912                                  state is not null.
 913 kumpf           1.53         @exception TypeMismatchException If the value type does not match the
 914                                  output parameter.
 915                          */
 916 mike            1.11     void get(Array<Uint64>& x) const;
 917 kumpf           1.53 
 918                          /**
 919                              Gets the value of the CIMValue.  The caller should first verify that
 920 karl            1.58         the value is not null and may verify type to avoid the possibility of
 921                              the TypeMismatchException.  The output parameter x is NOT
 922                              updated if the value is null (isNull() == true).
 923                              @param x Output Sint64 Array into which the value is stored if CIMValue
 924                                  state is not null.
 925 kumpf           1.53         @exception TypeMismatchException If the value type does not match the
 926                                  output parameter.
 927                          */
 928 mike            1.11     void get(Array<Sint64>& x) const;
 929 kumpf           1.53 
 930                          /**
 931                              Gets the value of the CIMValue.  The caller should first verify that
 932 karl            1.58         the value is not null and may verify type to avoid the possibility of
 933                              the TypeMismatchException.  The output parameter x is NOT
 934                              updated if the value is null (isNull() == true).
 935                              @param x Output Real32 Array into which the value is stored if CIMValue
 936                                  state is not null.
 937 kumpf           1.53         @exception TypeMismatchException If the value type does not match the
 938                                  output parameter.
 939                          */
 940 mike            1.11     void get(Array<Real32>& x) const;
 941 kumpf           1.53 
 942                          /**
 943                              Gets the value of the CIMValue.  The caller should first verify that
 944 karl            1.58         the value is not null and may verify type to avoid the possibility of
 945                              the TypeMismatchException.  The output parameter x is NOT
 946                              updated if the value is null (isNull() == true).
 947                              @param x Output Real64 Array into which the value is stored if CIMValue
 948                                  state is not null.
 949 kumpf           1.53         @exception TypeMismatchException If the value type does not match the
 950                                  output parameter.
 951                          */
 952 mike            1.11     void get(Array<Real64>& x) const;
 953 kumpf           1.53 
 954                          /**
 955                              Gets the value of the CIMValue.  The caller should first verify that
 956 karl            1.58         the value is not null and may verify type to avoid the possibility of
 957                              the TypeMismatchException.  The output parameter x is NOT
 958                              updated if the value is null (isNull() == true).
 959                              @param x Output Char16 Array into which the value is stored if CIMValue
 960                                  state is not null.
 961 kumpf           1.53         @exception TypeMismatchException If the value type does not match the
 962                                  output parameter.
 963                          */
 964 mike            1.11     void get(Array<Char16>& x) const;
 965 kumpf           1.53 
 966                          /**
 967                              Gets the value of the CIMValue.  The caller should first verify that
 968 karl            1.58         the value is not null and may verify type to avoid the possibility of
 969                              the TypeMismatchException.  The output parameter x is NOT
 970                              updated if the value is null (isNull() == true).
 971                              @param x Output String Array into which the value is stored if CIMValue
 972                                  state is not null.
 973 kumpf           1.53         @exception TypeMismatchException If the value type does not match the
 974                                  output parameter.
 975                          */
 976 mike            1.11     void get(Array<String>& x) const;
 977 kumpf           1.53 
 978                          /**
 979                              Gets the value of the CIMValue.  The caller should first verify that
 980 karl            1.58         the value is not null and may verify type to avoid the possibility of
 981                              the TypeMismatchException.  The output parameter x is NOT
 982                              updated if the value is null (isNull() == true).
 983                              @param x Output CIMDateTime Array into which the value is stored if
 984                                  CIMValue state is not null.
 985 kumpf           1.53         @exception TypeMismatchException If the value type does not match the
 986                                  output parameter.
 987                          */
 988 kumpf           1.51     void get(Array<CIMDateTime>& x) const;
 989 kumpf           1.53 
 990                          /**
 991                              Gets the value of the CIMValue.  The caller should first verify that
 992 karl            1.58         the value is not null and may verify type to avoid the possibility of
 993                              the TypeMismatchException.  The output parameter x is NOT
 994                              updated if the value is null (isNull() == true).
 995                              @param x Output CIMObjectPath Array into which the value is stored if
 996                                  CIMValue state is not null.
 997 kumpf           1.53         @exception TypeMismatchException If the value type does not match the
 998                                  output parameter.
 999                          */
1000 kumpf           1.51     void get(Array<CIMObjectPath>& x) const;
1001 kumpf           1.53 
1002                          /**
1003                              Gets the value of the CIMValue.  The caller should first verify that
1004 karl            1.58         the value is not null and may verify type to avoid the possibility of
1005                              the TypeMismatchException.  The output parameter x is NOT
1006                              updated if the value is null (isNull() == true).
1007                              @param x Output CIMObject Array into which the value is stored if
1008                                  CIMValue state is not null.
1009 kumpf           1.53         @exception TypeMismatchException If the value type does not match the
1010                                  output parameter.
1011                          */
1012 kumpf           1.51     void get(Array<CIMObject>& x) const;
1013 kumpf           1.53 
1014                          /**
1015                              Gets the value of the CIMValue.  The caller should first verify that
1016 karl            1.58         the value is not null and may verify type to avoid the possibility of
1017                              the TypeMismatchException.  The output parameter x is NOT
1018                              updated if the value is null (isNull() == true).
1019                              @param x Output CIMInstance Array into which the value is stored if
1020                                  CIMValue state is not null.
1021 kumpf           1.53         @exception TypeMismatchException If the value type does not match the
1022                                  output parameter.
1023                          */
1024 kumpf           1.51     void get(Array<CIMInstance>& x) const;
1025 mike            1.11 
1026 kumpf           1.53     /**
1027                              Compares with another CIMValue object for equality.
1028                              @param x The CIMValue with which to compare
1029                              @return A Boolean indicating whether they are identical in type,
1030                                  array attributes, and value.
1031 kumpf           1.27     */
1032                          Boolean equal(const CIMValue& x) const;
1033 kumpf           1.20 
1034 kumpf           1.53     /**
1035                              Converts a CIMValue to a String.  This method should only be
1036                              used for diagnostic output purposes.  To get an actual String value,
1037                              use get(String &).
1038                              @return A String representation of the value.
1039 kumpf           1.44     */
1040 mike            1.11     String toString() const;
1041                      
1042 david.dillard   1.43 #ifdef PEGASUS_USE_DEPRECATED_INTERFACES
1043 kumpf           1.44     /**
1044                              <I><B>Deprecated Interface</B></I><BR>
1045 kumpf           1.53         Constructs a CIMValue with the specified value and type Sint8.
1046                              (Note: This constructor exists solely to support binary compatibility
1047                              with a previous definition of the Sint8 type.)
1048                              @param x The Sint8 value to assign
1049 kumpf           1.44     */
1050 david.dillard   1.43     CIMValue(char x);
1051                      
1052 kumpf           1.44     /**
1053                              <I><B>Deprecated Interface</B></I><BR>
1054 kumpf           1.53         Constructs a CIMValue with the specified value and type Sint8 Array.
1055                              (Note: This constructor exists solely to support binary compatibility
1056                              with a previous definition of the Sint8 type.)
1057                              @param x The Sint8 Array value to assign
1058 kumpf           1.44     */
1059 david.dillard   1.43     CIMValue(const Array<char>& x);
1060                      
1061 kumpf           1.44     /**
1062                              <I><B>Deprecated Interface</B></I><BR>
1063 kumpf           1.53         Sets the CIMValue to the specified value and type Sint8.
1064                              (Note: This method exists solely to support binary compatibility with
1065                              a previous definition of the Sint8 type.)
1066                              @param x The value to assign
1067 kumpf           1.44     */
1068 david.dillard   1.43     void set(char x);
1069                      
1070 kumpf           1.44     /**
1071                              <I><B>Deprecated Interface</B></I><BR>
1072 kumpf           1.53         Sets the CIMValue to the specified value and type Sint8 Array.
1073                              (Note: This method exists solely to support binary compatibility with
1074                              a previous definition of the Sint8 type.)
1075                              @param x The Array value to assign
1076 kumpf           1.44     */
1077 david.dillard   1.43     void set(const Array<char>& x);
1078                      
1079 kumpf           1.44     /**
1080                              <I><B>Deprecated Interface</B></I><BR>
1081 kumpf           1.53         Gets the Sint8 value of the CIMValue.  The caller should first verify
1082 karl            1.58         that the value is of the expected type and is not null.  The output
1083                              parameter x is not updated if the value is null (isNull() == true).
1084 kumpf           1.53         (Note: This method exists solely to support binary compatibility with
1085                              a previous definition of the Sint8 type.)
1086                              @param x Output variable into which the value is stored.
1087 kumpf           1.44     */
1088 david.dillard   1.43     void get(char& x) const;
1089                      
1090 kumpf           1.44     /**
1091                              <I><B>Deprecated Interface</B></I><BR>
1092 kumpf           1.53         Gets the Sint8 Array value of the CIMValue.  The caller should first
1093                              verify that the value is of the expected type and is not null.  The
1094 karl            1.58         output parameter x is not updated if the value is null
1095                              (isNull() == true).
1096 kumpf           1.53         (Note: This method exists solely to support binary compatibility with
1097                              a previous definition of the Sint8 type.)
1098                              @param x Output Array variable into which the value is stored.
1099 kumpf           1.44     */
1100 david.dillard   1.43     void get(Array<char>& x) const;
1101                      #endif
1102                      
1103 mike            1.11 private:
1104                      
1105 mike            1.47     void _get(const String*& data, Uint32& size) const;
1106                      
1107 a.arora         1.37     CIMValueRep* _rep;
1108 mike            1.11 
1109                          friend class CIMMethodRep;
1110                          friend class CIMParameterRep;
1111                          friend class CIMPropertyRep;
1112                          friend class CIMQualifierRep;
1113                          friend class CIMQualifierDeclRep;
1114 schuur          1.38     friend class BinaryStreamer;
1115 mike            1.47     friend class XmlWriter;
1116 thilo.boehm     1.57     friend class SCMOClass;
1117                          friend class SCMOInstance;
1118 mike            1.11 };
1119 kumpf           1.18 
1120 kumpf           1.53 /**
1121                          Compares two CIMValue objects for equality.
1122                          @param x First CIMValue to compare
1123                          @param y Second CIMValue to compare
1124                          @return A Boolean indicating whether they are identical in type, array
1125                              attributes, and value.
1126 karl            1.17 */
1127 mike            1.11 PEGASUS_COMMON_LINKAGE Boolean operator==(const CIMValue& x, const CIMValue& y);
1128                      
1129 kumpf           1.53 /**
1130                          Compares two CIMValue objects for inequality.
1131                          @param x First CIMValue to compare
1132                          @param y Second CIMValue to compare
1133                          @return A Boolean indicating whether they are NOT identical in type, array
1134                              attributes, and value.
1135 karl            1.17 */
1136 kumpf           1.18 PEGASUS_COMMON_LINKAGE Boolean operator!=(const CIMValue& x, const CIMValue& y);
1137 mike            1.11 
1138                      #define PEGASUS_ARRAY_T CIMValue
1139 kumpf           1.24 # include <Pegasus/Common/ArrayInter.h>
1140 mike            1.11 #undef PEGASUS_ARRAY_T
1141                      
1142                      PEGASUS_NAMESPACE_END
1143                      
1144 mike            1.48 #ifdef PEGASUS_INTERNALONLY
1145                      #include <Pegasus/Common/CIMValueInline.h>
1146                      #endif
1147                      
1148 mike            1.11 #endif /* Pegasus_Value_h */

No CVS admin address has been configured
Powered by
ViewCVS 0.9.2