mirror of
https://git.gfz-potsdam.de/naaice/iphreeqc.git
synced 2025-12-16 16:44:49 +01:00
git-svn-id: svn://136.177.114.72/svn_GW/phreeqcpp/branches/ErrorHandling@6019 1feff8c3-07ed-0310-ac33-dd36852eb9cd
62 lines
1.4 KiB
C++
62 lines
1.4 KiB
C++
#if !defined(SSASSEMBLAGE_H_INCLUDED)
|
|
#define SSASSEMBLAGE_H_INCLUDED
|
|
|
|
|
|
#include <cassert> // assert
|
|
#include <map> // std::map
|
|
#include <string> // std::string
|
|
#include <list> // std::list
|
|
#include <vector> // std::vector
|
|
|
|
#include "NumKeyword.h"
|
|
#include "NameDouble.h"
|
|
#include "Phreeqc_class.h"
|
|
|
|
class cxxSS;
|
|
|
|
//#include "cxxMix.h"
|
|
class cxxMix;
|
|
|
|
class cxxSSassemblage:public cxxNumKeyword
|
|
{
|
|
|
|
public:
|
|
cxxSSassemblage(PHRQ_io * io = NULL);
|
|
cxxSSassemblage(struct ss_assemblage *, PHRQ_io * io = NULL);
|
|
cxxSSassemblage(const std::map < int, cxxSSassemblage > &entity_map,
|
|
cxxMix & mx, int n_user, PHRQ_io * io = NULL);
|
|
~cxxSSassemblage();
|
|
|
|
//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;
|
|
|
|
void read_raw(CParser & parser, bool check = true);
|
|
const std::map <std::string, cxxSS > & Get_ssAssemblageSSs() const
|
|
{
|
|
return this->ssAssemblageSSs;
|
|
};
|
|
|
|
#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 totalize(PHREEQC_PTR_ARG);
|
|
|
|
const cxxNameDouble & Get_totals() const
|
|
{
|
|
return this->totals;
|
|
};
|
|
|
|
|
|
protected:
|
|
void add(const cxxSSassemblage & addee, double extensive);
|
|
|
|
protected:
|
|
std::map < std::string, cxxSS > ssAssemblageSSs;
|
|
cxxNameDouble totals;
|
|
|
|
};
|
|
|
|
#endif // !defined(SSASSEMBLAGE_H_INCLUDED)
|