aqnwb 0.1.0
Loading...
Searching...
No Matches
Types.hpp
Go to the documentation of this file.
1#pragma once
2
3#include <cstddef>
4#include <vector>
5
6namespace AQNWB
7{
8
9// Forward declaration of Channel
10class Channel;
11
15class Types
16{
17public:
21 enum Status
22 {
25 };
26
31 {
32 Group = 0,
36 };
37
45 template<StorageObjectType T>
47 : std::integral_constant<bool, (T == Dataset || T == Attribute)>
48 {
49 };
50
54 using SizeType = size_t;
55
59 using SizeArray = std::vector<size_t>;
60
64 using ChannelVector = std::vector<Channel>;
65};
66} // namespace AQNWB
Class for storing acquisition system channel information.
Definition Channel.hpp:16
Provides definitions for various types used in the project.
Definition Types.hpp:16
std::vector< Channel > ChannelVector
Alias for a vector of channels.
Definition Types.hpp:64
StorageObjectType
Types of object used in the NWB schema.
Definition Types.hpp:31
@ Attribute
Definition Types.hpp:34
@ Group
Definition Types.hpp:32
@ Dataset
Definition Types.hpp:33
@ Undefined
Definition Types.hpp:35
Status
Represents the status of an operation.
Definition Types.hpp:22
@ Success
Definition Types.hpp:23
@ Failure
Definition Types.hpp:24
std::vector< size_t > SizeArray
Alias for an array of size types used in the project.
Definition Types.hpp:59
size_t SizeType
Alias for the size type used in the project.
Definition Types.hpp:54
The main namespace for AqNWB.
Definition Channel.hpp:11
Helper struct to check if a value is a data field, i.e., Dataset or Attribute.
Definition Types.hpp:48