Skip to content
Snippets Groups Projects
Commit be26448a authored by w.klijn's avatar w.klijn
Browse files

Rename do_export to output

parent 29e971a0
No related branches found
No related tags found
No related merge requests found
......@@ -88,13 +88,13 @@ int main(int argc, char** argv) {
m.set_global_spike_callback(file_export_type::do_nothing);
m.set_local_spike_callback(
[&](const std::vector<spike_type>& spikes) {
file_exporter->do_export(spikes);
file_exporter->output(spikes);
});
}
else {
m.set_global_spike_callback(
[&](const std::vector<spike_type>& spikes) {
file_exporter->do_export(spikes);
file_exporter->output(spikes);
});
m.set_local_spike_callback(file_export_type::do_nothing);
}
......
......@@ -22,7 +22,7 @@ public:
using spike_type = spike<cell_member_type, time_type>;
// Performs the export of the data
virtual void do_export(const std::vector<spike_type>&) = 0;
virtual void output(const std::vector<spike_type>&) = 0;
// Returns the status of the exporter
virtual bool good() const = 0;
......
......@@ -51,7 +51,7 @@ public:
// Performs the a export of the spikes to file
// one id and spike time with 4 decimals after the comma on a
// line space separated
void do_export(const std::vector<spike_type>& spikes) override
void output(const std::vector<spike_type>& spikes) override
{
for (auto spike : spikes) {
char linebuf[45];
......
......@@ -100,7 +100,7 @@ int main(int argc, char** argv)
for (auto idx = 0; idx < nr_repeats; ++idx) {
auto time_start = timer::tic();
exporter.do_export(spikes);
exporter.output(spikes);
auto run_time = timer::toc(time_start);
time_total += run_time;
timings_arr[idx] = run_time;
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment