15 namespace uhd {
namespace usrp {
namespace cal {
28 virtual std::string get_name()
const = 0;
31 virtual std::string get_serial()
const = 0;
34 virtual uint64_t get_timestamp()
const = 0;
37 virtual std::vector<uint8_t> serialize() = 0;
40 virtual void deserialize(
const std::vector<uint8_t>& data) = 0;
47 template <
typename container_type>
48 static std::shared_ptr<container_type>
make(
const std::vector<uint8_t>& data)
50 auto cal_data = container_type::make();
51 cal_data->deserialize(data);
Definition: container.hpp:22
static std::shared_ptr< container_type > make(const std::vector< uint8_t > &data)
Generic factory for cal data from serialized data.
Definition: container.hpp:48
Definition: build_info.hpp:12
#define UHD_API
Definition: config.h:87