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.

CMDBQueryArithOpStruct structure

The CMDBQueryArithOpStruct structure is used to specify the arithmetic operation to perform in the query qualification. This structure also holds the left and right operands to use in the qualification.


typedef struct CMDBQueryArithOpStruct
{
    CMDB_QUERY_QUAL_ARITH_OP_TYPE operation;
    struct CMDBQueryQualifierValueStruct *operandLeft;
    struct CMDBQueryQualifierValueStruct *operandRight;
} CMDBQueryArithOpStruct;



The CMDBQueryArithOpStruct structure consists of the following elements:

operation

Specifies the arithmetic operation to perform in the query.

  • 1 -- Addition (+) (CMDB_QUERY_QUAL_ARITH_OP_ADD ).
  • 2 -- Subtraction (-) (CMDB_QUERY_QUAL_ARITH_OP_SUBTRACT ).
  • 3 -- Multiplication (*) (CMDB_QUERY_QUAL_ARITH_OP_MULTIPLY ).
  • 4 -- Division (/) (CMDB_QUERY_QUAL_ARITH_OP_DIVIDE ).
  • 5 -- Modulus (%) (CMDB_QUERY_QUAL_ARITH_OP_MODULO ).
  • 6 -- Negate, for example, the value of +5 is converted to -5 (CMDB_QUERY_QUAL_ARITH_OP_NEGATE ).

operandLeft

Specifies the operand that appears to the left of the arithmetic operator. For example, for an expression of salary/100, salary is specified in operandLeft.

operandRight

Specifies the operand that appears to the right of the arithmetic operator. From the operandLeft example, 100 is specified in operandRight.

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

Comments