#pragma once #include #include class PacketRecorder : public LuaObject { public: PacketRecorder(const std::string& file); virtual ~PacketRecorder(); void addInputPacket(const InputMessagePtr& packet); void addOutputPacket(const OutputMessagePtr& packet); private: ticks_t m_start; std::ofstream m_stream; bool m_firstOutput = true; };