NEST main@caf0ae8
 
Loading...
Searching...
No Matches
pseudo_recording_device.h
Go to the documentation of this file.
1/*
2 * pseudo_recording_device.h
3 *
4 * This file is part of NEST.
5 *
6 * Copyright (C) 2004 The NEST Initiative
7 *
8 * NEST is free software: you can redistribute it and/or modify
9 * it under the terms of the GNU General Public License as published by
10 * the Free Software Foundation, either version 2 of the License, or
11 * (at your option) any later version.
12 *
13 * NEST is distributed in the hope that it will be useful,
14 * but WITHOUT ANY WARRANTY; without even the implied warranty of
15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16 * GNU General Public License for more details.
17 *
18 * You should have received a copy of the GNU General Public License
19 * along with NEST. If not, see <http://www.gnu.org/licenses/>.
20 *
21 */
22
23#ifndef PSEUDO_RECORDING_DEVICE_H
24#define PSEUDO_RECORDING_DEVICE_H
25
26// C++ includes:
27#include <fstream>
28#include <vector>
29
30// Includes from nestkernel:
31#include "device.h"
32#include "nest_types.h"
33
34
35namespace nest
36{
37
72{
73
74public:
78 {
79 }
80
85 bool is_active( Time const& T ) const override;
86};
87
92
97
98inline bool
100{
101 const long stamp = T.get_steps();
102
103 return get_t_min_() < stamp and stamp <= get_t_max_();
104}
105
106} // namespace
107
108#endif /* #ifndef PSEUDO_RECORDING_DEVICE_H */
Class implementing common interface and properties common for all devices.
Definition device.h:60
long get_t_min_() const
Return lower limit in steps.
Definition device.h:213
long get_t_max_() const
Return upper limit in steps.
Definition device.h:219
Common properties of all pseudo-recording devices.
Definition pseudo_recording_device.h:72
~PseudoRecordingDevice() override
Definition pseudo_recording_device.h:77
bool is_active(Time const &T) const override
Indicate if recording device is active.
Definition pseudo_recording_device.h:99
PseudoRecordingDevice()
Definition pseudo_recording_device.h:88
Definition nest_time.h:135
long get_steps() const
Definition nest_time.h:504
Namespace for the NEST simulation kernel.
Definition beta_normalization_factor.h:33