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
46 lines
889 B
C++
46 lines
889 B
C++
#if !defined(CHARTHANDLER_H_INCLUDED)
|
|
#define CHARTHANDLER_H_INCLUDED
|
|
#if defined MULTICHART
|
|
#include <vector>
|
|
#include <map>
|
|
#include <string>
|
|
#include "Parser.h"
|
|
#include "ChartObject.h"
|
|
#include "PHRQ_base.h"
|
|
|
|
class ChartHandler: public PHRQ_base
|
|
{
|
|
|
|
public:
|
|
ChartHandler(PHRQ_io *io = NULL);
|
|
virtual ~ChartHandler();
|
|
|
|
size_t Get_chart_count()
|
|
{
|
|
return this->chart_map.size();
|
|
}
|
|
ChartObject * Get_current_chart()
|
|
{
|
|
return this->current_chart;
|
|
}
|
|
bool Get_timer()
|
|
{
|
|
return timer;
|
|
}
|
|
bool Read(Phreeqc * phreeqc_ptr, CParser &parser);
|
|
void Punch_user_graph(Phreeqc * phreeqc_ptr);
|
|
bool End_timer();
|
|
bool dump(std::ostream & oss, unsigned int indent);
|
|
protected:
|
|
std::map<int, ChartObject *> chart_map;
|
|
int current_chart_n_user;
|
|
ChartObject * current_chart;
|
|
bool u_g_defined;
|
|
bool timer;
|
|
|
|
public:
|
|
|
|
};
|
|
#endif // MULTICHART
|
|
#endif // !defined(CHARTHANDLER_H_INCLUDED)
|