LivestatusFilterMatch Class Reference

An match-node in the livestatus filter node tree. More...

Inheritance diagram for LivestatusFilterMatch:
LivestatusFilterBase

Public Member Functions

 get_hash ()
 generate unqiue hash for the current filter
 get_field ()
 Get the name of the field to match.
 get_op ()
 Get the operator to filter on.
 get_value ()
 Get the value to match.
 __construct ($field, $value, $op="=")
 Generate a match-filter.
 prefix ($prefix)
 Returns a copy of the filter, but with a variables prefixed.
 visit (LivestatusFilterVisitor $visitor, $data)
 Visit the filter node with a visitor, to generate a filter query.
 negate ()
 Negate the current filter.
 equals ($filter)
 Test if two filters are equal.

Detailed Description

An match-node in the livestatus filter node tree.


Member Function Documentation

LivestatusFilterMatch::equals ( filter  ) 

Test if two filters are equal.

This is used for simplifications, return true if sure about equality. Return false if not equal, or unsure.

Should only give false negatives.

Reimplemented from LivestatusFilterBase.

LivestatusFilterMatch::negate (  ) 

Negate the current filter.

FIXME: This NEEDS to be type aware.

simplify "not (list >= "kaka")" would be simplified to list < "kaka". >= in this case is a "contains"-operator


The documentation for this class was generated from the following file:
 All Data Structures Functions Variables

Generated on 19 Dec 2018 for ninja by  doxygen 1.6.1