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

Diff for /pegasus/src/Pegasus/Common/CIMParamValueRep.h between version 1.3 and 1.21

version 1.3, 2001/12/24 02:23:03 version 1.21, 2006/11/07 21:30:36
Line 1 
Line 1 
 //%/////////////////////////////////////////////////////////////////////////////  //%2006////////////////////////////////////////////////////////////////////////
 // //
 // Copyright (c) 2000, 2001 BMC Software, Hewlett-Packard Company, IBM,  // Copyright (c) 2000, 2001, 2002 BMC Software; Hewlett-Packard Development
 // The Open Group, Tivoli Systems  // Company, L.P.; IBM Corp.; The Open Group; Tivoli Systems.
   // Copyright (c) 2003 BMC Software; Hewlett-Packard Development Company, L.P.;
   // IBM Corp.; EMC Corporation, The Open Group.
   // Copyright (c) 2004 BMC Software; Hewlett-Packard Development Company, L.P.;
   // IBM Corp.; EMC Corporation; VERITAS Software Corporation; The Open Group.
   // Copyright (c) 2005 Hewlett-Packard Development Company, L.P.; IBM Corp.;
   // 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 21 
Line 29 
 // //
 //============================================================================== //==============================================================================
 // //
 // Author: Nitin Upasani, Hewlett-Packard Company (Nitin_Upasani@hp.com)  
 //  
 // Modified By:  
 //  
 //%///////////////////////////////////////////////////////////////////////////// //%/////////////////////////////////////////////////////////////////////////////
  
 #ifndef Pegasus_ParamValueRep_h #ifndef Pegasus_ParamValueRep_h
 #define Pegasus_ParamValueRep_h #define Pegasus_ParamValueRep_h
  
 #include <Pegasus/Common/Config.h> #include <Pegasus/Common/Config.h>
 #include <Pegasus/Common/Exception.h>  #include <Pegasus/Common/InternalException.h>
 #include <Pegasus/Common/String.h> #include <Pegasus/Common/String.h>
 #include <Pegasus/Common/Sharable.h> #include <Pegasus/Common/Sharable.h>
 #include <Pegasus/Common/CIMQualifier.h>  #include <Pegasus/Common/CIMValue.h>
 #include <Pegasus/Common/CIMQualifierList.h>  #include <Pegasus/Common/Linkage.h>
 #include <Pegasus/Common/CIMParameter.h>  #include <Pegasus/Common/Buffer.h>
  
 PEGASUS_NAMESPACE_BEGIN PEGASUS_NAMESPACE_BEGIN
  
 class DeclContext;  class CIMParamValueRep : public Sharable
 class CIMConstParameter;  
   
 // REVIEW: This class should be renamed to CIMParameterValueRep to be consistent  
 // REVIEW: with the name of the CIMParameterRep class.  
   
 // REVIEW: This class contains a CIMParameter but then repeats many of the  
 // REVIEW: members that CIMParameter contains. The standard does not provide  
 // REVIEW: a way of passing the type of the CIMParameter. However, CIMParameter  
 // REVIEW: has a type tag. There is no way to get this information from the wire  
 // REVIEW: and therefore this class is unworkable.  
 // REVIEW: In any case, CIMParamValueRep should not repeat the _isArray,  
 // REVIEW: _arraySize, _referenceClassName, and _qualifiers fields.  
   
 class PEGASUS_COMMON_LINKAGE CIMParamValueRep : public Sharable  
 { {
 public: public:
  
     CIMParamValueRep(     CIMParamValueRep(
         CIMParameter parameter,          String parameterName,
         CIMValue value,         CIMValue value,
         Boolean isArray,          Boolean isTyped=true);
         Uint32 arraySize,  
         const String& referenceClassName);  
  
     ~CIMParamValueRep();     ~CIMParamValueRep();
  
     Boolean isArray() const      const String & getParameterName() const
     {  
         return _isArray;  
     }  
   
     Uint32 getAraySize() const  
     {  
         return _arraySize;  
     }  
   
     const String& getReferenceClassName() const  
     {  
         return _referenceClassName;  
     }  
   
     const CIMParameter getParameter() const  
     {     {
         return _parameter;          return _parameterName;
     }     }
  
     const CIMValue getValue() const      const CIMValue & getValue() const
     {     {
         return _value;         return _value;
     }     }
  
     void setParameter(CIMParameter parameter);      Boolean isTyped() const
   
     void setValue(CIMValue value);  
   
     void addQualifier(const CIMQualifier& qualifier)  
     {  
         _qualifiers.add(qualifier);  
     }  
   
     CIMQualifier getQualifier(Uint32 pos)  
     {  
         return _qualifiers.getQualifier(pos);  
     }  
   
     CIMConstQualifier getQualifier(Uint32 pos) const  
     {  
         return _qualifiers.getQualifier(pos);  
     }  
   
     Uint32 getQualifierCount() const  
     {     {
         return _qualifiers.getCount();          return _isTyped;
     }     }
  
     void resolve(DeclContext* declContext, const String& nameSpace);      void setParameterName(String& parameterName);
  
     void toXml(Array<Sint8>& out) const;      void setValue(CIMValue& value);
  
     void toMof(Array<Sint8>& out) const;      void setIsTyped(Boolean isTyped);
  
     void print(PEGASUS_STD(ostream) &o=PEGASUS_STD(cout)) const;      void toXml(Buffer& out) const;
   
     Boolean identical(const CIMParamValueRep* x) const;  
  
     CIMParamValueRep* clone() const     CIMParamValueRep* clone() const
     {     {
Line 137 
Line 89 
  
     CIMParamValueRep(const CIMParamValueRep& x);     CIMParamValueRep(const CIMParamValueRep& x);
  
     CIMParamValueRep& operator=(const CIMParamValueRep& x);      // This method is declared and made private so that the compiler does
       // not implicitly define a default copy constructor.
       CIMParamValueRep& operator=(const CIMParamValueRep& x)
       {
           //PEGASUS_ASSERT(0);
           return *this;
       }
  
     CIMParameter _parameter;      String _parameterName;
     CIMValue _value;     CIMValue _value;
     Boolean _isArray;      Boolean _isTyped;
     Uint32 _arraySize;  
     String _referenceClassName;  
     CIMQualifierList _qualifiers;  
 }; };
  
 PEGASUS_NAMESPACE_END PEGASUS_NAMESPACE_END


Legend:
Removed from v.1.3  
changed lines
  Added in v.1.21

No CVS admin address has been configured
Powered by
ViewCVS 0.9.2