class TDTFMediaReader

TDTF Media Reader. More...

Full nameCoral::TDTFMediaReader
Definition#include <tdtfmediareader.h>
InheritsCoral::TDTFReader
List of all Methods
Annotated List
Files
Globals
Hierarchy
Index

Public Methods


Detailed Description

This class is a media reader for TDTF trace files.

 TDTFMediaReader ()

Constructor.

bool  open (const char* name, const bool readWrite = false, const bool ruRequired = false)

Open media.

Parameters:
nameName of media, e.g. a file name.
readWritetrue to open file in read/write mode; false for read-only.
ruRequiredtrue, if file has to contain resource/utilization list for successful opening; false otherwise.

Returns: true, if TDTFMediaReader is ready for reading; false otherwise.

Reimplemented from TDTFReader.

void  close ()

Close media, if opened.

Reimplemented from TDTFReader.

inline bool  ready ()

[const]

Check, if TDTFMediaReader is ready for reading.

Returns: true, if TDTFMediaReader is ready; false otherwise.

void  getMediaInfo (MediaInfo& mediaInfo)

[const]

Get MediaInfo.

Parameters:
mediaInfoReference to store media info.

inline MediaError  getErrorCode ()

[const]

Get error code.

Returns: Error code.

inline card64  getPosition ()

[const]

Get current position.

Returns: Position in nanoseconds.

inline card64  getMaxPosition ()

[const]

Get maximum position.

Returns: maximum position in nanoseconds.

inline void  setPosition (const card64 position)

Get position.

Parameters:
positionPosition in nanoseconds.

inline double  getFrameRate ()

[const]

Get frame rate.

Returns: Frame rate.

inline double  setFrameRate (const double frameRate)

Set frame rate.

Parameters:
frameRateFrame rate.

Returns: Frame rate set.

card64  checkInterval ()

Check, if new interval is reached.

?????????????????????????????????

Returns: true, if new interval is reached.

cardinal  getNextBlock (const cardinal layers, cardinal* frameIDArray, cardinal* frameSizeArray)

Read next frame trace block.

Parameters:
layersMaximum number of layers to store in arrays.
frameIDArrayPointer to array to store frame-IDs.
frameSizeArrayPointer to array to store frame sizes.
newIntervalReference to boolean to store true, if new interval is reached; false otherwise.

Returns: cardinal Number of layers read.