ADTF  3.18.2
adtf_remote_recorder_intf.h
Go to the documentation of this file.
1 
7 #pragma once
8 
9 #include <adtf_utils.h>
10 #include <adtfucom3/adtf_ucom3.h>
11 
12 namespace adtf
13 {
14 namespace remote
15 {
16 namespace ant
17 {
18 
26 class IRecorder
27 {
28  public:
30  ADTF_IID(IRecorder, "recorder.ant.remote.adtf");
32  static constexpr const tChar* const DEFAULT_NAME = "recorder";
33 
34  public:
40  virtual const char* GetCurrentFileName() const = 0;
41 
50  virtual tResult Start(const char* strFileName) = 0;
51 
60  virtual tResult Stop(const char* strFileName) = 0;
61 
70  virtual tResult Split(const char* strFileName) = 0;
71 
77  virtual int8_t GetCurrentState() const = 0; // same as service::IRecorder::tState
78 
84  virtual tTimeStamp GetFirstTime() const = 0;
85 
91  virtual tTimeStamp GetLastTime() const = 0;
92 };
93 
94 }
95 
96 namespace bat
97 {
98 
103 {
104  public:
106  ADTF_IID(IRecorder, "recorder.bat.remote.adtf");
107 
108  public:
109 
117  virtual tResult AddMarker(tTimeStamp tmTimeStamp, const char* strName) = 0;
118 
123  virtual tResult DropHistory() = 0;
124 };
125 
126 }
127 
128 using bat::IRecorder;
129 
130 }
131 }
132 
Copyright © Audi Electronics Venture GmbH.
Copyright © Audi Electronics Venture GmbH.
char tChar
The tChar defines the type for platform character set (platform and compiler dependent type).
virtual tTimeStamp GetFirstTime() const =0
Retrieves the first (chunk) time of the currently recorded file.
ADTF_IID(IRecorder, "recorder.ant.remote.adtf")
RPC IID of the Recorder.
static constexpr const tChar *const DEFAULT_NAME
Default name of the recorder.
virtual tResult Split(const char *strFileName)=0
Splits Recording.
virtual int8_t GetCurrentState() const =0
Retrieves the current state of the recorder.
virtual const char * GetCurrentFileName() const =0
Retrieves the current filename set for the file recording.
virtual tResult Stop(const char *strFileName)=0
Stops Recording.
virtual tResult Start(const char *strFileName)=0
Starts Recording.
virtual tTimeStamp GetLastTime() const =0
Retrieves the last (chunk) time of the currently recorded files.
ADTF_IID(IRecorder, "recorder.bat.remote.adtf")
RPC IID of the Recorder.
virtual tResult AddMarker(tTimeStamp tmTimeStamp, const char *strName)=0
Adds a marker to the corrently ongoing recording.
virtual tResult DropHistory()=0
Drops all data currently kept in the history buffer.
Namespace for entire ADTF SDK.