mirror of
https://git.gfz-potsdam.de/naaice/iphreeqc.git
synced 2025-12-16 08:38:23 +01:00
Replaced all PHREEQC_PTR, P_INSTANCE, p_instance1. Now uses Phreeqc * phreeqc_ptr for Phreeqc cookies. git-svn-id: svn://136.177.114.72/svn_GW/phreeqc3/trunk@6509 1feff8c3-07ed-0310-ac33-dd36852eb9cd
90 lines
1.7 KiB
C++
90 lines
1.7 KiB
C++
#if !defined(SYSTEM_H_INCLUDED)
|
|
#define SYSTEM_H_INCLUDED
|
|
#include "NameDouble.h"
|
|
#include "PHRQ_base.h"
|
|
class cxxSolution;
|
|
class cxxExchange;
|
|
class cxxGasPhase;
|
|
class cxxKinetics;
|
|
class cxxPPassemblage;
|
|
class cxxSSassemblage;
|
|
class cxxSurface;
|
|
class cxxReaction;
|
|
class cxxTemperature;
|
|
class cxxPressure;
|
|
class cxxMix;
|
|
|
|
class cxxSystem: public PHRQ_base
|
|
{
|
|
public:
|
|
cxxSystem(PHRQ_io *io=NULL);
|
|
virtual ~cxxSystem(void);
|
|
void Initialize(void);
|
|
void Set_Solution(cxxSolution * entity)
|
|
{
|
|
this->solution = entity;
|
|
}
|
|
void Set_Exchange(cxxExchange * entity)
|
|
{
|
|
this->exchange = entity;
|
|
}
|
|
void Set_PPassemblage(cxxPPassemblage * entity)
|
|
{
|
|
this->ppassemblage = entity;
|
|
}
|
|
void Set_GasPhase(cxxGasPhase * entity)
|
|
{
|
|
this->gasphase = entity;
|
|
}
|
|
void Set_SSassemblage(cxxSSassemblage * entity)
|
|
{
|
|
this->ssassemblage = entity;
|
|
}
|
|
void Set_Kinetics(cxxKinetics * entity)
|
|
{
|
|
this->kinetics = entity;
|
|
}
|
|
void Set_Surface(cxxSurface * entity)
|
|
{
|
|
this->surface = entity;
|
|
}
|
|
void Set_Mix(cxxMix * entity)
|
|
{
|
|
this->mix = entity;
|
|
}
|
|
void Set_Reaction(cxxReaction * entity)
|
|
{
|
|
this->reaction = entity;
|
|
}
|
|
void Set_Temperature(cxxTemperature * entity)
|
|
{
|
|
this->temperature = entity;
|
|
}
|
|
void Set_Pressure(cxxPressure * entity)
|
|
{
|
|
this->pressure = entity;
|
|
}
|
|
void totalize(Phreeqc * phreeqc_ptr);
|
|
cxxNameDouble &Get_Totals(void)
|
|
{
|
|
return this->totals;
|
|
}
|
|
|
|
protected:
|
|
cxxSolution * solution;
|
|
cxxExchange * exchange;
|
|
cxxPPassemblage * ppassemblage;
|
|
cxxGasPhase * gasphase;
|
|
cxxSSassemblage * ssassemblage;
|
|
cxxKinetics * kinetics;
|
|
cxxSurface * surface;
|
|
cxxMix * mix;
|
|
cxxReaction * reaction;
|
|
cxxTemperature * temperature;
|
|
cxxPressure * pressure;
|
|
cxxNameDouble totals;
|
|
};
|
|
|
|
|
|
#endif // !defined(SYSTEM_H_INCLUDED)
|