• Main Page
  • Classes
  • Files
  • File List

/var/tmp/axbld-24884/rpm/BUILD/pegasus/src/Pegasus/Common/CIMParamValue.h

00001 //%LICENSE////////////////////////////////////////////////////////////////
00002 //
00003 // Licensed to The Open Group (TOG) under one or more contributor license
00004 // agreements.  Refer to the OpenPegasusNOTICE.txt file distributed with
00005 // this work for additional information regarding copyright ownership.
00006 // Each contributor licenses this file to you under the OpenPegasus Open
00007 // Source License; you may not use this file except in compliance with the
00008 // License.
00009 //
00010 // Permission is hereby granted, free of charge, to any person obtaining a
00011 // copy of this software and associated documentation files (the "Software"),
00012 // to deal in the Software without restriction, including without limitation
00013 // the rights to use, copy, modify, merge, publish, distribute, sublicense,
00014 // and/or sell copies of the Software, and to permit persons to whom the
00015 // Software is furnished to do so, subject to the following conditions:
00016 //
00017 // The above copyright notice and this permission notice shall be included
00018 // in all copies or substantial portions of the Software.
00019 //
00020 // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
00021 // OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
00022 // MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
00023 // IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
00024 // CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
00025 // TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
00026 // SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
00027 //
00029 //
00030 //%/////////////////////////////////////////////////////////////////////////////
00031 
00032 #ifndef Pegasus_ParamValue_h
00033 #define Pegasus_ParamValue_h
00034 
00035 #include <Pegasus/Common/Config.h>
00036 #include <Pegasus/Common/String.h>
00037 #include <Pegasus/Common/CIMValue.h>
00038 #include <Pegasus/Common/Linkage.h>
00039 
00040 PEGASUS_NAMESPACE_BEGIN
00041 
00042 class CIMParamValueRep;
00043 
00045 //
00046 // CIMParamValue
00047 //
00049 
00062 class PEGASUS_COMMON_LINKAGE CIMParamValue
00063 {
00064 public:
00065 
00073     CIMParamValue();
00074 
00082     CIMParamValue(const CIMParamValue& x);
00083 
00091     CIMParamValue& operator=(const CIMParamValue& x);
00092 
00104     CIMParamValue(
00105         String parameterName,
00106         CIMValue value,
00107         Boolean isTyped=true);
00108 
00112     ~CIMParamValue();
00113 
00120     String getParameterName() const;
00121 
00128     CIMValue getValue() const;
00129 
00137     Boolean isTyped() const;
00138 
00145     void setParameterName(String& parameterName);
00146 
00153     void setValue(CIMValue& value);
00154 
00163     void setIsTyped(Boolean isTyped);
00164 
00172     CIMParamValue clone() const;
00173 
00178     Boolean isUninitialized() const;
00179 
00180 private:
00181 
00182     CIMParamValue(CIMParamValueRep* rep);
00183 
00184     CIMParamValueRep* _rep;
00185 
00186     friend class XmlWriter;
00187 };
00188 
00189 #define PEGASUS_ARRAY_T CIMParamValue
00190 # include <Pegasus/Common/ArrayInter.h>
00191 #undef PEGASUS_ARRAY_T
00192 
00193 PEGASUS_NAMESPACE_END
00194 
00195 #endif /* Pegasus_ParamValue_h */