![]() |
MAK Data Logger API Documentation for HLA
|
/brief Base class for defining command operations that run in a separate thread. More...
Inheritance diagram for MAKLogger::DtLgrCommandThread:
Collaboration diagram for MAKLogger::DtLgrCommandThread:Public Member Functions | |
| DtLgrCommandThread (DtLgrCommandHandler *commandHandler, const DtString &nameOfOperation, int frameRateValue=-1) | |
| CTOR. More... | |
| virtual | ~DtLgrCommandThread () |
| DTOR. More... | |
| virtual void | run () |
| Run the command operation and generate the FinishCommandThread command on completion. More... | |
| virtual void | commandOperation ()=0 |
| The actual operation to run. More... | |
| virtual const DtString & | operationName () const |
| Return the operation name. More... | |
| virtual double | timeSlice () const |
| Get the time slice in seconds = 1/frameRate. More... | |
| virtual DtTime | startTime () |
| Using the clock, set time for the start of a processing cycle Return the start time. More... | |
| virtual DtTime | sleepRemainingTime (DtTime startTime=-1.0) |
| Given start time, check and sleep for time remaining in time slice Uses myStartTime if time is negative Return the total time taken since start through end of sleep. More... | |
| virtual int | frameRate () const |
| Get/Set frame rate (operation cycles per second) More... | |
| virtual void | setFrameRate (int rate) |
| Get/Set frame rate (operation cycles per second) More... | |
Protected Attributes | |
| DtCommandDispatcherSP | myDispatcher |
| Used to dispatch the FinishCommandThread and any others that are needed. More... | |
| DtString | myOperationName |
| Name of this operation. More... | |
| DtClock | myClock |
| Timer to help control processing. More... | |
| DtTime | myStartTime |
| Holds the start time for a processing cycle. More... | |
| double | myTimeSlice |
| 1/frameRate provides time slice available for each processing cycle. More... | |
/brief Base class for defining command operations that run in a separate thread.
The operation is passed to the driver spawnThread method to start the thread. Upon completion of the operation, the FinishCommandThread command is generated to signal to the driver to clean up the thread.
| MAKLogger::DtLgrCommandThread::DtLgrCommandThread | ( | DtLgrCommandHandler * | commandHandler, |
| const DtString & | nameOfOperation, | ||
| int | frameRateValue = -1 |
||
| ) |
CTOR.
Optionally indicate the minimum frame rate per second. Based on this rate, the operation may sleep if processing a cycle takes less than a time slice of the frame rate. Value <= 0 indicates that sleep should not be used to govern processing.
|
virtual |
DTOR.
|
pure virtual |
The actual operation to run.
Implemented in MAKLogger::DtLgrExportOperation, and MAKLogger::DtLgrRecordMediaStream.
|
virtual |
Get/Set frame rate (operation cycles per second)
|
virtual |
Return the operation name.
|
virtual |
Run the command operation and generate the FinishCommandThread command on completion.
|
virtual |
Get/Set frame rate (operation cycles per second)
|
virtual |
Given start time, check and sleep for time remaining in time slice Uses myStartTime if time is negative Return the total time taken since start through end of sleep.
|
virtual |
Using the clock, set time for the start of a processing cycle Return the start time.
|
virtual |
Get the time slice in seconds = 1/frameRate.
|
protected |
Timer to help control processing.
|
protected |
Used to dispatch the FinishCommandThread and any others that are needed.
|
protected |
Name of this operation.
|
protected |
Holds the start time for a processing cycle.
|
protected |
1/frameRate provides time slice available for each processing cycle.
Operation should sleep for any remaining time not used. Negative value indicates that sleep should not be used to govern processing.