OpenDaVINCI  4.15.3
odcontext::base::RecordingContainer Class Reference

#include <RecordingContainer.h>

Inheritance diagram for odcontext::base::RecordingContainer:
Inheritance graph

Public Member Functions

 RecordingContainer (const float &freq, const string &urlFileName, const uint32_t &memorySegmentSize, const uint32_t &numberOfSegments)
 
virtual ~RecordingContainer ()
 
virtual void setup ()
 
virtual void tearDown ()
 
virtual void report (const odcore::wrapper::Time &t)
 
virtual void nextContainer (odcore::data::Container &c)
 
odcore::base::FIFOQueuegetFIFO ()
 
odcore::base::KeyValueDataStoregetKeyValueDataStore ()
 
bool needsExecution (const odcore::wrapper::Time &t) const
 
virtual bool hasFinished () const
 

Detailed Description

This class can be used to record all sent Containers.

Constructor & Destructor Documentation

odcontext::base::RecordingContainer::RecordingContainer ( const float &  freq,
const string &  urlFileName,
const uint32_t &  memorySegmentSize,
const uint32_t &  numberOfSegments 
)

Constructor.

Parameters
freqFrequency to be used.
urlURL of the file to be used for storing containers.
odcontext::base::RecordingContainer::~RecordingContainer ( )
virtual

Member Function Documentation

odcore::base::FIFOQueue & odcontext::base::SystemContextComponent::getFIFO ( )
inherited

This method returns the FIFO containing received containers.

Returns
FIFO containing received containers.

Referenced by report(), and odcontext::base::PlaybackContainer::step().

odcore::base::KeyValueDataStore & odcontext::base::SystemContextComponent::getKeyValueDataStore ( )
inherited

This method returns the key/value-data store.

Returns
Key/value-datastore.
bool odcontext::base::Runner::hasFinished ( ) const
virtualinherited

This method should be overridden in subclasses to add an additional condition to the time needsExecution indicating whether an application has finished. This implementation simply returns always true.

Returns
true.

Reimplemented in odcontext::base::TimeTriggeredConferenceClientModuleRunner.

Referenced by odcontext::base::Runner::needsExecution().

void odcontext::base::SystemContextComponent::nextContainer ( odcore::data::Container c)
virtualinherited

This method is called whenever a new container occurs.

Parameters
cContainer that has been occured.

Implements odcore::io::conference::ContainerListener.

References odcore::base::FIFOQueue::add(), and odcore::data::Container::getDataType().

void odcontext::base::RecordingContainer::report ( const odcore::wrapper::Time t)
virtual

This method is called whenever any application component was activated to validate the new situation.

Parameters
tCurrent system time.

Implements odcontext::base::SystemReportingComponent.

References odcore::base::FIFOQueue::clear(), odcontext::base::SystemContextComponent::getFIFO(), odcore::base::FIFOQueue::getSize(), odcore::base::FIFOQueue::leave(), and odcore::data::Container::toString().

void odcontext::base::RecordingContainer::setup ( )
virtual

This method is called to setup this component.

Implements odcontext::base::SystemContextComponent.

void odcontext::base::RecordingContainer::tearDown ( )
virtual

This method is called to tear down this component.

Implements odcontext::base::SystemContextComponent.