#pragma once #include namespace Bloom::DebugToolDrivers::Protocols::CmsisDap { class Response { private: unsigned char responseId = 0x00; std::vector data; protected: void setResponseId(unsigned char commandId) { this->responseId = commandId; } void setData(const std::vector& data) { this->data = data; } public: Response() = default; virtual void init(const std::vector& rawResponse); [[nodiscard]] unsigned char getResponseId() const { return this->responseId; } [[nodiscard]] virtual const std::vector& getData() const { return this->data; } virtual ~Response() = default; }; }