iphreeqc/System.h
David L Parkhurst 9f4eefd214 Made all the changes to add phreeqc pointer as argument to
Phreeqcpp class methods.

Still compiles on Debug and Release, but problem with
phrq_malloc in cvdense and cvode.

git-svn-id: svn://136.177.114.72/svn_GW/phreeqcpp/trunk@3876 1feff8c3-07ed-0310-ac33-dd36852eb9cd
2009-12-08 18:09:39 +00:00

101 lines
2.2 KiB
C++

#if !defined(SYSTEM_H_INCLUDED)
#define SYSTEM_H_INCLUDED
//#include "Solution.h"
//#include "Exchange.h"
//#include "GasPhase.h"
//#include "cxxKinetics.h"
//#include "PPassemblage.h"
//#include "SSassemblage.h"
//#include "Surface.h"
//#include "cxxMix.h"
//#include "Reaction.h"
//#include "Temperature.h"
#include "NameDouble.h"
class cxxSolution;
class cxxExchange;
class cxxGasPhase;
class cxxKinetics;
class cxxPPassemblage;
class cxxSSassemblage;
class cxxSurface;
class cxxReaction;
class cxxTemperature;
class cxxMix;
class cxxSystem
{
public:
cxxSystem(void);
~cxxSystem(void);
void Initialize(void);
void setSolution(cxxSolution * entity)
{
this->solution = entity;
}
void setExchange(cxxExchange * entity)
{
this->exchange = entity;
}
void setPPassemblage(cxxPPassemblage * entity)
{
this->ppassemblage = entity;
}
void setGasPhase(cxxGasPhase * entity)
{
this->gasphase = entity;
}
void setSSassemblage(cxxSSassemblage * entity)
{
this->ssassemblage = entity;
}
void setKinetics(cxxKinetics * entity)
{
this->kinetics = entity;
}
void setSurface(cxxSurface * entity)
{
this->surface = entity;
}
void setMix(cxxMix * entity)
{
this->mix = entity;
}
void setReaction(cxxReaction * entity)
{
this->reaction = entity;
}
void setTemperature(cxxTemperature * entity)
{
this->temperature = entity;
}
void totalize(PHREEQC_PTR_ARG);
#ifdef ORCHESTRA
void ORCH_components();
void ORCH_write(std::ostream & chemistry_dat, std::ostream & input_dat,
std::ostream & output_dat);
void ORCH_write_chemistry_water(std::ostream & chemistry_dat);
void ORCH_write_chemistry_primary(std::ostream & chemistry_dat);
void ORCH_write_chemistry_total_O_H(std::ostream & chemistry_dat);
void ORCH_write_output_vars(std::ostream & outstream);
void ORCH_write_input(std::ostream & input_dat);
#endif /* */
private:
cxxSolution * solution;
cxxExchange * exchange;
cxxPPassemblage * ppassemblage;
cxxGasPhase * gasphase;
cxxSSassemblage * ssassemblage;
cxxKinetics * kinetics;
cxxSurface * surface;
cxxMix * mix;
cxxReaction * reaction;
cxxTemperature * temperature;
cxxNameDouble totals;
cxxNameDouble orch_totals;
};
#endif // !defined(SYSTEM_H_INCLUDED)