aqnwb 0.1.0
Loading...
Searching...
No Matches
Data.hpp
Go to the documentation of this file.
1#pragma once
2
3#include <memory>
4
5#include "BaseIO.hpp"
6
7namespace AQNWB::NWB
8{
12class Data
13{
14public:
18 Data() {}
19
23 ~Data() {}
24
33 inline void setDataset(std::unique_ptr<BaseRecordingData>&& dataset)
34 {
35 m_dataset = std::move(dataset);
36 }
37
41 inline bool isInitialized() { return m_dataset != nullptr; }
42
43 std::unique_ptr<BaseRecordingData> m_dataset;
44};
45} // namespace AQNWB::NWB
An abstract data type for a dataset.
Definition Data.hpp:13
~Data()
Destructor.
Definition Data.hpp:23
bool isInitialized()
Check whether the m_dataset has been initialized.
Definition Data.hpp:41
Data()
Constructor.
Definition Data.hpp:18
std::unique_ptr< BaseRecordingData > m_dataset
Definition Data.hpp:43
void setDataset(std::unique_ptr< BaseRecordingData > &&dataset)
Initialize the dataset for the Data object.
Definition Data.hpp:33
Namespace for all classes related to the NWB data standard.
Definition TimeSeries.hpp:9