LivoxGen1: Add basic stimbuff creation & destruction
This commit is contained in:
@@ -3,6 +3,7 @@
|
||||
|
||||
#include <user/stimulusBuffer.h>
|
||||
#include <user/stimFrame.h>
|
||||
#include <livoxProto1/device.h>
|
||||
|
||||
namespace smo {
|
||||
namespace stim_buff {
|
||||
@@ -21,12 +22,14 @@ class PcloudStimulusBuffer
|
||||
public:
|
||||
explicit PcloudStimulusBuffer(
|
||||
const device::DeviceAttachmentSpec& deviceAttachmentSpec,
|
||||
std::shared_ptr<livoxProto1::Device> &device,
|
||||
const PcloudFormatDesc& formatDesc)
|
||||
: StimulusBuffer(deviceAttachmentSpec),
|
||||
deviceAttachmentSpec(deviceAttachmentSpec), device(device),
|
||||
formatDesc(formatDesc)
|
||||
{}
|
||||
|
||||
~PcloudStimulusBuffer();
|
||||
~PcloudStimulusBuffer() = default;
|
||||
|
||||
// Non-copyable, movable
|
||||
PcloudStimulusBuffer(const PcloudStimulusBuffer&) = delete;
|
||||
@@ -34,7 +37,9 @@ public:
|
||||
PcloudStimulusBuffer(PcloudStimulusBuffer&&) = default;
|
||||
PcloudStimulusBuffer& operator=(PcloudStimulusBuffer&&) = default;
|
||||
|
||||
private:
|
||||
public:
|
||||
device::DeviceAttachmentSpec deviceAttachmentSpec;
|
||||
std::shared_ptr<livoxProto1::Device> device;
|
||||
PcloudFormatDesc formatDesc;
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user