aqnwb 0.1.0
Loading...
Searching...
No Matches
VectorData.hpp
Go to the documentation of this file.
1#pragma once
2
3#include <string>
4
5#include "Utils.hpp"
6#include "io/ReadIO.hpp"
8
9namespace AQNWB::NWB
10{
14class VectorData : public Data
15{
16public:
17 // Register Data class as a registered type
18 REGISTER_SUBCLASS(VectorData, "hdmf-common")
19
20
26 VectorData(const std::string& path, std::shared_ptr<IO::BaseIO> io);
27
37 void initialize(std::unique_ptr<AQNWB::IO::BaseRecordingData>&& dataset,
38 const std::string& description);
39
42 std::string,
43 "description",
44 Description of what these vectors represent)
45
46private:
50 std::string m_description;
51};
52} // namespace AQNWB::NWB
#define REGISTER_SUBCLASS(T, NAMESPACE)
Macro to register a subclass with the RegisteredType class registry.
Definition RegisteredType.hpp:321
#define DEFINE_FIELD(name, storageObjectType, default_type, fieldPath, description)
Defines a lazy-loaded field accessor function.
Definition RegisteredType.hpp:355
Data(const std::string &path, std::shared_ptr< IO::BaseIO > io)
Constructor.
Definition Data.cpp:10
void initialize(std::unique_ptr< AQNWB::IO::BaseRecordingData > &&dataset, const std::string &description)
Initialize the dataset for the Data object.
Definition VectorData.cpp:15
std::unique_ptr< IO::ReadDataWrapper< AttributeField, VTYPE > > readDescription() const
std::string m_description
Description of VectorData.
Definition VectorData.hpp:50
VectorData(const std::string &path, std::shared_ptr< IO::BaseIO > io)
Constructor.
Definition VectorData.cpp:9
Namespace for all classes related to the NWB data standard.
Definition TimeSeries.hpp:12
constexpr auto AttributeField
Alias for AQNWB::Types::StorageObjectType::Attribute.
Definition RegisteredType.hpp:22