Skip to main content
Set of conditions used in search within the Project. See Iterator::find() #include "Query.hpp"

Public Types

Public Member Functions

Detailed Description

Set of conditions used in search within the Project. See Iterator::find() Query variables:
  • name : The project item name
  • type : The project item type (File, Folder, Link, …)
  • subclass : The item subclass
  • Metadata::* : The metadata key named *
Query operators:
  • OpEqual , OpNotEqual : Equality operator
  • OpContains : Check if the string contains the specified value
  • OpListContains : Check if the data is a CSV vector and contains the value
  • OpHasKey : Check if the key is known (Metadata::*)
A query will succeed if all key-operator-[value] tuples are true.

Member Enumeration Documentation

Operator

Constructor & Destructor Documentation

Query() [1/3]

Query() [2/3]

Constructor, simple query with unary operator.

Query() [3/3]

Constructor, simple query with binary operator.

Member Function Documentation

evaluate() [1/2]

Evaluates the query for the specified iterator. Returns true if the Query matches the iterator content.

evaluate() [2/2]

Evaluates the query for the specified metadata object Only variable names prefixed by Metadata:: will be evaluated. Returns true if the Metadata matches the iterator content.

operator+=()

Append a Query object to the current.