From: Dominic L. <ma...@us...> - 2005-06-08 20:13:31
|
Update of /cvsroot/robotflow/RobotFlow/MARIE/src In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv8874 Modified Files: newMarieDataRaw.cpp Log Message: added prettyPrint Index: newMarieDataRaw.cpp =================================================================== RCS file: /cvsroot/robotflow/RobotFlow/MARIE/src/newMarieDataRaw.cpp,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** newMarieDataRaw.cpp 29 Mar 2005 15:20:43 -0000 1.3 --- newMarieDataRaw.cpp 8 Jun 2005 20:13:14 -0000 1.4 *************** *** 55,58 **** --- 55,63 ---- * @output_type MarieDataRaw * + * @parameter_name PRETTY_PRINT + * @parameter_type bool + * @parameter_description Pretty print variables (remove FD tags) + * @parameter_value false + * END*/ *************** *** 71,74 **** --- 76,82 ---- int m_rawMarieOutID; + //parameters + bool m_prettyPrint; + public: *************** *** 83,86 **** --- 91,97 ---- //outputs m_rawMarieOutID = addOutput("DATA_RAW"); + + //parameters + m_prettyPrint = dereference_cast<bool>(parameters.get("PRETTY_PRINT")); } *************** *** 97,101 **** //printOn on the stream ! tempStr << inputObject; dataRaw->setRawData(tempStr.str()); dataRaw->setCustomID(*customID); --- 108,121 ---- //printOn on the stream ! ! if (!m_prettyPrint) ! { ! tempStr << inputObject; ! } ! else ! { ! inputObject->prettyPrint(tempStr); ! } ! dataRaw->setRawData(tempStr.str()); dataRaw->setCustomID(*customID); |