14 using boost::shared_ptr;
18 KTLOGGER(datalog,
"KTPrintDataStructure");
25 fDataSignal(
"data", this),
28 fDataAndCutStructSlot(
"print-data-and-cuts", this, &
KTPrintDataStructure::PrintDataAndCutStructure)
72 std::stringstream printbuf;
74 printbuf <<
"\nData Structure:\n";
75 printbuf <<
"\t- " << dataPtr->Name() <<
'\n';
76 KTDEBUG(datalog,
"Found data type " << dataPtr->Name());
78 while (nextData != NULL)
80 printbuf <<
"\t- " << nextData->Name() <<
'\n';
81 KTDEBUG(datalog,
"Found data type " << nextData->Name());
82 nextData = nextData->Next();
85 KTINFO(datalog, printbuf.str());
92 std::stringstream printbuf;
95 printbuf <<
"\n" << cutStatus;
97 const KTCutResult* cutResult = cutStatus.CutResults();
98 printbuf <<
"Cut Structure:\n";
99 while (cutResult != NULL)
101 printbuf <<
"\t- " << cutResult->
Name() <<
" -- is cut: " << cutResult->GetState() <<
'\n';
102 KTDEBUG(datalog,
"Found cut type " << cutResult->
Name());
103 cutResult = cutResult->
Next();
106 KTINFO(datalog, printbuf.str());
bool Configure(const scarab::param_node &node)
Should perform parameter store and command-line configurations.
KTExtensibleStructCore * Next() const
Returns the pointer to the next field.
virtual ~KTPrintDataStructure()
Provides easy access to cut information.
KTPrintDataStructure(const std::string &name="print-data-structure")
KT_REGISTER_PROCESSOR(KTDataQueueProcessor, "data-queue")
void PrintCutStructure(KTDataPtr dataPtr)
KTLOGGER(applog, "KTApplication")
void DoPrintCutStructure(KTDataPtr dataPtr)
void DoPrintDataStructure(KTDataPtr dataPtr)
boost::shared_ptr< KTData > KTDataPtr
void PrintDataAndCutStructure(KTDataPtr dataPtr)
Contains KTPrintDataStructure.
Contains the logger class and macros, based on Kasper's KLogger class.
void PrintDataStructure(KTDataPtr dataPtr)
Prints the structure of data objects.
virtual const std::string & Name() const =0