Lumiera  0.pre.03
»edit your freedom«
lib::test::anonymous_namespace{event-log.cpp} Namespace Reference

Typedefs

using ArgSeq = lib::diff::RecordSetup< string >::Storage
 
using Filter = decltype(buildSearchFilter(std::declval< Log const & >()))
 
using RExSeq = std::vector< std::regex >
 

Enumerations

enum  Direction {
  FORWARD,
  BACKWARD,
  CURRENT
}
 

Functions

template<typename COND >
void attachNextSerchStep (Filter &solution, COND &&searchCond, Direction direction)
 
auto ensureAttribute (string key)
 refinement filter to ensure a specific attribute is present on the log entry
 
auto find (string match)
 
auto findCall (string match)
 
auto findEvent (string match)
 
auto findEvent (string classifier, string match)
 
auto findRegExp (string regExpDef)
 
auto matchArgsRegExp (RExSeq &&regExpSeq)
 refinement filter, to cover all arguments by regular expression(s) More...
 
auto matchArgument (size_t idx, string match)
 refinement filter to match a specific positional argument
 
auto matchArguments (ArgSeq &&argSeq)
 this filter functor is for refinement of an existing filter More...
 
auto matchAttribute (string key, string valueMatch)
 refinement filter to ensure a specific attribute is present on the log entry
 
auto matchType (string typeID)
 refinement filter to match on the given typeID
 
template<typename COND >
void refineSerach (Filter &solution, COND &&additionalCond)
 

Function Documentation

◆ matchArguments()

auto lib::test::anonymous_namespace{event-log.cpp}::matchArguments ( ArgSeq &&  argSeq)
inline

this filter functor is for refinement of an existing filter

Parameters
argSeqperform a substring match consecutively for each of the log entry's arguments
Note
the match also fails, when the given log entry has more or less arguments, than the number of given match expressions in argSeq
See also
ExtensibleFilterIter::andFilter()

Definition at line 138 of file event-log.cpp.

◆ matchArgsRegExp()

auto lib::test::anonymous_namespace{event-log.cpp}::matchArgsRegExp ( RExSeq &&  regExpSeq)
inline

refinement filter, to cover all arguments by regular expression(s)

Parameters
regExpSeqseveral regular expressions, which, when applied consecutively until exhaustion, must cover and verify all arguments of the log entry.
Remarks
to explain, we "consume" arguments with a regExp from the list, and when this one doesn't match anymore, we try the next one. When we'ver tried all regular expressions, we must have also consumed all arguments, otherwise we fail.

Definition at line 175 of file event-log.cpp.