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

📄 cimclass.h

📁 Pegasus is an open-source implementationof the DMTF CIM and WBEM standards. It is designed to be por
💻 H
📖 第 1 页 / 共 2 页
字号:
    /** Locate the method object defined by the input parameter.	@param name  CIMName representing the name of the method to be found.	@return Position of the method object in the class.    */    Uint32 findMethod(const CIMName& name) const;    /** Gets the method object defined by the input parameter.	@param index  Index to the method object to get.	@return CIMMethod object of the method requested.        @exception IndexOutOfBoundsException if the index is outside        the range of methods in this class.    */    CIMMethod getMethod(Uint32 index);    /** Gets the method object defined by the input parameter.	@param index  Index to the method object to get.	@return CIMConstMethod object of the method requested.        @exception IndexOutOfBoundsException if the index is outside        the range of methods in this class.    */    CIMConstMethod getMethod(Uint32 index) const;    /** Removes the method defined by the index parameter.        @param index  Defines the index of the method to be removed.        @exception IndexOutOfBoundsException if the index is outside        the range of methods in this class.    */    void removeMethod(Uint32 index);    /** Gets the count of the number of methods in the class.	@return the count of the number of methods in the class object.    */    Uint32 getMethodCount() const;    /// Get names of all keys of this class.    void getKeyNames(Array<CIMName>& keyNames) const;    /** Determines if the object has keys.        @return  true if the object has keys, false otherwise.    */    Boolean hasKeys() const;    /** Makes a deep copy (clone) of the given object.         @return copy of the CIMClass object.    */    CIMClass clone() const;    /** Compares with another CIM class.	@param x  Class object for the class to be compared.	@return true if the classes are identical, false otherwise.    */    Boolean identical(const CIMConstClass& x) const;    /** Determines if the object has not 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>    Build a CIMInstance based on this CIM Class.  Properties in the instance     are initialized to the default values (if any) specified in the class     definition.  The parameters of the call determine whether qualifiers are     included, the class origin attributes are included and which properties     are included in the new instance.  This method is designed specifically     for providers to allow them to easily build instance objects using the     parameters provided with the CIM instance operations such as getInstance,     enumerateInstances.          @param includeQualifiers If true attaches the class level qualifiers from     this class to the instance and all properties inserted in the instance.      If false, no qualifiers are attached to the instance or to any properties     included in the instance.  The TOINSTANCE flavor is ignored.  Because     there is still confusion over the exact operation of this parameter in the     CIM specifications and the concept of instance level qualifiers, the     behavior of this function when the parameter is true MAY change in the     future to match any future clarifications of interoperable behavior in the     CIM specifications.          @param includeClassOrigin If true ClassOrigin attributes attached to     properties inthe class object are transferred to the properties attached     to the instance object.  If false, any ClassOrigin attributes are ignored.          @param propertyList A CIMPropertyList defining the properties that are to     be added to the created instance.  If propertyList is not NULL properties     defined in the class and in this propertyList are added to the new     instance.  If the propertyLlist is NULL, all properties are added to the     instance.  If the propertyList exists but is empty, not properties are     added.  Note that this function does NOT generate an error if a property     name is supplied that is NOT in the class; it simply does not add that     property to the instance.          @return CIMInstance of this class appropriately initialized.    <p><b>Example:</b>    <pre>        CIMClass myClass .. a defined and complete CIMClass.        // create instance with qualifiers, class origin and all properties        CIMInstance myInstance =                myClass.buildInstance(true, true, CIMPropertyList());    </pre>    */    CIMInstance buildInstance(Boolean includeQualifiers,        Boolean includeClassOrigin,        const CIMPropertyList & propertyList) const;#endifprivate:    CIMClassRep* _rep;    CIMClass(CIMClassRep* rep);    void _checkRep() const;    friend class CIMConstClass;    friend class CIMObject;    friend class CIMConstObject;    friend class Resolver;    friend class XmlWriter;    friend class MofWriter;    friend class BinaryStreamer;};#define PEGASUS_ARRAY_T CIMClass#include <Pegasus/Common/ArrayInter.h>#undef PEGASUS_ARRAY_T/// CIMConstClassclass PEGASUS_COMMON_LINKAGE CIMConstClass{public:    ///    CIMConstClass();    ///    CIMConstClass(const CIMConstClass& x);    ///    CIMConstClass(const CIMClass& x);    ///    PEGASUS_EXPLICIT CIMConstClass(const CIMObject& x);    ///    PEGASUS_EXPLICIT CIMConstClass(const CIMConstObject& x);    ///    CIMConstClass(	const CIMName& className,	const CIMName& superClassName = CIMName());    ///    CIMConstClass& operator=(const CIMConstClass& x);    ///    CIMConstClass& operator=(const CIMClass& x);    ///    ~CIMConstClass();    ///    Boolean isAssociation() const;    ///    Boolean isAbstract() const;    ///    const CIMName& getClassName() const;    ///    const CIMObjectPath& getPath() const;    ///    const CIMName& getSuperClassName() const;    ///    Uint32 findQualifier(const CIMName& name) const;    ///    CIMConstQualifier getQualifier(Uint32 index) const;    ///    Uint32 getQualifierCount() const;    ///    Uint32 findProperty(const CIMName& name) const;    ///    CIMConstProperty getProperty(Uint32 index) const;    ///    Uint32 getPropertyCount() const;    ///    Uint32 findMethod(const CIMName& name) const;    ///    CIMConstMethod getMethod(Uint32 index) const;    ///    Uint32 getMethodCount() const;    ///    void getKeyNames(Array<CIMName>& keyNames) const;    ///    Boolean hasKeys() const;    ///    CIMClass clone() const;    ///    Boolean identical(const CIMConstClass& x) const;    ///    Boolean isUninitialized() const;private:    CIMClassRep* _rep;    void _checkRep() const;    friend class CIMClassRep;    friend class CIMClass;    friend class CIMInstanceRep;    friend class CIMObject;    friend class CIMConstObject;    friend class XmlWriter;    friend class MofWriter;    friend class BinaryStreamer;};PEGASUS_NAMESPACE_END#endif /* Pegasus_CIMClass_h */

⌨️ 快捷键说明

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