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

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

No CVS admin address has been configured
Powered by
ViewCVS 0.9.2