Scopira
20080306
|
#include <agent.h>
Public Member Functions | |
uuid_query (void) | |
uuid_query (scopira::tool::uuid simplecase) | |
bool | query (scopira::tool::uuid testid) const |
uuid_query & | match_any (void) |
uuid_query & | match_one (scopira::tool::uuid id) |
uuid_query & | match_group (scopira::basekit::const_nslice< scopira::tool::uuid > ids) |
uuid_query & | op_and (void) |
uuid_query & | op_or (void) |
uuid_query & | op_xor (void) |
uuid_query & | op_not (void) |
A potentially complex query for UUIDs. This is used for specifying which IDs a task would like to listen * for.
Basically, if you build this class with the (void) ctor, use the various POSTFIX operations to build your query. Then engine will then evaluate your query against all the tested nodes.
TODO switch this to short-circut infix or prefix?
scopira::agent::uuid_query::uuid_query | ( | void | ) |
Complex case constructor. You build your query then by using the various operators on the this object, each modifies the this object aswell as returning a reference to it.
|
explicit |
Simple expression contructor. simplecase can either be the UUID you want to specifically wait for, or zero of ANY one. Yes, this is implicit.
uuid_query& scopira::agent::uuid_query::match_any | ( | void | ) |
Returns a query that'll match anything.
uuid_query& scopira::agent::uuid_query::match_group | ( | scopira::basekit::const_nslice< scopira::tool::uuid > | ids | ) |
Return a query that will match any id in the given group
ids | the array of ids that constitute the group |
uuid_query& scopira::agent::uuid_query::match_one | ( | scopira::tool::uuid | id | ) |
Returns a query that will only match the given id
id | the id to match against |
uuid_query& scopira::agent::uuid_query::op_and | ( | void | ) |
Returns the AND operator
uuid_query& scopira::agent::uuid_query::op_not | ( | void | ) |
Returns the NOT operator
uuid_query& scopira::agent::uuid_query::op_or | ( | void | ) |
Returns the OR operator
uuid_query& scopira::agent::uuid_query::op_xor | ( | void | ) |
Returns the XOR operator
bool scopira::agent::uuid_query::query | ( | scopira::tool::uuid | testid | ) | const |
Evalute this expression against a uuid and see if it matches.