22 const std::string groupName,
26 const float conversion = 1e6f,
27 const float samplingRate = 30000.f,
28 const float bitVolts = 0.05f,
31 const std::array<float, 3> position = {0.f, 0.f, 0.f},
32 const std::string comments =
"no comments");
AQNWB::Types::SizeType SizeType
Definition Channel.hpp:8
float m_bitVolts
floating point value of microvolts per bit
Definition Channel.hpp:182
void setPosition(const std::array< float, 3 > &position)
Set coordinates of channel (x, y, z) within the recording array.
Definition Channel.hpp:132
Channel & operator=(const Channel &other)=default
Assignment operator.
SizeType m_groupIndex
Index of array group the channel belongs to.
Definition Channel.hpp:157
void setName(const std::string &name)
Set name of the channel.
Definition Channel.hpp:141
SizeType m_globalIndex
Index of channel across the recording system.
Definition Channel.hpp:167
float getSamplingRate() const
Getter for sampling rate of the channel.
Definition Channel.hpp:69
const std::array< float, 3 > & getPosition() const
Get the coordinates of channel (x, y, z) within the recording array.
Definition Channel.hpp:111
SizeType getGroupIndex() const
Get the array group index the channel belongs to.
Definition Channel.hpp:93
Channel(const std::string name, const std::string groupName, const SizeType groupIndex, const SizeType localIndex, const SizeType globalIndex, const float conversion=1e6f, const float samplingRate=30000.f, const float bitVolts=0.05f, const std::array< float, 3 > position={0.f, 0.f, 0.f}, const std::string comments="no comments")
Constructor.
Definition Channel.cpp:7
std::string getName() const
Get the name of the channel.
Definition Channel.hpp:87
float getConversion() const
Getter for conversion factor.
Definition Channel.hpp:63
~Channel()
Destructor.
Definition Channel.cpp:30
void setComments(const std::string &comments)
Set comments about the channel.
Definition Channel.hpp:123
Channel(Channel &&other)=default
Move constructor.
std::string getComments() const
Get comments about the channel.
Definition Channel.hpp:117
float getBitVolts() const
Getter for bitVolts floating point value of microvolts per bit.
Definition Channel.hpp:75
std::string m_name
Name of the channel.
Definition Channel.hpp:147
SizeType getGlobalIndex() const
Get the index of the channel across the recording system.
Definition Channel.hpp:105
float m_samplingRate
Sampling rate of the channel.
Definition Channel.hpp:177
SizeType getLocalIndex() const
Get the index of the channel within the recording array.
Definition Channel.hpp:99
Channel & operator=(Channel &&other)=default
Move assignment operator.
SizeType m_localIndex
Index of channel within the recording array.
Definition Channel.hpp:162
std::string m_groupName
Name of the array group the channel belongs to.
Definition Channel.hpp:152
Channel(const Channel &other)=default
Copy constructor.
float m_conversion
Conversion factor.
Definition Channel.hpp:172
std::string getGroupName() const
Get the name of the array group the channel belongs to.
Definition Channel.hpp:81
std::array< float, 3 > m_position
Coordinates of channel (x, y, z) within the recording array.
Definition Channel.hpp:187
std::string m_comments
Comments about the channel.
Definition Channel.hpp:192
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