⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 cimqualifier.h

📁 Pegasus is an open-source implementationof the DMTF CIM and WBEM standards. It is designed to be por
💻 H
📖 第 1 页 / 共 2 页
字号:
    Boolean isUninitialized() const;    /**        Compares the qualifier with another qualifier.        @param x The CIMConstQualifier to be compared.        @return True if this qualifier is identical to the one specified,            false otherwise.        @exception UninitializedObjectException If either of the objects            is not initialized.    */    Boolean identical(const CIMConstQualifier& x) const;    /**        Makes a deep copy of the qualifier.  This creates a new copy        of all the qualifier attributes.        @return A new copy of the CIMQualifier object.        @exception UninitializedObjectException If the object is not            initialized.    */    CIMQualifier clone() const;private:    CIMQualifier(CIMQualifierRep* rep);    void _checkRep() const;    CIMQualifierRep* _rep;    friend class CIMConstQualifier;    friend class CIMClassRep;    friend class Resolver;    friend class XmlWriter;    friend class MofWriter;    friend class BinaryStreamer;};//////////////////////////////////////////////////////////////////////////////////// CIMConstQualifier///////////////////////////////////////////////////////////////////////////////////**    The CIMConstQualifier class provides a const interface to a CIMQualifier    object.  This class is needed because the shared representation model    used by CIMQualifier does not prevent modification to a const CIMQualifier    object.  Note that the value of a CIMConstQualifier object could still be    modified by a CIMQualifier object that refers to the same data copy.*/class PEGASUS_COMMON_LINKAGE CIMConstQualifier{public:    /**        Constructs an uninitialized CIMConstQualifier 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.    */    CIMConstQualifier();    /**        Constructs a CIMConstQualifier object from the value of a specified        CIMConstQualifier object, so that both objects refer to the same data        copy.        @param x The CIMConstQualifier object from which to construct a new            CIMConstQualifier object.    */    CIMConstQualifier(const CIMConstQualifier& x);    /**        Constructs a CIMConstQualifier object from the value of a specified        CIMQualifier object, so that both objects refer to the same data        copy.        @param x The CIMQualifier object from which to construct a new            CIMConstQualifier object.    */    CIMConstQualifier(const CIMQualifier& x);    /**        Constructs a CIMConstQualifier object with the specified attributes.        @param name A CIMName specifying the name of the qualifier.        @param value A CIMValue specifying the qualifier value, and implicitly            defining the qualifier type and whether the qualifier is an Array            qualifier.        @param flavor A CIMFlavor indicating the qualifier flavors.        @param propagated A Boolean indicating whether the qualifier is local            to the context in which it appears or was propagated            (without modification) from other schema.        @exception UninitializedObjectException If the qualifier name is null.    */    CIMConstQualifier(	const CIMName& name, 	const CIMValue& value, 	const CIMFlavor & flavor = CIMFlavor (CIMFlavor::NONE),	Boolean propagated = false);    /**        Destructs the CIMQualifier object.    */    ~CIMConstQualifier();    /**        Assigns the value of the specified CIMConstQualifier object to this        object, so that both objects refer to the same data copy.        @param x The CIMConstQualifier object from which to assign this            CIMConstQualifier object.        @return A reference to this CIMConstQualifier object.    */    CIMConstQualifier& operator=(const CIMConstQualifier& x);    /**        Assigns the value of the specified CIMQualifier object to this        object, so that both objects refer to the same data copy.        @param x The CIMQualifier object from which to assign this            CIMConstQualifier object.        @return A reference to this CIMConstQualifier object.    */    CIMConstQualifier& operator=(const CIMQualifier& x);    /**        Gets the name of the qualifier.        @return A CIMName containing the name of the qualifier.        @exception UninitializedObjectException If the object is not            initialized.    */    const CIMName& getName() const;    /**        Gets the qualifier type.        @return A CIMType containing the qualifier type.        @exception UninitializedObjectException If the object is not            initialized.    */    CIMType getType() const;    /**        Checks whether the qualifier is an Array qualifier.        @return True if the qualifier is an Array qualifier, false otherwise.        @exception UninitializedObjectException If the object is not            initialized.    */    Boolean isArray() const;    /**        Gets the qualifier value.        @return A CIMValue containing the qualifier value.        @exception UninitializedObjectException If the object is not            initialized.    */    const CIMValue& getValue() const;    /**        Gets the qualifier flavors.        @return A CIMFlavor containing the qualifier flavor settings.        @exception UninitializedObjectException If the object is not            initialized.    */    const CIMFlavor & getFlavor() const;    /**        Tests the propagated attribute of the qualifier.  The propagated        attribute indicates whether this qualifier was propagated from a        higher-level class.  Normally this attribute is set as part of        defining a qualifier in the context of a schema.  It is set in        qualifiers retrieved from a CIM Server.        (Note: Although this method is intended to return a Boolean value,        changing the return type would break interface compatibility.)        @return Non-zero if qualifier is propagated, otherwise zero.        @exception UninitializedObjectException If the object is not            initialized.    */    const Uint32 getPropagated() const;    /**        Determines whether the object has been initialized.        @return True if the object has not been initialized, false otherwise.    */    Boolean isUninitialized() const;    /**        Compares the qualifier with another qualifier.        @param x The CIMConstQualifier to be compared.        @return True if this qualifier is identical to the one specified,            false otherwise.        @exception UninitializedObjectException If either of the objects            is not initialized.    */    Boolean identical(const CIMConstQualifier& x) const;    /**        Makes a deep copy of the qualifier.  This creates a new copy        of all the qualifier attributes.        @return A CIMQualifier object with a separate copy of the            CIMConstQualifier object.        @exception UninitializedObjectException If the object is not            initialized.    */    CIMQualifier clone() const;private:    void _checkRep() const;    CIMQualifierRep* _rep;    friend class CIMQualifier;    friend class XmlWriter;    friend class MofWriter;};#define PEGASUS_ARRAY_T CIMQualifier# include <Pegasus/Common/ArrayInter.h>#undef PEGASUS_ARRAY_TPEGASUS_NAMESPACE_END#endif /* Pegasus_Qualifier_h */

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -