34 const std::string& path,
35 std::shared_ptr<IO::BaseIO> io,
36 const std::vector<std::string>& colNames =
50 void initialize(
const std::string& description);
57 void addColumn(std::unique_ptr<VectorData>& vectorData,
58 const std::vector<std::string>& values);
67 const std::string& colDescription,
68 const std::vector<std::string>& dataset);
75 void setRowIDs(std::unique_ptr<ElementIdentifiers>& elementIDs,
76 const std::vector<int>& values);
82 virtual void setColNames(
const std::vector<std::string>& newColNames)
91 The names of the columns in the table)
97 Description of what is in
this dynamic table)
103 Array of unique identifiers
for the rows of
this dynamic table)
#define REGISTER_SUBCLASS(T, NAMESPACE)
Macro to register a subclass with the RegisteredType class registry.
Definition RegisteredType.hpp:321
#define DEFINE_FIELD(name, storageObjectType, default_type, fieldPath, description)
Defines a lazy-loaded field accessor function.
Definition RegisteredType.hpp:355
Container(const std::string &path, std::shared_ptr< IO::BaseIO > io)
Constructor.
Definition Container.cpp:10
void initialize()
Initialize the container.
Definition Container.cpp:20
std::vector< std::string > m_colNames
Names of the columns in the table.
Definition DynamicTable.hpp:109
void addColumn(std::unique_ptr< VectorData > &vectorData, const std::vector< std::string > &values)
Adds a column of vector string data to the table.
Definition DynamicTable.cpp:33
std::unique_ptr< IO::ReadDataWrapper< DatasetField, VTYPE > > readId() const
virtual ~DynamicTable()
Destructor.
Definition DynamicTable.cpp:21
std::unique_ptr< IO::ReadDataWrapper< AttributeField, VTYPE > > readColNames() const
void setRowIDs(std::unique_ptr< ElementIdentifiers > &elementIDs, const std::vector< int > &values)
Adds a column of element identifiers to the table.
Definition DynamicTable.cpp:49
std::unique_ptr< IO::ReadDataWrapper< AttributeField, VTYPE > > readDescription() const
virtual void setColNames(const std::vector< std::string > &newColNames)
Sets the column names of the ElectrodeTable.
Definition DynamicTable.hpp:82
DynamicTable(const std::string &path, std::shared_ptr< IO::BaseIO > io, const std::vector< std::string > &colNames={})
Constructor.
Definition DynamicTable.cpp:12
void addReferenceColumn(const std::string &name, const std::string &colDescription, const std::vector< std::string > &dataset)
Adds a column of references to the table.
Definition DynamicTable.cpp:65
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:22
constexpr auto DatasetField
Alias for AQNWB::Types::StorageObjectType::Dataset.
Definition RegisteredType.hpp:27