(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.13.2.1

version 1.3, 2001/12/24 02:23:03 version 1.13.2.1, 2002/10/28 15:43:21
Line 1 
Line 1 
 //%///////////////////////////////////////////////////////////////////////////// //%/////////////////////////////////////////////////////////////////////////////
 // //
 // Copyright (c) 2000, 2001 BMC Software, Hewlett-Packard Company, IBM,  // Copyright (c) 2000, 2001, 2002 BMC Software, Hewlett-Packard Company, IBM,
 // The Open Group, Tivoli Systems // The Open Group, Tivoli Systems
 // //
 // Permission is hereby granted, free of charge, to any person obtaining a copy // Permission is hereby granted, free of charge, to any person obtaining a copy
Line 23 
Line 23 
 // //
 // Author: Nitin Upasani, Hewlett-Packard Company (Nitin_Upasani@hp.com) // Author: Nitin Upasani, Hewlett-Packard Company (Nitin_Upasani@hp.com)
 // //
 // Modified By:  // Modified By: Roger Kumpf, Hewlett-Packard Company (roger_kumpf@hp.com)
 // //
 //%///////////////////////////////////////////////////////////////////////////// //%/////////////////////////////////////////////////////////////////////////////
  
Line 34 
Line 34 
 #include <Pegasus/Common/Exception.h> #include <Pegasus/Common/Exception.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>  
  
 PEGASUS_NAMESPACE_BEGIN PEGASUS_NAMESPACE_BEGIN
  
 class DeclContext;  
 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 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;          return _parameterName;
     }     }
  
     Uint32 getAraySize() const      const CIMValue & getValue() const
     {  
         return _arraySize;  
     }  
   
     const String& getReferenceClassName() const  
     {  
         return _referenceClassName;  
     }  
   
     const CIMParameter getParameter() const  
     {  
         return _parameter;  
     }  
   
     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);          return _isTyped;
     }     }
  
     CIMConstQualifier getQualifier(Uint32 pos) const      void setParameterName(String& parameterName);
     {  
         return _qualifiers.getQualifier(pos);  
     }  
  
     Uint32 getQualifierCount() const      void setValue(CIMValue& value);
     {  
         return _qualifiers.getCount();  
     }  
  
     void resolve(DeclContext* declContext, const String& nameSpace);      void setIsTyped(Boolean isTyped);
  
     void toXml(Array<Sint8>& out) const;     void toXml(Array<Sint8>& out) const;
  
     void toMof(Array<Sint8>& out) const;  
   
     void print(PEGASUS_STD(ostream) &o=PEGASUS_STD(cout)) const;  
   
     Boolean identical(const CIMParamValueRep* x) const;     Boolean identical(const CIMParamValueRep* x) const;
  
     CIMParamValueRep* clone() const     CIMParamValueRep* clone() const
Line 137 
Line 86 
  
     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.13.2.1

No CVS admin address has been configured
Powered by
ViewCVS 0.9.2