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

📄 cimqualifier.h

📁 Pegasus is an open-source implementationof the DMTF CIM and WBEM standards. It is designed to be por
💻 H
📖 第 1 页 / 共 2 页
字号:
//%2006//////////////////////////////////////////////////////////////////////////// Copyright (c) 2000, 2001, 2002 BMC Software; Hewlett-Packard Development// Company, L.P.; IBM Corp.; The Open Group; Tivoli Systems.// Copyright (c) 2003 BMC Software; Hewlett-Packard Development Company, L.P.;// IBM Corp.; EMC Corporation, The Open Group.// Copyright (c) 2004 BMC Software; Hewlett-Packard Development Company, L.P.;// IBM Corp.; EMC Corporation; VERITAS Software Corporation; The Open Group.// Copyright (c) 2005 Hewlett-Packard Development Company, L.P.; IBM Corp.;// EMC Corporation; VERITAS Software Corporation; The Open Group.// Copyright (c) 2006 Hewlett-Packard Development Company, L.P.; IBM Corp.;// EMC Corporation; Symantec Corporation; The Open Group.//// Permission is hereby granted, free of charge, to any person obtaining a copy// of this software and associated documentation files (the "Software"), to// deal in the Software without restriction, including without limitation the// rights to use, copy, modify, merge, publish, distribute, sublicense, and/or// sell copies of the Software, and to permit persons to whom the Software is// furnished to do so, subject to the following conditions:// // THE ABOVE COPYRIGHT NOTICE AND THIS PERMISSION NOTICE SHALL BE INCLUDED IN// ALL COPIES OR SUBSTANTIAL PORTIONS OF THE SOFTWARE. THE SOFTWARE IS PROVIDED// "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT// LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR// PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT// HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN// ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.////==============================================================================////%/////////////////////////////////////////////////////////////////////////////#ifndef Pegasus_Qualifier_h#define Pegasus_Qualifier_h#include <Pegasus/Common/Config.h>#include <Pegasus/Common/Linkage.h>#include <Pegasus/Common/CIMName.h>#include <Pegasus/Common/CIMFlavor.h>#include <Pegasus/Common/CIMType.h>#include <Pegasus/Common/CIMValue.h>PEGASUS_NAMESPACE_BEGIN//////////////////////////////////////////////////////////////////////////////////// CIMQualifier//////////////////////////////////////////////////////////////////////////////////class CIMConstQualifier;class CIMClassRep;class Resolver;class CIMQualifierRep;/**    A CIMQualifier represents a DMTF standard CIM qualifier.    A CIMQualifier differs from a CIMQualifierDecl in that it has no scope    attribute.    <p>The CIMQualifier class uses a shared representation model, such that    multiple CIMQualifier objects may refer to the same data copy.  Assignment    and copy operators create new references to the same data, not distinct    copies.  An update to a CIMQualifier object affects all the CIMQualifier    objects that refer to the same data copy.  The data remains valid until    all the CIMQualifier objects that refer to it are destructed.  A separate    copy of the data may be created using the clone method.*/class PEGASUS_COMMON_LINKAGE CIMQualifier{public:    /**        Constructs an uninitialized CIMQualifier 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.    */    CIMQualifier();    /**        Constructs a CIMQualifier 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            CIMQualifier object.    */    CIMQualifier(const CIMQualifier& x);    /**        Constructs a CIMQualifier 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.    */    CIMQualifier(	const CIMName& name, 	const CIMValue& value, 	const CIMFlavor & flavor = CIMFlavor (CIMFlavor::NONE),	Boolean propagated = false);    /**        Destructs the CIMQualifier object.    */    ~CIMQualifier();    /**        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            CIMQualifier object.        @return A reference to this CIMQualifier object.    */    CIMQualifier& 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;    /**        Sets the qualifier name.        @param name A CIMName containing the new name of the qualifier.        @exception UninitializedObjectException If the object is not            initialized.    */    void setName(const CIMName& name);    /**        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;    /**        Sets the qualifier value.        @param name A CIMValue containing the new value of the qualifier.        @exception UninitializedObjectException If the object is not            initialized.    */    void setValue(const CIMValue& value);    /**        Adds flavors to the qualifier.        @param flavor A CIMFlavor indicating the flavors to add.        @exception UninitializedObjectException If the object is not            initialized.    */    void setFlavor(const CIMFlavor & flavor);    /**        Removes flavors from the qualifier.        @param flavor A CIMFlavor indicating the flavors to remove.        @exception UninitializedObjectException If the object is not            initialized.    */    void unsetFlavor(const CIMFlavor & flavor);    /**        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;    /**        Sets the propagated attribute.  Normally this is used by a CIM Server        when defining a qualifier in the context of a schema.        @param propagated A Boolean indicating whether the qualifier is            propagated.        @exception UninitializedObjectException If the object is not            initialized.    */    void setPropagated(Boolean propagated);    /**        Determines whether the object has been initialized.        @return True if the object has not been initialized, false otherwise.    */

⌨️ 快捷键说明

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