Akumuli
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends
protocol_consumer.h
1 
17 #pragma once
18 #include "akumuli.h"
19 
20 namespace Akumuli {
21 
22 typedef char Byte;
23 
28 
29  ~ProtocolConsumer() {}
30 
31  virtual void write(const aku_Sample&) = 0;
32 
33  // TODO: remove this function, bulk string decoding should be done inside ProtocolParser
34  virtual void add_bulk_string(const Byte* buffer, size_t n) = 0;
35 
37  virtual aku_Status series_to_param_id(const char* str, size_t strlen, aku_Sample* sample) = 0;
38 };
39 }
virtual aku_Status series_to_param_id(const char *str, size_t strlen, aku_Sample *sample)=0
Convert series name to param id.
Definition: protocol_consumer.h:27