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

📄 ciminstance.h

📁 Pegasus is an open-source implementationof the DMTF CIM and WBEM standards. It is designed to be por
💻 H
📖 第 1 页 / 共 2 页
字号:
    */    Boolean identical(const CIMConstInstance& x) const;    /**        Determines whether the object has been initialized.        @return True if the object has not been initialized, false otherwise.    */    Boolean isUninitialized() const;#ifdef PEGASUS_USE_EXPERIMENTAL_INTERFACES    /**  <I><B>Experimental Interface</B></I><BR>        Filter the properties, qualifiers and class origin attributes from the        instance based on specified filtering criteria.  Information is not        added by this method, it is only removed.  This method is specifically        designed to allow providers to filter instances based on CIM operation        parameters.        @param includeQualifiers A Boolean indicating whether qualifiers are            preserved in the instance and its properties.  If false, existing            qualifiers are removed; otherwise, qualifiers are not removed.            Because the CIM specification is unclear on the meaning of this            parameter and its relationship to instance operations, the            behavior when this parameter is true MAY change in the future            based on clarifications of the CIM specification.        @param includeClassOrigin A Boolean indicating whether ClassOrigin            attributes are preserved in the properties.  If false, ClassOrigin            attributes are removed from all properties; otherwise, ClassOrigin            attributes are not removed.        @param propertyList A CIMPropertyList defining the properties that            are preserved in the instance.  If the propertyList is not NULL,            properties absent from this list are removed from the instance.            If the propertyList is NULL, no properties are removed from the            instance.        @exception UninitializedObjectException If the object is not            initialized.    */    void filter(        Boolean includeQualifiers,        Boolean includeClassOrigin,        const CIMPropertyList & propertyList);#endifprivate:    CIMInstanceRep* _rep;    CIMInstance(CIMInstanceRep* rep);    void _checkRep() const;    friend class CIMConstInstance;    friend class CIMObject;    friend class CIMConstObject;    friend class Resolver;    friend class XmlWriter;    friend class MofWriter;    friend class BinaryStreamer;};//////////////////////////////////////////////////////////////////////////////////// CIMConstInstance///////////////////////////////////////////////////////////////////////////////////**    The CIMConstInstance class provides a const interface to a CIMInstance    object.  This class is needed because the shared representation model    used by CIMInstance does not prevent modification to a const CIMInstance    object.  Note that the value of a CIMConstInstance object could still be    modified by a CIMInstance object that refers to the same data copy.*/class PEGASUS_COMMON_LINKAGE CIMConstInstance{public:    /**        Constructs an uninitialized CIMConstInstance 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.    */    CIMConstInstance();    /**        Constructs a CIMConstInstance object from the value of a specified        CIMConstInstance object, so that both objects refer to the same data        copy.        @param x The CIMConstInstance object from which to construct a new            CIMConstInstance object.    */    CIMConstInstance(const CIMConstInstance& x);    /**        Constructs a CIMConstInstance object from the value of a specified        CIMInstance object, so that both objects refer to the same data        copy.        @param x The CIMInstance object from which to construct a new            CIMConstInstance object.    */    CIMConstInstance(const CIMInstance& x);    /**        Constructs a CIMConstInstance object from the value of a specified        CIMObject object, so that both objects refer to the same data copy.        @param x The CIMObject object from which to construct the            CIMConstInstance object.        @exception DynamicCastFailedException If a CIMConstInstance can not be            created from the given CIMObject.    */    PEGASUS_EXPLICIT CIMConstInstance(const CIMObject& x);    /**        Constructs a CIMConstInstance object from the value of a specified        CIMConstObject object, so that both objects refer to the same data        copy.        @param x The CIMConstObject object from which to construct the            CIMConstInstance object.        @exception DynamicCastFailedException If a CIMConstInstance can not be            created from the given CIMConstObject.    */    PEGASUS_EXPLICIT CIMConstInstance(const CIMConstObject& x);    /**        Constructs a CIMConstInstance object with the specified class name.        @param className A CIMName specifying the class name of the instance.    */    CIMConstInstance(const CIMName& className);    /**        Assigns the value of the specified CIMConstInstance object to this        object, so that both objects refer to the same data copy.        @param x The CIMConstInstance object from which to assign this            CIMConstInstance object.        @return A reference to this CIMConstInstance object.    */    CIMConstInstance& operator=(const CIMConstInstance& x);    /**        Assigns the value of the specified CIMInstance object to this        object, so that both objects refer to the same data copy.        @param x The CIMInstance object from which to assign this            CIMConstInstance object.        @return A reference to this CIMConstInstance object.    */    CIMConstInstance& operator=(const CIMInstance& x);    /**        Destructs the CIMConstInstance object.    */    ~CIMConstInstance();    /**        Gets the class name of the instance.        @return A CIMName containing the class name.        @exception UninitializedObjectException If the object is not            initialized.    */    const CIMName& getClassName() const;    /**        Gets the object path for the instance.        @return A CIMObjectPath containing the object path.        @exception UninitializedObjectException If the object is not            initialized.    */    const CIMObjectPath& getPath() 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 CIMConstInstance.        @exception UninitializedObjectException If the object is not            initialized.    */    CIMConstQualifier getQualifier(Uint32 index) const;    /**        Gets the number of qualifiers in the instance.        @return An integer count of the qualifiers in the CIMInstance.        @exception UninitializedObjectException If the object is not            initialized.    */    Uint32 getQualifierCount() const;    /**        Finds a property by name.        @param name A CIMName specifying the name of the property to be found.        @return Index of the property if found or PEG_NOT_FOUND if not found.        @exception UninitializedObjectException If the object is not            initialized.    */    Uint32 findProperty(const CIMName& name) const;    /**        Gets the property at the specified index.        @param index The index of the property to be retrieved.        @return The CIMConstProperty at the specified index.        @exception IndexOutOfBoundsException If the index is outside            the range of properties available for the CIMConstInstance.        @exception UninitializedObjectException If the object is not            initialized.    */    CIMConstProperty getProperty(Uint32 index) const;    /**        Gets the number of properties in the instance.        @return An integer count of the properties in the CIMConstInstance.        @exception UninitializedObjectException If the object is not            initialized.    */    Uint32 getPropertyCount() const;    /**        Builds the object path for this instance, based on the class name        and property values in the instance and the Key qualifiers on the        properties in the class definition.  The returned object path does        not include hostname and namespace attributes.        Note that this method does not update the path attribute of the        CIMInstance.        @return A CIMObjectPath containing the object path for the instance.        @exception UninitializedObjectException If the object is not            initialized.    */    CIMObjectPath buildPath(const CIMConstClass& cimClass) const;    /**        Makes a deep copy of the instance.  This creates a new copy of all        the instance attributes including qualifiers and properties.        @return A CIMInstance object with a separate copy of the            CIMConstInstance object.        @exception UninitializedObjectException If the object is not            initialized.    */    CIMInstance clone() const;    /**        Compares the CIMConstInstance with a specified CIMConstInstance.        @param x The CIMConstInstance to be compared.        @return True if this instance is identical to the one specified,            false otherwise.        @exception UninitializedObjectException If the object is not            initialized.    */    Boolean identical(const CIMConstInstance& x) const;    /**        Determines whether the object has been initialized.        @return True if the object has not been initialized, false otherwise.    */    Boolean isUninitialized() const;private:    CIMInstanceRep* _rep;    void _checkRep() const;    friend class CIMInstance;    friend class CIMObject;    friend class CIMConstObject;    friend class XmlWriter;    friend class MofWriter;    friend class BinaryStreamer;};#define PEGASUS_ARRAY_T CIMInstance# include <Pegasus/Common/ArrayInter.h>#undef PEGASUS_ARRAY_TPEGASUS_NAMESPACE_END#endif /* Pegasus_Instance_h */

⌨️ 快捷键说明

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