iphreeqc/SSassemblageSS.h
David L Parkhurst fdd1cee2a2 Phreeqc_class.h case in #include statements.
Fixed warnings and errors in Unix.
Updated Makefile for class only versions.



git-svn-id: svn://136.177.114.72/svn_GW/phreeqcpp/branches/ErrorHandling@5728 1feff8c3-07ed-0310-ac33-dd36852eb9cd
2011-11-02 18:44:50 +00:00

91 lines
2.1 KiB
C++

#if !defined(SSASSEMBLAGESS_H_INCLUDED)
#define SSASSEMBLAGESS_H_INCLUDED
#include <cassert> // assert
#include <map> // std::map
#include <string> // std::string
#include <list> // std::list
#include <vector> // std::vector
#include "NameDouble.h"
#include "Phreeqc_class.h"
class cxxSSassemblageSS: public PHRQ_base
{
public:
cxxSSassemblageSS(PHRQ_io *io=NULL);
cxxSSassemblageSS(struct s_s *, PHRQ_io *io=NULL);
~cxxSSassemblageSS();
enum SS_PARAMETER_TYPE
{
SS_PARM_NONE = -1,
SS_PARM_A0_A1 = 0,
SS_PARM_GAMMAS = 1,
SS_PARM_DIST_COEF = 2,
SS_PARM_MISCIBILITY = 3,
SS_PARM_SPINODAL = 4,
SS_PARM_CRITICAL = 5,
SS_PARM_ALYOTROPIC = 6,
SS_PARM_DIM_GUGG = 7,
SS_PARM_WALDBAUM = 8,
SS_PARM_MARGULES = 9
};
void dump_xml(std::ostream & os, unsigned int indent = 0) const;
void dump_raw(std::ostream & s_oss, unsigned int indent) const;
void read_raw(CParser & parser, bool check = true);
const std::string &Get_name() const
{
return this->name;
}
void Set_name (const char * s)
{
if (s != NULL)
this->name = std::string(s);
else
this->name.clear();
}
void totalize(PHREEQC_PTR_ARG);
const cxxNameDouble & Get_totals() const
{
return (this->totals);
};
const cxxNameDouble & Get_comps() const
{
return (this->comps);
};
#ifdef USE_MPI
void mpi_pack(std::vector < int >&ints, std::vector < double >&doubles);
void mpi_unpack(int *ints, int *ii, double *doubles, int *dd);
#endif
void add(const cxxSSassemblageSS & comp, double extensive);
void multiply(double extensive);
double Get_a0() const {return (this->a0);};
double Get_a1() const {return (this->a1);};
double Get_ag0() const {return (this->ag0);};
double Get_ag1() const {return (this->ag1);};
bool Get_miscibility() const {return (this->miscibility);};
double Get_xb1() const {return (this->xb1);};
double Get_xb2() const {return (this->xb2);};
protected:
std::string name;
cxxNameDouble comps;
double a0, a1;
double ag0, ag1;
bool miscibility;
double xb1, xb2;
cxxNameDouble totals;
public:
};
#endif // !defined(SSASSEMBLAGESS_H_INCLUDED)