32 NWBData(
const std::string& path, std::shared_ptr<AQNWB::IO::BaseIO> io);
58template<
typename DTYPE = std::any>
68 NWBDataTyped(
const std::string& path, std::shared_ptr<IO::BaseIO> io)
87 return std::make_shared<NWBDataTyped<DTYPE>>(data.
getPath(), data.
getIO());
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:410
#define DEFINE_DATASET_FIELD(readName, writeName, default_type, fieldPath, description)
Defines a lazy-loaded dataset field accessor function.
Definition RegisteredType.hpp:476
The configuration for an array dataset.
Definition BaseIO.hpp:200
An abstract data type for a dataset.
Definition Data.hpp:16
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:68
static std::shared_ptr< NWBDataTyped< DTYPE > > fromNWBData(const Data &data)
Create a DataTyped object from a Data object.
Definition NWBData.hpp:85
std::shared_ptr< IO::BaseRecordingData > recordData(bool reset=false)
std::unique_ptr< IO::ReadDataWrapper< DatasetField, VTYPE > > readData() const
std::string m_path
The path of the registered type.
Definition RegisteredType.hpp:338
std::shared_ptr< IO::BaseIO > m_io
A shared pointer to the IO object.
Definition RegisteredType.hpp:343
std::string getPath() const
Gets the path of the registered type.
Definition RegisteredType.hpp:71
std::shared_ptr< AQNWB::IO::BaseIO > getIO() const
Get a shared pointer to the IO object.
Definition RegisteredType.hpp:89
Namespace for all classes related to the NWB data standard.
Definition NWBContainer.hpp:18
const std::string namespaceName
Definition core.hpp:21