16 using namespace Nymph;
25 KTINFO(testlog,
"Initial cut state: " << cutStatus.IsCut());
29 KTINFO(testlog,
"Applying awesome cut");
31 applyCut.ApplyCut(dataPtr);
33 KTINFO(testlog,
"Cuts present: " << cutStatus.CutResultsPresent())
34 KTINFO(testlog,
"Has cut result \"awesome-cut\"? " << cutStatus.HasCutResult(
"awesome-cut"));
36 KTINFO(testlog,
"Cut state of \"awesome-cut\" is: " << cutStatus.GetCutState(
"awesome-cut"));
38 KTINFO(testlog,
"Is cut (all results)? " << cutStatus.IsCut());
39 KTINFO(testlog,
"Is cut (with mask \"0\")? " << cutStatus.IsCut(
"0"));
41 KTINFO(testlog,
"Applying not-awesome cut");
42 applyCut.SelectCut(
"not-awesome-cut");
43 applyCut.ApplyCut(dataPtr);
45 KTINFO(testlog,
"Cuts present: " << cutStatus.CutResultsPresent())
46 KTINFO(testlog,
"Has cut result \"awesome-cut\"? " << cutStatus.HasCutResult(
"awesome-cut"));
48 KTINFO(testlog,
"Cut state of \"awesome-cut\" is: " << cutStatus.GetCutState(
"awesome-cut"));
50 KTINFO(testlog,
"Has cut result \"not-awesome-cut\"? " << cutStatus.HasCutResult(
"not-awesome-cut"));
52 KTINFO(testlog,
"Cut state of \"not-awesome-cut\" is: " << cutStatus.GetCutState(
"not-awesome-cut"));
58 KTINFO(testlog,
"Filtering with all cuts");
60 KTINFO(testlog,
"Is cut (all results)? " << cutFilter.
Filter(data));
62 KTINFO(testlog,
"Testing filter set with a string");
64 KTINFO(testlog,
"Is cut with mask \"00\"? " << cutFilter.
Filter(data));
66 KTINFO(testlog,
"Is cut with mask \"01\"? " << cutFilter.
Filter(data));
68 KTINFO(testlog,
"Is cut with mask \"10\"? " << cutFilter.
Filter(data));
70 KTINFO(testlog,
"Is cut with mask \"11\"? " << cutFilter.
Filter(data));
72 KTINFO(testlog,
"Testing filter set with an integer");
74 KTINFO(testlog,
"Is cut with mask 0? " << cutFilter.
Filter(data));
76 KTINFO(testlog,
"Is cut with mask 1? " << cutFilter.
Filter(data));
78 KTINFO(testlog,
"Is cut with mask 2? " << cutFilter.
Filter(data));
80 KTINFO(testlog,
"Is cut with mask 3? " << cutFilter.
Filter(data));
void SetCutMask(KTCutStatus::bitset_type mask)
KTLOGGER(testlog, "TestCutFilter")
void SetCutMaskAll()
Set the cut mask to use all cuts.
Provides easy access to cut information.
XStructType & Of(void)
Returns a reference to the object of type XStructType; creates that object if it doesn't exist...
Filters data based on cuts already applied and a filter mask.
boost::shared_ptr< KTData > KTDataPtr
bool Filter(KTData &data)
Contains the logger class and macros, based on Kasper's KLogger class.