OpenDaVINCI  4.16.0
odtools::player::PlayerDelegate Class Referenceabstract

#include <PlayerDelegate.h>

Public Member Functions

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

Detailed Description

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

Constructor & Destructor Documentation

odtools::player::PlayerDelegate::~PlayerDelegate ( )
virtual

Member Function Documentation

virtual odcore::data::Container odtools::player::PlayerDelegate::process ( odcore::data::Container c)
pure virtual

This method stores the given container using the PlayerDelegate logic (for instance, the Container needs to be restored from a different format). Thus, in the original .rec data stream might be a replacement container that needs to be restored to the original Container.

Parameters
cContainer to be restored.
Returns
Restored container.