#ifndef DEVICE_CTRL_LOADOMETER_DECODER_H
#define DEVICE_CTRL_LOADOMETER_DECODER_H
#include <vector>

namespace zsy
{
    class LoadometerDecoder
    {
    protected:
        ~LoadometerDecoder() = default;

    public:
        /**
         * 协议解析
         *
         * @param buf 数据
         * @return 是否解析成功，已处理的数据长度，磅重
         */
        virtual std::tuple<bool, uint32_t, int32_t> decode(const std::vector<uint8_t> &buf) = 0;
    };
}

#endif //DEVICE_CTRL_LOADOMETER_DECODER_H