2020-01-17 11:43:54 +00:00
|
|
|
#ifndef SRT_DATA_H
|
|
|
|
#define SRT_DATA_H
|
|
|
|
#include <string>
|
|
|
|
#include <memory>
|
|
|
|
|
|
|
|
class SRT_DATA_MSG {
|
|
|
|
public:
|
2020-01-21 11:20:09 +00:00
|
|
|
SRT_DATA_MSG(unsigned int len, const std::string& path);
|
2020-01-17 11:43:54 +00:00
|
|
|
SRT_DATA_MSG(unsigned char* data_p, unsigned int len, const std::string& path);
|
|
|
|
~SRT_DATA_MSG();
|
|
|
|
|
|
|
|
unsigned int data_len();
|
|
|
|
unsigned char* get_data();
|
|
|
|
std::string get_path();
|
|
|
|
|
|
|
|
private:
|
|
|
|
unsigned int _len;
|
|
|
|
unsigned char* _data_p;
|
|
|
|
std::string _key_path;
|
|
|
|
};
|
|
|
|
|
|
|
|
typedef std::shared_ptr<SRT_DATA_MSG> SRT_DATA_MSG_PTR;
|
|
|
|
|
|
|
|
#endif
|