34 #include <boost/archive/binary_oarchive.hpp> 35 #include <boost/archive/binary_iarchive.hpp> 54 static int device_id_count;
58 template<
class Archive>
59 void serialize(Archive & ar,
const unsigned int version)
73 virtual void virtual_serialize(boost::archive::binary_oarchive & ar,
const unsigned int version ) ;
74 virtual void virtual_serialize(boost::archive::binary_iarchive & ar,
const unsigned int version ) ;
105 BOOST_SERIALIZATION_ASSUME_ABSTRACT(
Device)
virtual void execute()
Definition: Device.h:102
virtual void evolve()
Definition: Device.h:99
Class that implements system wide variables and methods to manage and run simulations.
Definition: System.h:70
virtual ~Device()
Standard destructor.
Definition: Device.cpp:46
virtual void flush()
Flush to file.
Definition: Device.cpp:58
Logger * logger
Global pointer to instance of Logger which needs to be initialized in every simulation main program...
Definition: auryn_global.cpp:36
friend class boost::serialization::access
Definition: Device.h:57
void set_name(std::string s)
Set device name.
Definition: Device.cpp:62
void init()
Standard initializer to be called by the constructor.
Definition: Device.cpp:32
Definition: ABSConnection.h:38
A generic logger class that logs to screen and a log-file.
Definition: Logger.h:48
int get_id()
Get numeric device id.
Definition: Device.cpp:72
Device()
Standard constructor.
Definition: Device.cpp:41
bool active
Standard active switch.
Definition: Device.h:78
System * sys
Global pointer to instance of System which needs to be initialized in every simulation main program...
Definition: auryn_global.cpp:37
std::string device_name
Identifying name for device.
Definition: Device.h:67
std::string get_name()
Get device name.
Definition: Device.cpp:67
virtual void virtual_serialize(boost::archive::binary_oarchive &ar, const unsigned int version)
Definition: Device.cpp:50
Abstract base class for all Device, Stimulator, etc objects.
Definition: Device.h:47
std::string string
Standard library string type which is imported into Auryn namespace.
Definition: auryn_definitions.h:156