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

📄 cimsubcommand.h

📁 Pegasus is an open-source implementationof the DMTF CIM and WBEM standards. It is designed to be por
💻 H
📖 第 1 页 / 共 3 页
字号:
        @param  maxColumnWidth    The array of column widths. This is the fixed                                  width for each column. This is used to lineup                                  all the data in each column.        @param  listOutputTable   The array of output strings to print. It is                                  an array of columns. The first element in                                  each column is the column title.        @param  queryLangsFound   The array of query language strings for each                                  filter found        @param  outPrintWriter    The stream to which command output is                                  written.        @param  errPrintWriter    The stream to which command errors are                                  written.    */    void _getFilterList (        const String& filterName,        const CIMNamespaceName& filterNamespace,        const Boolean verbose,        Array <Uint32>& maxColumnWidth,        Array <ListColumnEntry>& listOutputTable,        Array <String>& queryLangsFound,        PEGASUS_STD(ostream)& outPrintWriter,        PEGASUS_STD(ostream)& errPrintWriter);    /**        List matching handlers in the specified namespace(s)        @param  handlerName       The handler name to find        @param  namespaceNames    The namespaces to search        @param  handlerCreationClass  The handler creation class to match        @param  verbose           A true value denotes a verbose listing                                  A false value denotes a columnar list        @param  outPrintWriter    The stream to which command output is                                  written.        @param  errPrintWriter    The stream to which command errors are                                  written.    */    void _listHandlers (        const String& handlerName,        const Array<CIMNamespaceName>& namespaceNames,        const String& handlerCreationClass,        const Boolean verbose,        PEGASUS_STD(ostream)& outPrintWriter,        PEGASUS_STD(ostream)& errPrintWriter);    /**        get a list of all handlers in a specified namespace        @param  handlerName       The handler name to find        @param  handlerNamespace  The handler namespace to search        @param  handlerCreationClass  The handler creation class to match        @param  verbose           A true value denotes a verbose listing                                  A false value denotes a columnar list        @param  instancesFound    The array of matching CIMInstances        @param  handlerTypesFound The type of handler found. This is an                                  enumerated type of the handler                                  creation class.        @param  maxColumnWidth    The array of column widths. This is the fixed                                  width for each column. This is used to lineup                                  all the data in each column.        @param  listOutputTable   The array of output strings to print. It is                                  an array of columns. The first element in                                  each column is the column title.        @param  outPrintWriter    The stream to which command output is                                  written.        @param  errPrintWriter    The stream to which command errors are                                  written.     */    void _getHandlerList (        const String& handlerName,        const CIMNamespaceName& handlerNamespace,        const String& handlerCreationClass,        const Boolean verbose,        Array<CIMInstance>& instancesFound,        Array<Uint32>& handlerTypesFound,        Array <Uint32>& maxColumnWidth,        Array <ListColumnEntry>& listOutputTable,        PEGASUS_STD(ostream)& outPrintWriter,        PEGASUS_STD(ostream)& errPrintWriter        );    /**        Get the name from a CIMObjectPath in string form        @param r     The string of key to scan        @return      The string value of the name property    */    String _getNameInKey (       const CIMObjectPath& r);    /**        Find all namespaces in repository        @param  namespaceNames The array of all namespaces found    */    void _getAllNamespaces (        Array<CIMNamespaceName>& namespaceNames);    /**        Change the subscription state        @param  subscriptionNS          The subscription's namespace        @param  targetPath              The path of the subscription to modify        @param  newState                The new state for the subscription        @param  outPrintWriter          The stream to which command errors are                                        written.    */    void _modifySubscriptionState (        const CIMNamespaceName& subscriptionNS,        const CIMObjectPath& targetPath,        const Uint16 newState,        PEGASUS_STD(ostream)& outPrintWriter);    /**        Find a matching subscription        @param  subscriptionNamespace   The subscription namespace to search        @param  filterName              The name of the filter to match        @param  filterNamespace         The namespace of the filter to match        @param  handlerName             The handler name to match        @param  handlerNamespace        The handler namespace to match        @param  handlerCC               The creation class of the handler to                                        match        @param  subscriptionFound       The OjectPath of the subscription found        @return true    if the subscription instance was found                false   if the subscription instance was not found    */    Boolean _findSubscription (        const CIMNamespaceName& subscriptionNamespace,        const String& filterName,        const CIMNamespaceName& filterNamespace,        const String& handlerName,        const CIMNamespaceName& handlerNamespace,        const String& handlerCC,        CIMObjectPath& subscriptionFound);    /**        Find a subscription and modify it's state        @param  newState          The new state for the subscription        @param  subscriptionNamespace The subscription namespace to search        @param  filterName        The name of the filter        @param  filterNamespace   The namespace of the filter        @param  handlerName       The handler name to find        @param  handlerNamespace  The handler namespace to search        @param  handlerCreationClass The creation class of the handler        @param  outPrintWriter    The stream to which command errors are                                  written.        @return RC_SUCCESS          if the subscription instance was found                RC_OBJECT_NOT_FOUND if the subscription instance was not found    */    Uint32 _findAndModifyState (        const Uint16 newState,        const CIMNamespaceName& subscriptionNamespace,         const String& filterName,        const CIMNamespaceName& filterNamespace,        const String& handlerName,        const CIMNamespaceName& handlerNamespace,        const String& handlerCreationClass,        PEGASUS_STD(ostream)& outPrintWriter);    /**        find a filter        @param  filterName        The name of the filter        @param  filterNamespace   The namespace of the filter        @param  errPrintWriter    The stream to which command errors are                                  written.        @param  filterpath        The reference of the filter found        @return true    if the subscription instance was found                false   if the subscription instance was not found     */    Boolean _findFilter (        const String& filterName,        const CIMNamespaceName& filterNamespace,        PEGASUS_STD(ostream)& errPrintWriter,        CIMObjectPath& filterPath);    /**        find matching handler        @param  handlerName           The handler name to find        @param  handlerNamespace      The handler namespace to search        @param  handlerCreationClass  The handler creation class to match        @param  errPrintWriter        The stream to which command errors are                                      written.        @param  handlerPath           The handler reference found        @return true    if the handler instance was found                false   if the handler instance was not found    */    Boolean _findHandler (        const String& handlerName,        const CIMNamespaceName& handlerNamespace,        const String& handlerCreationClass,        PEGASUS_STD(ostream)& errPrintWriter,        CIMObjectPath& handlerPath);    /**        check a subscription for a filter match        @param  subPath          The ObjectPath of the subscription to check        @param  subscriptionNS   The namespace of the subscription        @param  filterName       The name of the filter        @param  filterNamespace  The namespace of the filter        @param  filterNS         The namespace of the filter reference        @param  filterRef        The path for the filter reference        @return true    if the subscription filter ref matches the filter                        criteria                false   if the subscription filter ref does not match     */    Boolean _filterMatches (        const CIMObjectPath& subPath,        const CIMNamespaceName& subscriptionNS,        const String& filterName,        const CIMNamespaceName& filterNamespace,        CIMNamespaceName& filterNS,        CIMObjectPath& filterRef);    /**        check a subscription for a handler match        @param  subPath          The ObjectPath of the subscription to check        @param  subscriptionNS   The namespace of the subscription        @param  handlerName      The name of the handler        @param  handlerNamespace The namespace of the handler        @param  handlerCreationClass The creation class of the handler        @param  handlerNS        The namespace of the handler reference        @param  handlerRef       The path for the handler reference        @return true    if the subscription handler ref matches the handler                        criteria                false   if the subscription handler ref does not match     */    Boolean _handlerMatches (        const CIMObjectPath& subPath,        const CIMNamespaceName& subscriptionNS,        const String& handlerName,        const CIMNamespaceName& handlerNamespace,        const String& handlerCreationClass,        CIMNamespaceName& handlerNS,        CIMObjectPath& handlerRef);    /**        Get the email properties from a handler instance        @param  handlerInstance    The handler instance to query        @param  ccString           The value of the MailCc property        @param  toString           The value of the MailTo property        @param  subjectString      The value of the MailSubject property    */    void _getEmailInfo (        const CIMInstance& handlerInstance,        String& ccString,        String& toString,        String& subjectString);    /**        Get the persistence value from the handler instance        @param  handlerInstance    The handler instance to query        @return the text string equivalent of the persistence type

⌨️ 快捷键说明

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