📄 cimparameter.h
字号:
@exception UninitializedObjectException If the object is not initialized. */ Uint32 getQualifierCount() const; /** Determines whether the object has been initialized. @return True if the object has not been initialized, false otherwise. */ Boolean isUninitialized() const; /** Compares the parameter with another parameter. @param x The CIMConstParameter to be compared. @return True if this parameter is identical to the one specified, false otherwise. @exception UninitializedObjectException If either of the objects is not initialized. */ Boolean identical(const CIMConstParameter& x) const; /** Makes a deep copy of the parameter. This creates a new copy of all the parameter attributes including qualifiers. @return A new copy of the CIMParameter object. @exception UninitializedObjectException If the object is not initialized. */ CIMParameter clone() const;private: CIMParameter(CIMParameterRep* rep); void _checkRep() const; CIMParameterRep* _rep; friend class CIMConstParameter; friend class Resolver; friend class XmlWriter; friend class MofWriter; friend class BinaryStreamer;};//////////////////////////////////////////////////////////////////////////////////// CIMConstParameter///////////////////////////////////////////////////////////////////////////////////** The CIMConstParameter class provides a const interface to a CIMParameter object. This class is needed because the shared representation model used by CIMParameter does not prevent modification to a const CIMParameter object. Note that the value of a CIMConstParameter object could still be modified by a CIMParameter object that refers to the same data copy.*/class PEGASUS_COMMON_LINKAGE CIMConstParameter{public: /** Constructs an uninitialized CIMConstParameter object. A method invocation on an uninitialized object will result in the throwing of an UninitializedObjectException. An uninitialized object may be converted into an initialized object only by using the assignment operator with an initialized object. */ CIMConstParameter(); /** Constructs a CIMConstParameter object from the value of a specified CIMConstParameter object, so that both objects refer to the same data copy. @param x The CIMConstParameter object from which to construct a new CIMConstParameter object. */ CIMConstParameter(const CIMConstParameter& x); /** Constructs a CIMConstParameter object from the value of a specified CIMParameter object, so that both objects refer to the same data copy. @param x The CIMParameter object from which to construct a new CIMConstParameter object. */ CIMConstParameter(const CIMParameter& x); /** Constructs a CIMConstParameter object with the specified attributes. @param name A CIMName specifying the name of the parameter. @param type A CIMType defining the parameter type. @param isArray A Boolean indicating whether it is an Array parameter. @param arraySize A Uint32 indicating the size of the Array, if the parameter is an Array parameter. The default value of zero indicates a variable size array. @param referenceClassName A CIMName containing the reference class name for this parameter, if the parameter is of reference type. @exception TypeMismatchException If the parameter is of reference type and referenceClassName is null. @exception TypeMismatchException If isArray is true and arraySize is not zero. */ CIMConstParameter( const CIMName& name, CIMType type, Boolean isArray = false, Uint32 arraySize = 0, const CIMName& referenceClassName = CIMName()); /** Destructs the CIMConstParameter object. */ ~CIMConstParameter(); /** Assigns the value of the specified CIMConstParameter object to this object, so that both objects refer to the same data copy. @param x The CIMConstParameter object from which to assign this CIMConstParameter object. @return A reference to this CIMConstParameter object. */ CIMConstParameter& operator=(const CIMConstParameter& x); /** Assigns the value of the specified CIMParameter object to this object, so that both objects refer to the same data copy. @param x The CIMParameter object from which to assign this CIMConstParameter object. @return A reference to this CIMConstParameter object. */ CIMConstParameter& operator=(const CIMParameter& x); /** Gets the parameter name. @return A CIMName containing the name of the parameter. @exception UninitializedObjectException If the object is not initialized. */ const CIMName& getName() const; /** Checks whether the parameter is an Array parameter. @return True if the parameter is an Array parameter, false otherwise. @exception UninitializedObjectException If the object is not initialized. */ Boolean isArray() const; /** Gets the array size for the parameter. @return Uint32 array size. @exception UninitializedObjectException If the object is not initialized. */ Uint32 getArraySize() const; /** Gets the reference class name for the parameter. @return A CIMName containing the reference class name for the parameter if the parameter is of reference type, a null CIMName otherwise. @exception UninitializedObjectException If the object is not initialized. */ const CIMName& getReferenceClassName() const; /** Gets the parameter type. @return A CIMType indicating the type of this parameter. @exception UninitializedObjectException If the object is not initialized. */ CIMType getType() const; /** Finds a qualifier by name. @param name A CIMName specifying the name of the qualifier to be found. @return Index of the qualifier if found or PEG_NOT_FOUND if not found. @exception UninitializedObjectException If the object is not initialized. */ Uint32 findQualifier(const CIMName& name) const; /** Gets the qualifier at the specified index. @param index The index of the qualifier to be retrieved. @return The CIMConstQualifier at the specified index. @exception IndexOutOfBoundsException If the index is outside the range of qualifiers available for the CIMParameter. @exception UninitializedObjectException If the object is not initialized. */ CIMConstQualifier getQualifier(Uint32 index) const; /** Gets the number of qualifiers in the parameter. @return An integer count of the qualifiers in the CIMParameter. @exception UninitializedObjectException If the object is not initialized. */ Uint32 getQualifierCount() const; /** Determines whether the object has been initialized. @return True if the object has not been initialized, false otherwise. */ Boolean isUninitialized() const; /** Compares the parameter with another parameter. @param x The CIMConstParameter to be compared. @return True if this parameter is identical to the one specified, false otherwise. @exception UninitializedObjectException If either of the objects is not initialized. */ Boolean identical(const CIMConstParameter& x) const; /** Makes a deep copy of the parameter. This creates a new copy of all the parameter attributes including qualifiers. @return A CIMParameter object with a separate copy of the CIMConstParameter object. @exception UninitializedObjectException If the object is not initialized. */ CIMParameter clone() const;private: void _checkRep() const; CIMParameterRep* _rep; friend class CIMParameter; friend class XmlWriter; friend class MofWriter;};#define PEGASUS_ARRAY_T CIMParameter# include <Pegasus/Common/ArrayInter.h>#undef PEGASUS_ARRAY_TPEGASUS_NAMESPACE_END#endif /* Pegasus_Parameter_h */
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -