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");
63 inline float getConversion()
const {
return m_bitVolts / m_conversion; }
87 inline std::string
getName()
const {
return m_name; }
111 inline const std::array<float, 3>&
getPosition()
const {
return m_position; }
125 m_comments = comments;
134 m_position = position;
141 inline void setName(
const std::string& name) { m_name = name; }
147 std::string m_comments;
152 std::array<float, 3> m_position;
177 std::string m_groupName;
187 float m_samplingRate;
AQNWB::Types::SizeType SizeType
Definition BaseIO.hpp:16
Class for storing acquisition system channel information.
Definition Channel.hpp:16
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.
void setName(const std::string &name)
Set name of the channel.
Definition Channel.hpp:141
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
SizeType getGlobalIndex() const
Get the index of the channel across the recording system.
Definition Channel.hpp:105
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.
Channel(const Channel &other)=default
Copy constructor.
std::string getGroupName() const
Get the name of the array group the channel belongs to.
Definition Channel.hpp:81
size_t SizeType
Alias for the size type used in the project.
Definition Types.hpp:30
The main namespace for AqNWB.