25 Data(
const std::string& path, std::shared_ptr<IO::BaseIO> io);
45 Status commonAttrsStatus =
m_io->createCommonNWBAttributes(
47 return commonAttrsStatus;
68 The name of the
namespace)
87template<typename DTYPE = std::any>
97 DataTyped(
const std::string& path, std::shared_ptr<IO::BaseIO> io)
121 return std::make_shared<DataTyped<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:373
#define DEFINE_FIELD(name, storageObjectType, default_type, fieldPath, description)
Defines a lazy-loaded field accessor function.
Definition RegisteredType.hpp:407
bool isInitialized()
Check whether the m_dataset has been initialized.
Definition Data.hpp:53
virtual ~Data() override
Virtual destructor.
Definition Data.hpp:30
Status initialize(std::unique_ptr< IO::BaseRecordingData > &&dataset)
Initialize the dataset for the Data object.
Definition Data.hpp:41
std::unique_ptr< IO::ReadDataWrapper< AttributeField, VTYPE > > readNeurodataType() const
std::unique_ptr< IO::ReadDataWrapper< AttributeField, VTYPE > > readNamespace() const
std::unique_ptr< IO::BaseRecordingData > m_dataset
Definition Data.hpp:70
Data(const std::string &path, std::shared_ptr< IO::BaseIO > io)
Constructor.
Definition Data.cpp:9
std::unique_ptr< IO::ReadDataWrapper< DatasetField, VTYPE > > readData() const
static std::shared_ptr< DataTyped< DTYPE > > fromData(const Data &data)
Create a DataTyped object from a Data object.
Definition Data.hpp:119
DataTyped(const std::string &path, std::shared_ptr< IO::BaseIO > io)
Constructor.
Definition Data.hpp:97
std::unique_ptr< IO::ReadDataWrapper< DatasetField, VTYPE > > readData() const
virtual ~DataTyped() override
Virtual destructor.
Definition Data.hpp:105
virtual std::string getTypeName() const
Get the name of the class type.
Definition RegisteredType.cpp:60
std::string m_path
The path of the registered type.
Definition RegisteredType.hpp:318
RegisteredType(const std::string &path, std::shared_ptr< IO::BaseIO > io)
Constructor.
Definition RegisteredType.cpp:15
std::shared_ptr< IO::BaseIO > m_io
A shared pointer to the IO object.
Definition RegisteredType.hpp:323
virtual std::string getNamespace() const
Get the schema namespace of the class type.
Definition RegisteredType.cpp:67
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
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