Recorder Service Control interface to control the Recorder.
More...
#include <recorder_intf.h>
Inherits adtf::ucom::ant::IObject.
Inherited by adtf::services::bat::IRecorder.
|
|
| ~IObject ()=default |
| | Protected destructor --> Only the final implementation can be destroyed!
|
| |
Recorder Service Control interface to control the Recorder.
This interface enables you to control an instance of Recorder Streaming Sink.
if (
IS_OK(get_recorder(pRecorder))
{
if (
IS_OK(pRecorder->Start(
"c:/temp/my_test_file.adtfdat")))
{
}
}
#define IS_OK(s)
Check if result is OK.
Definition result.h:17
Definition object_ptr.h:384
- See also
- Recorder
◆ tState
| Enumerator |
|---|
| Closed | not initialized.
|
| Idle | waiting for a trigger to start recording.
|
| Queueing | waiting for trigger, items are kept in history buffer.
|
| Recording | recording.
|
◆ GetCurrentFileName()
Information interface to get the name of the currently opened file.
- Parameters
-
| strFileName | [out] String where to return the filenames to. (comma separated list) |
- Return values
-
| ERR_NOERROR | State change succeded |
◆ GetCurrentState()
Information interface to get the current state of the Recorder.
- Return values
-
◆ GetTimeRange()
| virtual tResult adtf::services::ant::IRecorder::GetTimeRange |
( |
tTimeStamp & | tmFirstItem, |
|
|
tTimeStamp & | tmLastItem ) const |
|
pure virtual |
Information interface to get the time range of the current opened files.
- Parameters
-
| tmFirstItem | [out] (Chunk)Time of the first item |
| tmLastItem | [out] (Chunk)Time of the last item |
- Return values
-
| ERR_NOERROR | File is at least opend and information where read. |
◆ Split()
| virtual tResult adtf::services::ant::IRecorder::Split |
( |
const char * | strFileName | ) |
|
|
pure virtual |
Stops an ongoing recording and immediately starts a new one.
- Parameters
-
| [in] | strFileName | The name of the newly recorded file. Can be empty, to use a default. |
- Returns
- Standard result.
◆ Start()
| virtual tResult adtf::services::ant::IRecorder::Start |
( |
const char * | strFileName | ) |
|
|
pure virtual |
Starts a new recording.
- Parameters
-
| [in] | strFileName | The name of the recorded file. Can be empty, to use a default. |
- Returns
- Standard result.
◆ Stop()
| virtual tResult adtf::services::ant::IRecorder::Stop |
( |
const char * | strFileName | ) |
|
|
pure virtual |
Stops an ongoing recording.
- Parameters
-
| [in] | strFileName | A new name for the recorded file. The recorded file will be moved to this. Can be empty. |
- Returns
- Standard result.
The documentation for this class was generated from the following file: