| 27 | }; |
| 28 | |
| 29 | class Handler { |
| 30 | public: |
| 31 | Handler() {} |
| 32 | virtual ~Handler() {} |
| 33 | |
| 34 | virtual HandleResult Handle(const proto::ConsumerContext &cc, proto::QItem &item, std::string &uncompressed_buffer) = 0; |
| 35 | |
| 36 | void SetBufferUpdated(bool buffer_updated) {buffer_updated_ = buffer_updated;} |
| 37 | bool IsBufferUpdated() { return buffer_updated_; } |
| 38 | |
| 39 | private: |
| 40 | bool buffer_updated_{false}; |
| 41 | }; |
| 42 | |
| 43 | template <class T> |
| 44 | class PBHandler : public Handler { |
nothing calls this directly
no outgoing calls
no test coverage detected