34 Base(
const pugi::xml_node &node,
double dt);
41 virtual void record(
double dt,
unsigned long long timestep) = 0;
49 return (timestep >= m_StartTimeStep && timestep < m_EndTimeStep);
58 unsigned long long m_StartTimeStep;
59 unsigned long long m_EndTimeStep;
75 const scalar *
getStateVarEnd()
const{
return (m_ModelProperty->getHostStateVar() + m_ModelProperty->getSize()); }
79 const std::vector<unsigned int> &
getIndices()
const{
return m_Indices; }
95 std::vector<unsigned int> m_Indices;
104 AnalogueFile(
const pugi::xml_node &node,
double dt,
unsigned long long numTimeSteps,
105 const std::string &port,
unsigned int popSize,
106 const filesystem::path &logPath,
113 virtual void record(
double dt,
unsigned long long timestep)
override;
119 std::ofstream m_File;
122 std::vector<scalar> m_OutputBuffer;
132 const std::string &port,
unsigned int popSize,
134 const filesystem::path &logPath,
141 virtual void record(
double dt,
unsigned long long timestep)
final;
154 unsigned int m_IntervalTimesteps;
157 unsigned int m_CurrentIntervalTimesteps;
167 const std::string &port,
unsigned int popSize,
168 const filesystem::path &logPath,
175 virtual void recordInternal()
override;
185 std::vector<double> m_OutputBuffer;
194 Event(
const pugi::xml_node &node,
double dt,
unsigned long long numTimeSteps,
195 const std::string &port,
unsigned int popSize,
196 const filesystem::path &logPath,
unsigned int *spikeQueuePtr,
197 unsigned int *hostSpikeCount,
unsigned int *hostSpikes,
198 void (*pullCurrentSpikesFunc)(
void));
204 virtual void record(
double dt,
unsigned long long timestep)
override;
210 std::ofstream m_File;
212 const unsigned int m_PopSize;
214 unsigned int *m_SpikeQueuePtr;
215 unsigned int *m_HostSpikeCount;
216 unsigned int *m_HostSpikes;
218 void (*m_PullCurrentSpikesFunc)(void);
220 std::set<unsigned int> m_Indices;
unsigned long long getEndTimestep() const
Definition: logOutput.h:52
Definition: networkClient.h:27
Definition: logOutput.h:191
bool shouldRecord(unsigned long long timestep) const
Definition: logOutput.h:47
Definition: logOutput.h:101
const std::vector< unsigned int > & getIndices() const
Definition: logOutput.h:79
Definition: modelProperty.h:30
virtual ~Base()
Definition: logOutput.h:35
Definition: logOutput.h:163
const scalar * getStateVarBegin() const
Definition: logOutput.h:74
const scalar * getStateVarEnd() const
Definition: logOutput.h:75
unsigned int getModelPropertySize() const
Definition: logOutput.h:77
Definition: logOutput.h:31
Definition: connectors.h:25
virtual void recordInternal()
Definition: logOutput.h:147
Definition: logOutput.h:65
void pullModelPropertyFromDevice() const
Definition: logOutput.h:85
Definition: generateModules.h:16
Definition: connectors.h:12
Definition: logOutput.h:128
float scalar
Definition: modelProperty.h:27