23#ifndef RECORDING_BACKEND_ASCII_H
24#define RECORDING_BACKEND_ASCII_H
169 const std::vector< std::
string >& double_value_names,
170 const std::vector< std::
string >& long_value_names ) override;
201 void set_value_names(
const std::vector< std::string >&,
const std::vector< std::string >& );
203 void write(
const Event&,
const std::vector< double >&,
const std::vector< long >& );
220 std::string compute_filename_()
const;
223 typedef std::vector< std::map< size_t, DeviceData > >
data_map;
Dictionary class for interface to Python and C++ API.
Definition dictionary.h:213
Encapsulate information sent between nodes.
Definition event.h:103
ASCII specialization of the RecordingBackend interface.
Definition recording_backend_ascii.h:152
void get_device_defaults(Dictionary &) const override
Return the per-device defaults by writing it to the given params dictionary.
Definition recording_backend_ascii.cpp:207
void set_value_names(const RecordingDevice &device, const std::vector< std::string > &double_value_names, const std::vector< std::string > &long_value_names) override
To make the names of recorded quantities known to the RecordingBackend, the vectors double_value_name...
Definition recording_backend_ascii.cpp:94
void check_device_status(const Dictionary &) const override
Check if the given per-device properties are valid and usable by the backend.
Definition recording_backend_ascii.cpp:200
void initialize() override
Definition recording_backend_ascii.cpp:50
void get_device_status(const RecordingDevice &device, Dictionary &) const override
Return the per-device status of the given recording device by writing it to the given params dictiona...
Definition recording_backend_ascii.cpp:214
void post_run_hook() override
Flush files after a single call to Run.
Definition recording_backend_ascii.cpp:113
~RecordingBackendASCII() override
Definition recording_backend_ascii.cpp:45
data_map device_data_
Definition recording_backend_ascii.h:224
void prepare() override
Prepare the backend at begin of the NEST Simulate function.
Definition recording_backend_ascii.cpp:176
void pre_run_hook() override
Initialize global backend-specific data structures.
Definition recording_backend_ascii.cpp:107
void cleanup() override
Clean up the backend at the end of a user level call to the NEST Simulate function.
Definition recording_backend_ascii.cpp:131
void write(const RecordingDevice &, const Event &, const std::vector< double > &, const std::vector< long > &) override
Write the data from the event to the backend specific channel together with the values given.
Definition recording_backend_ascii.cpp:143
void finalize() override
Definition recording_backend_ascii.cpp:57
void set_status(const Dictionary &) override
Set the status of the recording backend using the key-value pairs contained in the params dictionary.
Definition recording_backend_ascii.cpp:188
void enroll(const RecordingDevice &device, const Dictionary ¶ms) override
Enroll a RecordingDevice with the RecordingBackend.
Definition recording_backend_ascii.cpp:63
void get_status(Dictionary &) const override
Return the status of the recording backend by writing it to the given params dictionary.
Definition recording_backend_ascii.cpp:194
std::vector< std::map< size_t, DeviceData > > data_map
Definition recording_backend_ascii.h:223
RecordingBackendASCII()
Definition recording_backend_ascii.cpp:41
void disenroll(const RecordingDevice &device) override
Disenroll a RecordingDevice from the RecordingBackend.
Definition recording_backend_ascii.cpp:81
static const unsigned int ASCII_REC_BACKEND_VERSION
Definition recording_backend_ascii.h:154
void post_step_hook() override
Do work required at the end of each simulation step.
Definition recording_backend_ascii.cpp:125
const std::string compute_vp_node_id_string_(const RecordingDevice &device) const
Definition recording_backend_ascii.cpp:161
Abstract base class for all NESTio recording backends.
Definition recording_backend.h:67
Base class for all recording devices.
Definition recording_device.h:157
Namespace for the NEST simulation kernel.
Definition beta_normalization_factor.h:33
Definition recording_backend_ascii.h:198
std::string label_
The label of the device.
Definition recording_backend_ascii.h:215
std::string file_extension_
File name extension without leading ".".
Definition recording_backend_ascii.h:214
std::string vp_node_id_string_
The vp and node ID component of the filename.
Definition recording_backend_ascii.h:213
std::string modelname_
File name up to but not including the ".".
Definition recording_backend_ascii.h:212
std::vector< std::string > double_value_names_
names for values of type double
Definition recording_backend_ascii.h:217
bool time_in_steps_
Should time be recorded in steps (ms if false)
Definition recording_backend_ascii.h:211
std::vector< std::string > long_value_names_
names for values of type long
Definition recording_backend_ascii.h:218
std::ofstream file_
File stream to use for the device.
Definition recording_backend_ascii.h:216
long precision_
Number of decimal places used when writing decimal values.
Definition recording_backend_ascii.h:210