More work on PcloudStimulusBuffer
This commit is contained in:
@@ -7,6 +7,7 @@
|
||||
#include <atomic>
|
||||
#include <mutex>
|
||||
#include "stimFrame.h"
|
||||
#include "deviceAttachmentSpec.h"
|
||||
|
||||
namespace smo {
|
||||
namespace stim_buff {
|
||||
@@ -38,7 +39,8 @@ public:
|
||||
};
|
||||
|
||||
public:
|
||||
explicit StimulusBuffer();
|
||||
explicit StimulusBuffer(
|
||||
const device::DeviceAttachmentSpec& deviceAttachmentSpec);
|
||||
~StimulusBuffer();
|
||||
|
||||
// Non-copyable, movable
|
||||
@@ -48,6 +50,7 @@ public:
|
||||
StimulusBuffer& operator=(StimulusBuffer&&) = default;
|
||||
|
||||
private:
|
||||
device::DeviceAttachmentSpec deviceAttachmentSpec;
|
||||
std::vector<StimFrame> frames_;
|
||||
};
|
||||
|
||||
|
||||
@@ -6,20 +6,5 @@
|
||||
namespace smo {
|
||||
namespace stim_buff {
|
||||
|
||||
PcloudStimulusBuffer::PcloudStimulusBuffer()
|
||||
: StimulusBuffer()
|
||||
{
|
||||
if (OptionParser::getOptions().verbose) {
|
||||
std::cout << "PcloudStimulusBuffer: Created point cloud stimulus buffer" << std::endl;
|
||||
}
|
||||
}
|
||||
|
||||
PcloudStimulusBuffer::~PcloudStimulusBuffer()
|
||||
{
|
||||
if (OptionParser::getOptions().verbose) {
|
||||
std::cout << "PcloudStimulusBuffer: Destroyed point cloud stimulus buffer" << std::endl;
|
||||
}
|
||||
}
|
||||
|
||||
} // namespace stim_buff
|
||||
} // namespace smo
|
||||
|
||||
@@ -19,7 +19,13 @@ class PcloudStimulusBuffer
|
||||
: public StimulusBuffer
|
||||
{
|
||||
public:
|
||||
explicit PcloudStimulusBuffer(const PcloudFormatDesc& formatDesc);
|
||||
explicit PcloudStimulusBuffer(
|
||||
const device::DeviceAttachmentSpec& deviceAttachmentSpec,
|
||||
const PcloudFormatDesc& formatDesc)
|
||||
: StimulusBuffer(deviceAttachmentSpec),
|
||||
formatDesc(formatDesc)
|
||||
{}
|
||||
|
||||
~PcloudStimulusBuffer();
|
||||
|
||||
// Non-copyable, movable
|
||||
|
||||
Reference in New Issue
Block a user