This documentation supports the 9.1 to 9.1 Service Pack 3 version and its patches of BMC Atrium Core. The documentation for version 9.1.04 and its patches is available here.

To view the latest version, select the version from the Product version menu.

CMDBQueryQualifierStruct structure

The CMDBQueryQualifierStruct structure holds the qualification for the query. CIs and relationships that the query returns depend on the qualification specified in this structure. This is a top-level structure that holds the query qualifications.


typedef struct CMDBQueryQualifierStruct
{
   CMDB_QUERY_QUAL_OP_TYPE operation;
   union
   {
      CMDBQueryQualifierAndOrStruct andor;
      struct CMDBQueryQualifierStruct *notQual;
      CMDBQueryQualifierSimpleOpStruct *simpleOp;
      CMDBQueryQualifierSetOpStruct *setOp;
   } u;
} CMDBQueryQualifierStruct;



The CMDBQueryQualifierStruct structure consists of the following elements:

operation

Specifies the type of logical operation to perform in the query. Depending on the option that is set for operation, specify the value for any one of the other members in the structure.

  • 0 -- No logical operation to perform in the query (CMDB_QUERY_QUAL_OP_NONE )
  • 1 -- The logical operation to perform in the query is AND (CMDB_QUERY_QUAL_OP_AND ).
  • 2 -- The logical operation to perform in the query is OR (CMDB_QUERY_QUAL_OP_OR ).
  • 3 -- The logical operation to perform in the query is NOT, for example, "!= " (CMDB_QUERY_QUAL_OP_NOT ).
  • 4 -- The logical operation to perform in the query is SIMPLE (CMDB_QUERY_QUAL_OP_SIMPLE ).
  • 5 -- The logical operation to perform in the query is SET (CMDB_QUERY_QUAL_OP_SET ).

andor

A CMDBQueryQualifierAndOrStruct structure that specifies the left and right operand in a AND or OR logical operation if operation is set to either CMDB_QUERY_QUAL_OP_AND or CMDB_QUERY_QUAL_OP_OR.

notQual

A CMDBQueryQualifierStruct structure that specifies the != condition for the logical operation if operation is set to CMDB_QUERY_QUAL_OP_NOT.

simpleOp

A CMDBQueryQualifierSimpleOpStruct structure that specifies the simple logical operation to perform, for example,=, <, or >.

setOp

A CMDBQueryQualifierSetOpStruct structure that specifies the IN, or NOT IN operation to perform, for example, Model NOT IN "Microsoft Windows XP", "Microsoft Windows 2003", "Microsoft Windows 2000".

Was this page helpful? Yes No Submitting... Thank you

Comments