You need to sign in or sign up before continuing.
Newer
Older
Malaurie Bernard
committed
#include "syringefilled.h"
Malaurie Bernard
committed
void SyringeFilled :: set_exchange_throughput_uL_per_sec(float exchange_throughput_uL_per_sec)
{
SyringeFilledJSON["throughput_uL_per_sec"] = exchange_throughput_uL_per_sec;
}
void SyringeFilled :: set_exchange_volume_mL(float exchange_volume_mL)
{
SyringeFilledJSON["exchange_volume_mL"] = exchange_volume_mL;
}
void SyringeFilled :: set_remaining_volume_mL(float remaining_volume_mL)
{
SyringeFilledJSON["remaining_volume_mL"] = remaining_volume_mL;
}
void SyringeFilled :: set_push(bool push)
{
SyringeFilledJSON["push"] = push;
}
void SyringeFilled :: set_id_syringe(int* id_syringe){
SyringeFilledJSON["id_syringe"] = id_syringe;
Malaurie Bernard
committed
}
Malaurie Bernard
committed
float SyringeFilled :: get_exchange_throughput_uL_per_sec()
{
return SyringeFilledJSON["exchange_throughput_uL_per_sec"].as<float>();
}
float SyringeFilled :: get_exchange_volume_mL()
{
return SyringeFilledJSON["exchange_volume_mL"].as<float>();
}
float SyringeFilled :: get_remaining_volume_mL()
{
return SyringeFilledJSON["remaining_volume_mL"].as<float>();
}
bool SyringeFilled :: get_push()
{
return SyringeFilledJSON["push"].as<bool>();
}
int* SyringeFilled :: get_id_syringe()
Malaurie Bernard
committed
{
return SyringeFilledJSON["id_syringe"].as<int*>();
Malaurie Bernard
committed
}
void SyringeFilled :: setupJsonSyringeFilled(float exchange_throughput_uL_per_sec, float exchange_volume_mL, float remaining_volume_mL, bool push, int* id_syringe)
Malaurie Bernard
committed
{
//ADD INITIALISATION VALUES TO THE DOC
SyringeFilledJSON["exchange_throughput_uL_per_sec"] = exchange_throughput_uL_per_sec;
SyringeFilledJSON["exchange_volume_mL"] = exchange_volume_mL;
SyringeFilledJSON["remaining_volume_mL"] = remaining_volume_mL;
SyringeFilledJSON["push"] = push;
SyringeFilledJSON["id_syringe"] = SyringeJSON["id"];