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

  1 karl  1.19 //%2006////////////////////////////////////////////////////////////////////////
  2 mike  1.2  //
  3 karl  1.15 // Copyright (c) 2000, 2001, 2002 BMC Software; Hewlett-Packard Development
  4            // Company, L.P.; IBM Corp.; The Open Group; Tivoli Systems.
  5            // Copyright (c) 2003 BMC Software; Hewlett-Packard Development Company, L.P.;
  6 karl  1.14 // IBM Corp.; EMC Corporation, The Open Group.
  7 karl  1.15 // Copyright (c) 2004 BMC Software; Hewlett-Packard Development Company, L.P.;
  8            // IBM Corp.; EMC Corporation; VERITAS Software Corporation; The Open Group.
  9 karl  1.17 // Copyright (c) 2005 Hewlett-Packard Development Company, L.P.; IBM Corp.;
 10            // EMC Corporation; VERITAS Software Corporation; The Open Group.
 11 karl  1.19 // Copyright (c) 2006 Hewlett-Packard Development Company, L.P.; IBM Corp.;
 12            // EMC Corporation; Symantec Corporation; The Open Group.
 13 mike  1.2  //
 14            // Permission is hereby granted, free of charge, to any person obtaining a copy
 15 kumpf 1.10 // of this software and associated documentation files (the "Software"), to
 16            // deal in the Software without restriction, including without limitation the
 17            // rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
 18 mike  1.2  // sell copies of the Software, and to permit persons to whom the Software is
 19            // furnished to do so, subject to the following conditions:
 20            // 
 21 kumpf 1.10 // THE ABOVE COPYRIGHT NOTICE AND THIS PERMISSION NOTICE SHALL BE INCLUDED IN
 22 mike  1.2  // ALL COPIES OR SUBSTANTIAL PORTIONS OF THE SOFTWARE. THE SOFTWARE IS PROVIDED
 23            // "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT
 24 kumpf 1.10 // LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR
 25            // PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
 26            // HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN
 27 mike  1.2  // ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
 28            // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
 29            //
 30            //==============================================================================
 31            //
 32            // Author: Nitin Upasani, Hewlett-Packard Company (Nitin_Upasani@hp.com)
 33            //
 34 kumpf 1.4  // Modified By: Roger Kumpf, Hewlett-Packard Company (roger_kumpf@hp.com)
 35 david.dillard 1.16 //              David Dillard, VERITAS Software Corp.
 36                    //                  (david.dillard@veritas.com)
 37 mike          1.2  //
 38                    //%/////////////////////////////////////////////////////////////////////////////
 39                    
 40                    #ifndef Pegasus_ParamValueRep_h
 41                    #define Pegasus_ParamValueRep_h
 42                    
 43                    #include <Pegasus/Common/Config.h>
 44 kumpf         1.12 #include <Pegasus/Common/InternalException.h>
 45 mike          1.2  #include <Pegasus/Common/String.h>
 46                    #include <Pegasus/Common/Sharable.h>
 47 kumpf         1.4  #include <Pegasus/Common/CIMValue.h>
 48 kumpf         1.11 #include <Pegasus/Common/Linkage.h>
 49 mike          1.18 #include <Pegasus/Common/Buffer.h>
 50 mike          1.2  
 51                    PEGASUS_NAMESPACE_BEGIN
 52                    
 53 mike          1.20 class CIMParamValueRep : public Sharable
 54 mike          1.2  {
 55                    public:
 56                    
 57                        CIMParamValueRep(
 58 kumpf         1.6  	String parameterName,
 59                    	CIMValue value,
 60                    	Boolean isTyped=true);
 61 mike          1.2  
 62                        ~CIMParamValueRep();
 63                    
 64 kumpf         1.6      const String & getParameterName() const 
 65 mike          1.2      { 
 66 kumpf         1.6  	return _parameterName; 
 67 mike          1.2      }
 68                    
 69 kumpf         1.4      const CIMValue & getValue() const 
 70 mike          1.2      { 
 71                    	return _value; 
 72                        }
 73                    
 74 kumpf         1.6      Boolean isTyped() const 
 75                        { 
 76                    	return _isTyped; 
 77                        }
 78                    
 79                        void setParameterName(String& parameterName);
 80 mike          1.2  
 81 kumpf         1.5      void setValue(CIMValue& value);
 82 mike          1.2  
 83 kumpf         1.6      void setIsTyped(Boolean isTyped);
 84                    
 85 mike          1.18     void toXml(Buffer& out) const;
 86 mike          1.2  
 87                        CIMParamValueRep* clone() const
 88                        {
 89                    	return new CIMParamValueRep(*this);
 90                        }
 91                    
 92                    private:
 93                    
 94                        CIMParamValueRep();
 95                    
 96                        CIMParamValueRep(const CIMParamValueRep& x);
 97                    
 98 kumpf         1.7      // This method is declared and made private so that the compiler does
 99                        // not implicitly define a default copy constructor.
100                        CIMParamValueRep& operator=(const CIMParamValueRep& x)
101                        {
102 kumpf         1.9          //PEGASUS_ASSERT(0);
103 kumpf         1.7          return *this;
104                        }
105 mike          1.2  
106 kumpf         1.6      String _parameterName;
107 mike          1.2      CIMValue _value;
108 kumpf         1.6      Boolean _isTyped;
109 mike          1.2  };
110                    
111                    PEGASUS_NAMESPACE_END
112                    
113                    #endif /* Pegasus_ParamValueRep_h */

No CVS admin address has been configured
Powered by
ViewCVS 0.9.2