mirror of
https://git.gfz-potsdam.de/naaice/iphreeqc.git
synced 2025-12-16 08:38:23 +01:00
git-svn-id: svn://136.177.114.72/svn_GW/phreeqc3/trunk@6359 1feff8c3-07ed-0310-ac33-dd36852eb9cd
53 lines
1.8 KiB
C++
53 lines
1.8 KiB
C++
#if !defined(ISOLUTION_H_INCLUDED)
|
|
#define ISOLUTION_H_INCLUDED
|
|
|
|
#include <cassert> // assert
|
|
#include <map> // std::map
|
|
#include <string> // std::string
|
|
#include <list> // std::list
|
|
#include <vector> // std::vector
|
|
#include <set> // std::set
|
|
#include <iostream>
|
|
#include <sstream>
|
|
#include <fstream>
|
|
|
|
#include "ISolutionComp.h"
|
|
#include "PHRQ_base.h"
|
|
#include "NameDouble.h"
|
|
#include "global_structures.h"
|
|
class cxxISolution: public PHRQ_base
|
|
{
|
|
|
|
public:
|
|
cxxISolution(PHRQ_io *io=NULL);
|
|
cxxISolution(const cxxISolution *is);
|
|
virtual ~cxxISolution();
|
|
std::string Get_units() const {return units;}
|
|
void Set_units(std::string l_units) {units = l_units;}
|
|
void Set_units(const char * l_units)
|
|
{
|
|
if (l_units != NULL)
|
|
this->units = std::string(l_units);
|
|
else
|
|
this->units.clear();
|
|
}
|
|
std::string Get_default_pe() const {return default_pe;}
|
|
void Set_default_pe(std::string pe) {default_pe = pe;}
|
|
std::map < std::string, cxxISolutionComp > &Get_comps(void) {return this->comps;}
|
|
const std::map < std::string, cxxISolutionComp > &Get_comps(void)const {return this->comps;}
|
|
void Set_comps(std::map < std::string, cxxISolutionComp > &c) {this->comps = c;}
|
|
std::map < std::string, cxxChemRxn > &Get_pe_reactions(void) {return this->pe_reactions;}
|
|
void Set_pe_reactions(std::map < std::string, cxxChemRxn > &pe) {this->pe_reactions = pe;}
|
|
//void dump_xml(std::ostream& os, unsigned int indent = 0)const;
|
|
//void ConvertUnits(PHREEQC_PTR_ARG);
|
|
|
|
protected:
|
|
friend class cxxISolutionComp; // for this->pe access
|
|
std::string units;
|
|
std::map < std::string, cxxISolutionComp > comps;
|
|
std::map <std::string, cxxChemRxn > pe_reactions;
|
|
std::string default_pe;
|
|
};
|
|
|
|
#endif // !defined(ISOLUTION_H_INCLUDED)
|