37 #ifndef _SIMPLESTIMULUS_HPP_
38 #define _SIMPLESTIMULUS_HPP_
41 #include <boost/serialization/base_object.hpp>
43 #include "AbstractStimulusFunction.hpp"
59 template<
class Archive>
60 void serialize(Archive & archive,
const unsigned int version)
63 archive & boost::serialization::base_object<AbstractStimulusFunction>(*this);
91 SimpleStimulus(
double magnitudeOfStimulus,
double duration,
double timeOfStimulus=0.0);
120 namespace serialization
126 template<
class Archive>
127 inline void load_construct_data(
128 Archive & ar,
SimpleStimulus * t,
const unsigned int file_version)
141 #endif //_SIMPLESTIMULUS_HPP_
void serialize(Archive &archive, const unsigned int version)
SimpleStimulus(double magnitudeOfStimulus, double duration, double timeOfStimulus=0.0)
friend class boost::serialization::access
void SetStartTime(double startTime)
double mMagnitudeOfStimulus
#define CHASTE_CLASS_EXPORT(T)
double GetStimulus(double time)
virtual ~SimpleStimulus()