OpenDaVINCI  4.16.0
odtools::recorder::RecorderDelegate Class Referenceabstract

#include <RecorderDelegate.h>

Public Member Functions

virtual ~RecorderDelegate ()
 
virtual odcore::data::Container process (odcore::data::Container &c)=0
 

Detailed Description

This interface allows other components to change the way how Containers are written to the .rec file. recorder's default behavior is to dump Containers as they come and to extract BLOB data from shared memory segments to disk in a file named .rec.mem. This behavior can be changed by registering a RecorderDelegate instance for a certain message ID. Whenever a Container with that specified message ID is encountered, the appropriate RecorderDelegate is called to process that container.

Constructor & Destructor Documentation

odtools::recorder::RecorderDelegate::~RecorderDelegate ( )
virtual

Member Function Documentation

virtual odcore::data::Container odtools::recorder::RecorderDelegate::process ( odcore::data::Container c)
pure virtual

This method stores the given container using the RecorderDelegate logic (for instance, the Container could be encoded into a different format). To indicate in the original .rec data stream that the original Container has been replaced, a placeholder Container is expected that is written to the .rec file instead of c.

Parameters
cContainer to be stored externally.
Returns
Container that is written instead of c into the .rec file.