(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.1.2.1 and 1.17.10.1

version 1.1.2.1, 2001/10/05 18:55:51 version 1.17.10.1, 2005/09/30 16:28:15
Line 1 
Line 1 
 //%/////////////////////////////////////////////////////////////////////////////  //%2005////////////////////////////////////////////////////////////////////////
 // //
 // 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.
 // //
 // 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 23 
Line 29 
 // //
 // 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)
   //              David Dillard, VERITAS Software Corp.
   //                  (david.dillard@veritas.com)
 // //
 //%///////////////////////////////////////////////////////////////////////////// //%/////////////////////////////////////////////////////////////////////////////
  
Line 31 
Line 39 
 #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>  
  
 PEGASUS_NAMESPACE_BEGIN PEGASUS_NAMESPACE_BEGIN
  
 class DeclContext;  
 class CIMConstParameter;  
   
 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);          return _isTyped;
     }     }
  
     CIMQualifier getQualifier(Uint32 pos)      void setParameterName(String& parameterName);
     {  
         return _qualifiers.getQualifier(pos);  
     }  
   
     CIMConstQualifier getQualifier(Uint32 pos) const  
     {  
         return _qualifiers.getQualifier(pos);  
     }  
   
     Uint32 getQualifierCount() const  
     {  
         return _qualifiers.getCount();  
     }  
   
     void resolve(DeclContext* declContext, const String& nameSpace);  
  
     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 126 
Line 92 
  
     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.1.2.1  
changed lines
  Added in v.1.17.10.1

No CVS admin address has been configured
Powered by
ViewCVS 0.9.2