summaryrefslogtreecommitdiff
path: root/code/core/tracepoints.h
blob: d0ea9fe28368b687e879a7bb70a2e59664c236ee (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
#ifndef TRACEPOINTS_H
#define TRACEPOINTS_H

#include <list>
#include <set>

#include "interface.h"
#include "bin.h"
#include "event.h"

// read tracepoints from fd and execute them
bool executeTracepoints(FILE *fd_trace, FILE *fd_spike, FILE *fd_global);

template<class T>
class FileInputEvent : public VirtualEvent {
public:
  FileInputEvent<T>(InputInterface<T> *iface, double time) : VirtualEvent(time), iface(iface) {}
  static void createInputStream(InputInterface<T> *iface);
  void vexecute();

  InputInterface<T> *iface;
};


#endif // TRACEPOINTS_H
contact: Jan Huwald // Impressum