49 explicit Channel(
const std::deque<Section>& SectionList);
58 explicit Channel(std::size_t c_n_sections, std::size_t section_size = 0);
89 const std::string&
GetYUnits( )
const {
return yunits; }
94 size_t size()
const {
return SectionArray.size(); }
113 const std::deque< Section >&
get()
const {
return SectionArray; }
119 std::deque< Section >&
get() {
return SectionArray; }
131 void SetYUnits(
const std::string& value ) { yunits = value; }
158 std::string name, yunits;
161 std::deque< Section > SectionArray;
Represents a continuously sampled sweep of data points.
#define StfioDll
Defines dll export or import functions for Windows.
const Section & operator[](std::size_t at_) const
Unchecked access to a section (read-only)
const Section & at(std::size_t at_) const
Range-checked access to a section (read-only).
Channel(void)
Default constructor.
Channel(const std::deque< Section > &SectionList)
Constructor.
Section & operator[](std::size_t at_)
Unchecked access to a section (read and write)
const std::deque< Section > & get() const
Low-level access to the section array (read-only).
void resize(std::size_t newSize)
Resize the section array.
void SetYUnits(const std::string &value)
Sets the y units string.
void reserve(std::size_t resSize)
Reserve memory for a number of sections.
std::deque< Section > & get()
Low-level access to the section array (read and write).
void SetChannelName(const std::string &value)
Sets the channel name.
const std::string & GetYUnits() const
Retrieves the y units string.
Channel(std::size_t c_n_sections, std::size_t section_size=0)
Constructor.
Channel(const Section &c_Section)
Constructor.
size_t size() const
Retrieves the size of the section array.
const std::string & GetChannelName() const
Retrieves the channel name.
void InsertSection(const Section &c_Section, std::size_t pos)
Inserts a section at the given position, overwriting anything that's currently stored at that positio...
Section & at(std::size_t at_)
Range-checked access to a section (read and write).
Declares the Section class.