iphreeqc/StorageBinList.h
David L Parkhurst 0a98983f48 Think reaction_pressure is done.
worked on dumper and copy.

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

63 lines
2.1 KiB
C++

#if !defined(STORAGEBINLIST_H_INCLUDED)
#define STORAGEBINLIST_H_INCLUDED
#include <set> // std::set
#include <string> // std::string
#include <list> // std::list
#include <vector> // std::vector
#include "PHRQ_base.h"
class CParser;
class StorageBinListItem
{
public:
StorageBinListItem(void);
StorageBinListItem(CParser & parser);
~StorageBinListItem(void);
void Set_defined(bool tf) { this->defined = tf; };
bool Get_defined(void) { return(this->defined); };
void Augment(std::string token);
void Augment(int i);
std::set < int > &Get_numbers(void) { return(this->numbers); };
void Clear(void) { this->numbers.clear(); };
protected:
std::set < int > numbers;
bool defined;
};
class StorageBinList: public PHRQ_base
{
public:
StorageBinList(PHRQ_io *io=NULL);
StorageBinList(CParser & parser, PHRQ_io *io=NULL);
~StorageBinList(void);
bool Read(CParser & parser);
void SetAll(bool tf);
void TransferAll(StorageBinListItem &source);
StorageBinListItem & Get_solution(void) { return(this->solution); };
StorageBinListItem & Get_pp_assemblage(void) { return(this->pp_assemblage); };
StorageBinListItem & Get_exchange(void) { return(this->exchange); };
StorageBinListItem & Get_surface(void) { return(this->surface); };
StorageBinListItem & Get_s_s_assemblage(void) { return(this->s_s_assemblage); };
StorageBinListItem & Get_gas_phase(void) { return(this->gas_phase); };
StorageBinListItem & Get_kinetics(void) { return(this->kinetics); };
StorageBinListItem & Get_mix(void) { return(this->mix); };
StorageBinListItem & Get_reaction(void) { return(this->reaction); };
StorageBinListItem & Get_temperature(void) { return(this->temperature); };
StorageBinListItem & Get_pressure(void) { return(this->pressure); };
protected:
StorageBinListItem solution;
StorageBinListItem pp_assemblage;
StorageBinListItem exchange;
StorageBinListItem surface;
StorageBinListItem s_s_assemblage;
StorageBinListItem gas_phase;
StorageBinListItem kinetics;
StorageBinListItem mix;
StorageBinListItem reaction;
StorageBinListItem temperature;
StorageBinListItem pressure;
};
#endif // !defined(STORAGEBINLIST_H_INCLUDED)