31 const std::string& columnDescription,
32 std::optional<float> columnResolution = std::nullopt)
60 const std::string& description,
61 std::optional<float> resolution = std::nullopt);
64 const std::string& name,
66 const std::string& description,
67 std::optional<float> resolution = std::nullopt);
74 "The unit of measurement for the timestamps - fixed to seconds.")
80 "The temporal resolution of the timestamps - in seconds. This is "
81 "typically the sampling period (1 / sampling_rate) - also known as the "
82 "clock period - of the data acquisition system from which the timestamps "
83 "were recorded or derived.")
90 "A 1-D VectorData that stores timestamps in seconds from the session "
91 "start time. Timestamps are not required to be sorted in time.")
104 std::shared_ptr<
AQNWB::
IO::BaseIO> io);
AQNWB::Types::Status Status
Definition BaseIO.hpp:21
#define REGISTER_SUBCLASS(T, BASE, NAMESPACE)
Macro to register a subclass with the RegisteredType class registry.
Definition RegisteredType.hpp:547
#define DEFINE_ATTRIBUTE_FIELD(name, default_type, fieldPath, description)
Defines a lazy-loaded attribute field accessor function.
Definition RegisteredType.hpp:580
#define DEFINE_DATASET_FIELD(readName, writeName, default_type, fieldPath, description)
Defines a lazy-loaded dataset field accessor function.
Definition RegisteredType.hpp:619
The configuration for an array dataset.
Definition BaseIO.hpp:321
An abstract data type for a dataset.
Definition Data.hpp:21
std::unique_ptr< AQNWB::IO::ReadDataWrapper< AQNWB::NWB::AttributeField, VTYPE > > readResolution() const
std::shared_ptr< AQNWB::IO::BaseRecordingData > recordData(bool reset=false)
std::unique_ptr< AQNWB::IO::ReadDataWrapper< AQNWB::NWB::AttributeField, VTYPE > > readUnit() const
TimestampVectorData(const std::string &path, std::shared_ptr< AQNWB::IO::BaseIO > io)
Constructor.
Definition TimestampVectorData.cpp:12
static std::shared_ptr< DataSpec > createDataSpec(const std::string &name, const AQNWB::IO::ArrayDataSetConfig &dataConfig, const std::string &description, std::optional< float > resolution=std::nullopt)
Definition TimestampVectorData.cpp:71
virtual ~TimestampVectorData() override
Virtual destructor.
Definition TimestampVectorData.hpp:48
std::unique_ptr< AQNWB::IO::ReadDataWrapper< AQNWB::NWB::DatasetField, VTYPE > > readData() const
Status initialize(const AQNWB::IO::ArrayDataSetConfig &data, const std::string &description, std::optional< float > resolution=std::nullopt)
Initialize the object.
Definition TimestampVectorData.cpp:19
An n-dimensional dataset representing a column of a DynamicTable.
Definition VectorData.hpp:23
VectorData(const std::string &path, std::shared_ptr< IO::BaseIO > io)
Constructor.
Definition VectorData.cpp:10
The namespace for IO components of AqNWB.
Namespace for all classes related to the NWB data standard.
The namespace for managing format schema and namespaces.
The main namespace for AqNWB.
Definition Channel.hpp:11
Typed runtime configuration for a concrete Data subclass.
Definition Data.hpp:79
std::string description
Definition TimestampVectorData.hpp:39
std::optional< float > resolution
Definition TimestampVectorData.hpp:40
DataSpec(const std::string &datasetName, const AQNWB::IO::ArrayDataSetConfig &dataConfig, const std::string &columnDescription, std::optional< float > columnResolution=std::nullopt)
Definition TimestampVectorData.hpp:29
Status initialize(Data &data) const override
Initialize the created concrete Data object from this spec.
Definition TimestampVectorData.cpp:55