43 NWBData(
const std::string& path, std::shared_ptr<AQNWB::IO::BaseIO> io);
60template<
typename DTYPE = std::any>
70 NWBDataTyped(
const std::string& path, std::shared_ptr<IO::BaseIO> io)
90 return std::make_shared<NWBDataTyped<DTYPE>>(data.
getPath(), data.
getIO());
AQNWB::Types::Status Status
Definition BaseIO.hpp:22
#define REGISTER_SUBCLASS(T, BASE, NAMESPACE)
Macro to register a subclass with the RegisteredType class registry.
Definition RegisteredType.hpp:501
#define DEFINE_DATASET_FIELD(readName, writeName, default_type, fieldPath, description)
Defines a lazy-loaded dataset field accessor function.
Definition RegisteredType.hpp:573
The configuration for an array dataset.
Definition BaseIO.hpp:204
An abstract data type for a dataset.
Definition Data.hpp:17
Data(const std::string &path, std::shared_ptr< IO::BaseIO > io)
Constructor.
Definition Data.cpp:9
Status initialize(const AQNWB::IO::ArrayDataSetConfig &dataConfig)
Initialize the object.
Definition NWBData.cpp:16
NWBData(const std::string &path, std::shared_ptr< AQNWB::IO::BaseIO > io)
Constructor.
Definition NWBData.cpp:11
NWBDataTyped(const std::string &path, std::shared_ptr< IO::BaseIO > io)
Constructor.
Definition NWBData.hpp:70
std::shared_ptr< AQNWB::IO::BaseRecordingData > recordData(bool reset=false)
static std::shared_ptr< NWBDataTyped< DTYPE > > fromNWBData(const Data &data)
Create a NWBDataTyped object from a Data object.
Definition NWBData.hpp:88
std::unique_ptr< AQNWB::IO::ReadDataWrapper< AQNWB::NWB::DatasetField, VTYPE > > readData() const
std::string m_path
The path of the registered type.
Definition RegisteredType.hpp:410
std::weak_ptr< IO::BaseIO > m_io
A weak pointer to the IO object.
Definition RegisteredType.hpp:422
std::string getPath() const
Gets the path of the registered type.
Definition RegisteredType.hpp:59
std::shared_ptr< AQNWB::IO::BaseIO > getIO() const
Get a shared pointer to the IO object.
Definition RegisteredType.hpp:77
Namespace for all classes related to the NWB data standard.
const std::string namespaceName
Definition core.hpp:21