ADTFDAT File Recorder Service Control interface to control the ADTFDAT File Recorder.
More...
|
| ~IObject ()=default |
| Protected destructor --> Use implemented Destroy() instead of delete!
|
|
ADTFDAT File Recorder Service Control interface to control the ADTFDAT File Recorder.
This interface enables you to control an instance of ADTFDAT File Recorder Streaming Sink.
ucom::object_ptr<IRecorder> pRecorder;
{
if (
IS_OK(pRecorder->Start(
"c:/temp/my_test_file.adtfdat")))
{
}
}
#define IS_OK(s)
Check if result is OK.
tResult get_recorder(adtf::ucom::ant::object_ptr< RecorderInterface > &pRecorder)
Gets the current registered recorder instance.
- See also
- Streaming Graph, ADTFDAT File Recorder
Definition at line 47 of file recorder_intf.h.
◆ 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.
|
Definition at line 54 of file recorder_intf.h.
◆ 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
-
�the | State of the recorder |
◆ GetTimeRange()
Information interface to get the time range of the current opened files.
- Parameters
-
tmFirstItem | outTime of the first item |
tmLastItem | outTime of the last item |
- Return values
-
ERR_NOERROR | File is at least opend and information where read. |
◆ Split()
virtual tResult Split |
( |
const char * |
strFileName | ) |
|
|
pure virtual |
Stops an ongoing recording and 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 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 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.