forked from hundlab/LongQt-model
-
Notifications
You must be signed in to change notification settings - Fork 0
/
pvarsvoltageclamp.h
41 lines (34 loc) · 1.28 KB
/
pvarsvoltageclamp.h
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
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
#ifndef PVARSVOLTAGECLAMP_H
#define PVARSVOLTAGECLAMP_H
#include "protocol.h"
#include "cellpvars.h"
class PvarsVoltageClamp : public CellPvars {
public:
//Types
struct SIonChanParam : IonChanParam {
double paramVal; // value for that cell
virtual string str(string name) override;
SIonChanParam() = default;
SIonChanParam(const IonChanParam& other): IonChanParam(other) {};
virtual ~SIonChanParam() = default;
};
//Functions
PvarsVoltageClamp(Protocol* proto);
PvarsVoltageClamp(const PvarsVoltageClamp&);
virtual ~PvarsVoltageClamp() = default;
virtual CellPvars* clone();
void protocol(Protocol *proto);
virtual void setIonChanParams();
virtual void calcIonChanParams();
void calcIonChanParam(SIonChanParam* param);
virtual void writePvars(QXmlStreamWriter& xml);
virtual void readPvars(QXmlStreamReader& xml);
void handlePvars(QXmlStreamReader& xml);
void handlePvar(QXmlStreamReader& xml);
virtual void insert(string,IonChanParam);
private:
map<string,SIonChanParam*>* __pvars =
(reinterpret_cast<map<string,SIonChanParam*>*>(&this->pvars));
Protocol* proto;
};
#endif