DbCatRetention | Retention data
DbCatStateHistory | Historical state data
-Multiple categories can be combined using the `|` operator.
+Multiple categories can be combined using the `|` operator. In addition to
+the category flags listed above the `DbCatEverything` flag may be used as
+a shortcut for listing all flags.
### <a id="objecttype-idomysqlconnection"></a> IdoPgSqlConnection
DbCatRetention | Retention data
DbCatStateHistory | Historical state data
-Multiple categories can be combined using the `|` operator.
+Multiple categories can be combined using the `|` operator. In addition to
+the category flags listed above the `DbCatEverything` flag may be used as
+a shortcut for listing all flags.
### <a id="objecttype-livestatuslistener"></a> LiveStatusListener
set DbCatRetention = (1 << 12)
set DbCatStateHistory = (1 << 13)
+set DbCatEverything = (~0)
AExpression::AExpression(AOperator op, const AValue& operand1, const AValue& operand2)
: m_Operator(op), m_Operand1(operand1), m_Operand2(operand2)
{
- ASSERT(op == AEAdd || op == AESubtract || op == AEMultiply || op == AEDivide ||
+ ASSERT(op == AEAdd || op == AENegate || op == AESubtract || op == AEMultiply || op == AEDivide ||
op == AEBinaryAnd || op == AEBinaryOr || op == AEShiftLeft || op == AEShiftRight);
}
switch (m_Operator) {
case AEReturn:
return left;
+ case AENegate:
+ return ~(long)left;
case AEAdd:
if (left.GetType() == ValueString || right.GetType() == ValueString)
return (String)left + (String)right;
enum AOperator
{
AEReturn,
+ AENegate,
AEAdd,
AESubtract,
AEMultiply,
$$ = new Value(make_shared<AExpression>(AEReturn, AValue(ATVariable, $1)));
free($1);
}
+ | '~' aexpression
+ {
+ $$ = new Value(make_shared<AExpression>(AENegate, static_cast<AExpression::Ptr>(*$2)));
+ }
| aexpression '+' aexpression
{
$$ = new Value(make_shared<AExpression>(AEAdd, static_cast<AExpression::Ptr>(*$1), static_cast<AExpression::Ptr>(*$3)));