forked from hundlab/LongQt-model
-
Notifications
You must be signed in to change notification settings - Fork 0
/
pvarscurrentclamp.h
43 lines (35 loc) · 1.34 KB
/
pvarscurrentclamp.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
42
43
#ifndef PVARSCURRENTCLAMP_H
#define PVARSCURRENTCLAMP_H
#include "protocol.h"
#include "cellpvars.h"
class PvarsCurrentClamp : public CellPvars {
public:
//Types
struct TIonChanParam : IonChanParam {
vector<double> trials; //index -> value
virtual string str(string name) override;
TIonChanParam() = default;
TIonChanParam(const IonChanParam& other): IonChanParam(other) {};
virtual ~TIonChanParam() = default;
};
//Functions
PvarsCurrentClamp(Protocol* proto);
PvarsCurrentClamp(const PvarsCurrentClamp&);
virtual ~PvarsCurrentClamp() = default;
virtual CellPvars* clone();
void protocol(Protocol *proto);
virtual void setIonChanParams();
virtual void calcIonChanParams();
virtual void writePvars(QXmlStreamWriter& xml);
virtual void readPvars(QXmlStreamReader& xml);
void handlePvars(QXmlStreamReader& xml);
void handlePvar(QXmlStreamReader& xml);
pair<int,double> handleTrial(QXmlStreamReader& xml);
virtual void insert(string,IonChanParam);
private:
void calcIonChanParam(TIonChanParam* param);
map<string,TIonChanParam*>* __pvars =
(reinterpret_cast<map<string,TIonChanParam*>*>(&this->pvars));
Protocol* proto;
};
#endif