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