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

  1 karl  1.21 //%2005////////////////////////////////////////////////////////////////////////
  2 mike  1.2  //
  3 karl  1.20 // 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.18 // IBM Corp.; EMC Corporation, The Open Group.
  7 karl  1.20 // 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.21 // Copyright (c) 2005 Hewlett-Packard Development Company, L.P.; IBM Corp.;
 10            // EMC Corporation; VERITAS Software Corporation; The Open Group.
 11 mike  1.2  //
 12            // Permission is hereby granted, free of charge, to any person obtaining a copy
 13 kumpf 1.13 // of this software and associated documentation files (the "Software"), to
 14            // deal in the Software without restriction, including without limitation the
 15            // rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
 16 mike  1.2  // sell copies of the Software, and to permit persons to whom the Software is
 17            // furnished to do so, subject to the following conditions:
 18            // 
 19 kumpf 1.13 // THE ABOVE COPYRIGHT NOTICE AND THIS PERMISSION NOTICE SHALL BE INCLUDED IN
 20 mike  1.2  // ALL COPIES OR SUBSTANTIAL PORTIONS OF THE SOFTWARE. THE SOFTWARE IS PROVIDED
 21            // "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT
 22 kumpf 1.13 // LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR
 23            // PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
 24            // HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN
 25 mike  1.2  // ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
 26            // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
 27            //
 28            //==============================================================================
 29            //
 30            //%/////////////////////////////////////////////////////////////////////////////
 31            
 32            #ifndef Pegasus_ParamValue_h
 33            #define Pegasus_ParamValue_h
 34            
 35            #include <Pegasus/Common/Config.h>
 36 kumpf 1.8  #include <Pegasus/Common/String.h>
 37            #include <Pegasus/Common/CIMValue.h>
 38 kumpf 1.14 #include <Pegasus/Common/Linkage.h>
 39 mike  1.2  
 40            PEGASUS_NAMESPACE_BEGIN
 41 kumpf 1.8  
 42            class CIMParamValueRep;
 43 mike  1.2  
 44            ////////////////////////////////////////////////////////////////////////////////
 45            //
 46            // CIMParamValue
 47            //
 48            ////////////////////////////////////////////////////////////////////////////////
 49            
 50 kumpf 1.17 ///
 51 mike  1.2  class PEGASUS_COMMON_LINKAGE CIMParamValue
 52            {
 53            public:
 54            
 55 kumpf 1.17     ///
 56 kumpf 1.6      CIMParamValue();
 57 mike  1.2  
 58 kumpf 1.17     ///
 59 kumpf 1.6      CIMParamValue(const CIMParamValue& x);
 60 mike  1.2  
 61 kumpf 1.17     ///
 62 kumpf 1.6      CIMParamValue& operator=(const CIMParamValue& x);
 63 mike  1.2  
 64 kumpf 1.17     ///
 65 mike  1.2      CIMParamValue(
 66 kumpf 1.5  	String parameterName,
 67            	CIMValue value,
 68 kumpf 1.6  	Boolean isTyped=true);
 69            
 70 kumpf 1.17     ///
 71 kumpf 1.6      ~CIMParamValue();
 72 mike  1.2  
 73 kumpf 1.17     ///
 74 kumpf 1.6      String getParameterName() const;
 75            
 76 kumpf 1.17     ///
 77 kumpf 1.6      CIMValue getValue() const;
 78 mike  1.2  
 79 kumpf 1.17     ///
 80 kumpf 1.6      Boolean isTyped() const;
 81 mike  1.2  
 82 kumpf 1.17     ///
 83 kumpf 1.6      void setParameterName(String& parameterName);
 84 mike  1.2  
 85 kumpf 1.17     ///
 86 kumpf 1.6      void setValue(CIMValue& value);
 87 mike  1.2  
 88 kumpf 1.17     ///
 89 kumpf 1.16     void setIsTyped(Boolean isTyped);
 90 mike  1.2  
 91 kumpf 1.17     ///
 92 kumpf 1.6      CIMParamValue clone() const;
 93 mike  1.2  
 94 kumpf 1.17     /** Determines if the object has not been initialized.
 95                    @return  true if the object has not been initialized,
 96                             false otherwise.
 97 kumpf 1.15      */
 98                Boolean isUninitialized() const;
 99 mike  1.2  
100            private:
101            
102 kumpf 1.6      CIMParamValue(CIMParamValueRep* rep);
103            
104                void _checkRep() const;
105 mike  1.2  
106                CIMParamValueRep* _rep;
107 kumpf 1.11 
108                friend class XmlWriter;
109 mike  1.2  };
110            
111            #define PEGASUS_ARRAY_T CIMParamValue
112 kumpf 1.12 # include <Pegasus/Common/ArrayInter.h>
113 mike  1.2  #undef PEGASUS_ARRAY_T
114            
115            PEGASUS_NAMESPACE_END
116            
117            #endif /* Pegasus_ParamValue_h */

No CVS admin address has been configured
Powered by
ViewCVS 0.9.2