6 #include <scene_rdl2/common/rec_time/RecTime.h> 7 #include <scene_rdl2/common/grid_util/Parser.h> 10 #include <unordered_map> 20 static constexpr
size_t sMessageHandlerTotal = 4;
25 , mRecvImgSenderMachineId(0)
30 const std::array<float, sMessageHandlerTotal>& messageHandler,
31 int recvImgSenderMachineId)
35 , mMessageHandler{messageHandler}
36 , mRecvImgSenderMachineId(recvImgSenderMachineId)
39 const std::string& getName()
const {
return mName; }
41 float getStart()
const {
return mGetStart; }
42 float getEnd()
const {
return mGetEnd; }
44 const std::array<float, sMessageHandlerTotal>& getMessageHandler()
const {
return mMessageHandler; }
45 int getRecvImgSenderMachineId()
const {
return mRecvImgSenderMachineId; }
47 float getDelta()
const {
return mGetEnd - mGetStart; }
48 std::string showSenderMachineId()
const;
56 std::array<float, sMessageHandlerTotal> mMessageHandler;
57 int mRecvImgSenderMachineId;
66 using Arg = scene_rdl2::grid_util::Arg;
67 using Parser = scene_rdl2::grid_util::Parser;
68 using ResolveInfoShPtr = std::shared_ptr<ResolveInfo>;
74 void setInitArrasEnd(
float sec);
75 std::string showInitArras()
const;
77 float getInitArrasEnd()
const {
return mInitArras; }
81 void initGlobalBaseTime();
82 uint64_t getGlobalBaseTimeFromEpoch()
const {
return mGlobalBaseTimeFromEpoch; }
84 void setConnect(
size_t execPosId);
85 std::string showConnect()
const;
87 size_t getConnectTotal()
const {
return sConnectTotal; }
88 float getConnect(
size_t execPosId)
const;
89 std::string getConnectDescription(
size_t execPosId)
const;
93 void setEndUpdate(
size_t execPosId);
94 void setSendMessageSize(
size_t size) { mSendMessageSize = size; }
95 void afterSendMessage();
96 std::string showEndUpdate()
const;
98 size_t getEndUpdateTotal()
const {
return sEndUpdateTotal; }
99 float getEndUpdate(
size_t execPosId)
const;
100 std::string getEndUpdateDescription(
size_t execPosId)
const;
104 void setMessageHandler(
size_t execPosId);
105 void setReceivedImageSenderMachineId(
int machineId);
106 std::string showMessageHandler()
const;
108 size_t getMessageHandlerTotal()
const {
return sMessageHandlerTotal; }
109 float getMessageHandler(
size_t execPosId)
const;
110 std::string getMessageHandlerDescription(
size_t execPosId)
const;
114 void setResolveStart();
115 void setResolve(
const std::string& name);
116 std::string showResolve()
const;
118 const ResolveInfoShPtr get1stResolveInfo()
const;
119 std::string show1stImgSenderMachineId()
const;
123 std::string show()
const;
127 Parser& getParser() {
return mParser; }
133 uint64_t mGlobalBaseTimeFromEpoch;
134 scene_rdl2::rec_time::RecTime mGlobalBaseTime;
136 static constexpr
size_t sConnectTotal = 6;
137 std::array<std::string, sConnectTotal> mConnectDescription;
138 std::array<float, sConnectTotal> mConnect;
140 static constexpr
size_t sEndUpdateTotal = 4;
141 std::array<std::string, sEndUpdateTotal> mEndUpdateDescription;
142 std::array<float, sEndUpdateTotal> mEndUpdate;
143 size_t mSendMessageSize;
145 static constexpr
size_t sMessageHandlerTotal = ResolveInfo::sMessageHandlerTotal;
146 std::array<std::string, sMessageHandlerTotal> mMessageHandlerDescription;
147 std::array<float, sMessageHandlerTotal> mMessageHandler;
148 int mRecvImgSenderMachineId;
151 std::unordered_map<std::string, ResolveInfoShPtr> m1stResolve;
152 std::unordered_map<std::string, ResolveInfoShPtr> mResolve;
158 int maxSecStrLen(
size_t execPosTotal,
159 const std::function<
float(
size_t execPosId)> &calcSecCallBack)
const;
161 std::string showMessageHandler(
const std::array<float, sMessageHandlerTotal> &messageHandler,
162 int recvImgSenderMachineId)
const;
164 void parserConfigure();
Definition: ClientReceiverConsoleDriver.cc:9
Definition: TimingRecorderHydra.h:14
Definition: TimingRecorderHydra.h:60