[Bug 359] New: Different header for reporting

For more information about this bug, visit
A new bug was added:
Summary: Different header for reporting
Product: RTT
Version: rtt-trunk
Platform: All
OS/Version: All
Status: NEW
Severity: project
Priority: P2
Component: Real-Time Toolkit (RTT)
AssignedTo: orocos-dev [..] ...
ReportedBy: ruben [dot] smits [..] ...

Hi,

I would like to make a different header for the reporting, so i can
automatically load the results in kst. What are the most important files i have
to look at?

Ruben

[Bug 359] Different header for reporting

For more information about this bug, visit

peter [dot] soetens [..] ... changed:

What |Removed |Added
---------------------------------------------------------------------------
Resolution| |INVALID
Status|NEW |RESOLVED

------- Comment #2 from peter [dot] soetens [..] ... 2007-04-25 15:39

Don't use bug reports to ask questions.

[Bug 359] Different header for reporting

For more information about this bug, visit
A comment was added:
------- Comment #1 from peter [dot] soetens [..] ... 2007-03-23 14:17

(In reply to comment #0)
> Hi,
>
> I would like to make a different header for the reporting, so i can
> automatically load the results in kst. What are the most important files i have
> to look at?

As you probably found out, You need a 'Marshaller'. It converts a 'DataSource'
to a stream (std::ostream or similar). If you copy/paste some files of
src/marsh, you can adapt them to your needs. Next you need to create a new
component, for example, by modifying a copy of ConsoleReporting, which creates
the marshaller object. There is a marshaller object required for the header and
body. If you only want to change the header, only make a copy of
'TableHeaderMarshaller.hpp' and start from that.

The current marshaller classes use a template parameter for std::ostream. This
is not required, and only for historical reasons which no longer apply.

Peter