15 using namespace Nymph;
24 KTINFO(testlog,
"Initial cut state: " << cutStatus.IsCut());
28 KTINFO(testlog,
"Applying awesome cut");
30 applyCut.ApplyCut(dataPtr);
32 KTINFO(testlog,
"Cuts present: " << cutStatus.CutResultsPresent())
33 KTINFO(testlog,
"Has cut result \"awesome-cut\"? " << cutStatus.HasCutResult(
"awesome-cut"));
35 KTINFO(testlog,
"Cut state of \"awesome-cut\" is: " << cutStatus.GetCutState(
"awesome-cut"));
37 KTINFO(testlog,
"Is cut (all results)? " << cutStatus.IsCut());
38 KTINFO(testlog,
"Is cut (with mask \"0\")? " << cutStatus.IsCut(
"0"));
40 KTINFO(testlog,
"Applying not-awesome cut");
41 applyCut.SelectCut(
"not-awesome-cut");
42 applyCut.ApplyCut(dataPtr);
44 KTINFO(testlog,
"Cuts present: " << cutStatus.CutResultsPresent())
45 KTINFO(testlog,
"Has cut result \"awesome-cut\"? " << cutStatus.HasCutResult(
"awesome-cut"));
47 KTINFO(testlog,
"Cut state of \"awesome-cut\" is: " << cutStatus.GetCutState(
"awesome-cut"));
49 KTINFO(testlog,
"Has cut result \"not-awesome-cut\"? " << cutStatus.HasCutResult(
"not-awesome-cut"));
51 KTINFO(testlog,
"Cut state of \"not-awesome-cut\" is: " << cutStatus.GetCutState(
"not-awesome-cut"));
53 KTINFO(testlog,
"Is cut (all results)? " << cutStatus.IsCut());
54 KTINFO(testlog,
"Is cut with mask \"00\"? " << cutStatus.IsCut(
"00"));
55 KTINFO(testlog,
"Is cut with mask \"01\"? " << cutStatus.IsCut(
"01"));
56 KTINFO(testlog,
"Is cut with mask \"10\"? " << cutStatus.IsCut(
"10"));
57 KTINFO(testlog,
"Is cut with mask \"11\"? " << cutStatus.IsCut(
"11"));
58 KTINFO(testlog,
"Is cut with mask 0? " << cutStatus.IsCut(0));
59 KTINFO(testlog,
"Is cut with mask 1? " << cutStatus.IsCut(1));
60 KTINFO(testlog,
"Is cut with mask 2? " << cutStatus.IsCut(2));
61 KTINFO(testlog,
"Is cut with mask 3? " << cutStatus.IsCut(3));
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...
KTLOGGER(testlog, "TestApplyCut")
boost::shared_ptr< KTData > KTDataPtr
Contains the logger class and macros, based on Kasper's KLogger class.