ifw-ccf 6.0.0
 
Loading...
Searching...
No Matches
recWaitRequest.hpp
Go to the documentation of this file.
1
6
7#ifndef CCF_CONTROL_REC_WAIT_REQ_HPP_
8#define CCF_CONTROL_REC_WAIT_REQ_HPP_
9
10#include <rad/mal/request.hpp>
11
12#include <Recif.hpp>
13
15
16namespace ifw::ccf::control {
17
22 public:
23
25 RecWaitRequest(const std::string& rec_id,
26 rad::cii::Request<std::shared_ptr<recif::RecWaitStatus>,
27 std::shared_ptr<recif::RecWaitSpec>>* rec_req);
28
29 virtual ~RecWaitRequest();
30
32 rad::cii::Request<std::shared_ptr<recif::RecWaitStatus>, std::shared_ptr<recif::RecWaitSpec>>& GetReq();
33
35 double GetReqTime() const;
36
38 std::string GetRecId() const;
39
41 void SetResponseSent();
42
44 bool GetResponseSent() const;
45
47 double GetResponseSentTime() const;
48
49 private:
50 std::string m_rec_id;
51 double m_req_time;
52 rad::cii::Request<std::shared_ptr<recif::RecWaitStatus>, std::shared_ptr<recif::RecWaitSpec>>* m_rec_req;
53 bool m_response_sent;
54 double m_respone_time;
55 };
56
57} // namespace ifw::ccf::control
58
59#endif // CCF_CONTROL_REC_WAIT_REQ_HPP_
void SetResponseSent()
Set flag indicating that a response to the associated RecWait Request has been sent.
Definition recWaitRequest.cpp:47
bool GetResponseSent() const
Return true if a response to the associated RecWait Request has been sent.
Definition recWaitRequest.cpp:53
RecWaitRequest(const std::string &rec_id, rad::cii::Request< std::shared_ptr< recif::RecWaitStatus >, std::shared_ptr< recif::RecWaitSpec > > *rec_req)
Constructor registering the Record ID and reference to the RecWait Request handle to be able to send ...
Definition recWaitRequest.cpp:12
rad::cii::Request< std::shared_ptr< recif::RecWaitStatus >, std::shared_ptr< recif::RecWaitSpec > > & GetReq()
Return reference to the RecWait Request handle used to send the response.
Definition recWaitRequest.cpp:32
virtual ~RecWaitRequest()
Definition recWaitRequest.cpp:24
double GetResponseSentTime() const
Get the time for sending the response.
Definition recWaitRequest.cpp:58
std::string GetRecId() const
Return the Recording ID of the associated Recording Session.
Definition recWaitRequest.cpp:42
double GetReqTime() const
Get the time for when the RecWait Request was received. Used to handle the timeout specified for the ...
Definition recWaitRequest.cpp:37
Definition acqThread.cpp:11