- adjust example main.cpp for test of rawmerge.hpp

- add getter methods including get_num_channels in rawmerge.hpp
This commit is contained in:
Mario Fink 2020-08-11 16:07:48 +02:00
parent 99e10a4f41
commit 9bbbada6c9
2 changed files with 8 additions and 0 deletions

View File

@ -65,6 +65,12 @@ public:
return this->timeseries_; return this->timeseries_;
} }
// get number of channels
unsigned long int get_num_channels()
{
return this->channels_.size();
}
// get array representation i-th channel // get array representation i-th channel
std::vector<double> get_channel(long unsigned int chidx) std::vector<double> get_channel(long unsigned int chidx)
{ {

View File

@ -36,6 +36,8 @@ int main(int argc, char* argv[])
raw_merger eatmea; raw_merger eatmea;
eatmea.add_channel(rawfile,true); eatmea.add_channel(rawfile,true);
eatmea.add_channel("smp/VehicleSpeed_HS.raw",true); eatmea.add_channel("smp/VehicleSpeed_HS.raw",true);
eatmea.add_channel("smp/VehicleSpeed_HS.raw",true);
eatmea.add_channel("smp/Rangerover_Evoque_F-RR534_2019-05-07/Temp_Disc_FR.raw",true);
//eatraw.show_markers(); //eatraw.show_markers();