25 VectorData(
const std::string& path, std::shared_ptr<IO::BaseIO> io);
43 const std::string& description)
47 m_io->createAttribute(description,
m_path,
"description");
48 return dataStatus && attrStatus;
55 Description of what these vectors represent)
72template<
typename DTYPE = std::any>
108 return std::make_shared<VectorDataTyped<DTYPE>>(data.
getPath(),
AQNWB::Types::Status Status
Definition BaseIO.hpp:22
#define REGISTER_SUBCLASS(T, NAMESPACE)
Macro to register a subclass with the RegisteredType class registry.
Definition RegisteredType.hpp:373
#define DEFINE_FIELD(name, storageObjectType, default_type, fieldPath, description)
Defines a lazy-loaded field accessor function.
Definition RegisteredType.hpp:407
Status initialize(std::unique_ptr< IO::BaseRecordingData > &&dataset)
Initialize the dataset for the Data object.
Definition Data.hpp:41
Data(const std::string &path, std::shared_ptr< IO::BaseIO > io)
Constructor.
Definition Data.cpp:9
std::string m_path
The path of the registered type.
Definition RegisteredType.hpp:318
std::shared_ptr< IO::BaseIO > m_io
A shared pointer to the IO object.
Definition RegisteredType.hpp:323
std::string getPath() const
Gets the path of the registered type.
Definition RegisteredType.hpp:70
std::shared_ptr< IO::BaseIO > getIO() const
Get a shared pointer to the IO object.
Definition RegisteredType.hpp:88
Status initialize(std::unique_ptr< IO::BaseRecordingData > &&dataset, const std::string &description)
Initialize the dataset for the VectorData object.
Definition VectorData.hpp:42
std::unique_ptr< IO::ReadDataWrapper< AttributeField, VTYPE > > readDescription() const
VectorData(const std::string &path, std::shared_ptr< IO::BaseIO > io)
Constructor.
Definition VectorData.cpp:8
virtual ~VectorData() override
Virtual destructor.
Definition VectorData.hpp:30
static std::shared_ptr< VectorDataTyped< DTYPE > > fromVectorData(const VectorData &data)
Create a VectorDataTyped object from a Data object.
Definition VectorData.hpp:105
std::unique_ptr< IO::ReadDataWrapper< DatasetField, VTYPE > > readData() const
VectorDataTyped(const std::string &path, std::shared_ptr< IO::BaseIO > io)
Constructor.
Definition VectorData.hpp:82
virtual ~VectorDataTyped() override
Virtual destructor.
Definition VectorData.hpp:90
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:23
constexpr auto DatasetField
Alias for AQNWB::Types::StorageObjectType::Dataset.
Definition RegisteredType.hpp:28