iphreeqc/phreeqcpp/Pressure.h
Scott Charlton 1d5c59a175 Add 'phreeqcpp/' from commit 'da9d06b423a87ed5eae503c0faf779ac11c96027'
git-subtree-dir: phreeqcpp
git-subtree-mainline: ba5f2ba885b4cc757201e28f9b4dce158f7cc66b
git-subtree-split: da9d06b423a87ed5eae503c0faf779ac11c96027
2018-07-31 16:56:09 -06:00

44 lines
1.3 KiB
C++

#if !defined(PRESSURE_H_INCLUDED)
#define PRESSURE_H_INCLUDED
#include <cassert> // assert
#include <map> // std::map
#include <string> // std::string
#include <list> // std::list
#include <vector> // std::vector
#include "NumKeyword.h"
class Dictionary;
class cxxPressure:public cxxNumKeyword
{
public:
cxxPressure(PHRQ_io *io=NULL);
~cxxPressure();
//void dump_xml(std::ostream& os, unsigned int indent = 0)const;
void dump_raw(std::ostream & s_oss, unsigned int indent, int *n_out=NULL) const;
int read(CParser & parser);
void read_raw(CParser & parser, bool check = false);
LDBLE Pressure_for_step(int step_number);
std::vector<LDBLE> & Get_pressures(void) {return pressures;}
const std::vector<LDBLE> & Get_pressures(void)const {return pressures;}
int Get_count(void) const;
void Set_count(int i) {count = i;}
bool Get_equalIncrements(void) const {return equalIncrements;}
void Set_equalIncrements(bool tf) {equalIncrements = tf;}
void Serialize(Dictionary & dictionary, std::vector < int >&ints, std::vector < double >&doubles);
void Deserialize(Dictionary & dictionary, std::vector < int >&ints, std::vector < double >&doubles, int &ii, int &dd);
protected:
std::vector < LDBLE >pressures;
int count;
bool equalIncrements;
const static std::vector < std::string > vopts;
};
#endif // !defined(PRESSURE_H_INCLUDED)