aqnwb 0.1.0
Loading...
Searching...
No Matches
Container.hpp
Go to the documentation of this file.
1#pragma once
2
3#include <memory>
4#include <string>
5
8
9namespace AQNWB::NWB
10{
17{
18public:
19 // Register the Container class as a registered type
21
22
28 Container(const std::string& path, std::shared_ptr<IO::BaseIO> io);
29
33 virtual ~Container();
34
40
41 // Define the data fields to expose for lazy read access
43 std::string,
44 "neurodata_type",
45 The name of the type)
46
48 std::string,
49 "namespace",
50 The name of the namespace)
51};
52
53} // namespace AQNWB::NWB
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_ATTRIBUTE_FIELD(name, default_type, fieldPath, description)
Defines a lazy-loaded attribute field accessor function.
Definition RegisteredType.hpp:443
Container(const std::string &path, std::shared_ptr< IO::BaseIO > io)
Constructor.
Definition Container.cpp:10
Status initialize()
Initialize the container.
Definition Container.cpp:20
std::unique_ptr< IO::ReadDataWrapper< AttributeField, VTYPE > > readNeurodataType() const
std::unique_ptr< IO::ReadDataWrapper< AttributeField, VTYPE > > readNamespace() const
virtual ~Container()
Destructor.
Definition Container.cpp:17
RegisteredType(const std::string &path, std::shared_ptr< AQNWB::IO::BaseIO > io)
Constructor.
Definition RegisteredType.cpp:15
Namespace for all classes related to the NWB data standard.
Definition TimeSeries.hpp:13
const std::string namespaceName
Definition hdmf_common.hpp:21