iphreeqc/phreeqcpp/common/PHRQ_base.h
2020-09-15 20:29:41 -06:00

49 lines
778 B
C++

#ifndef _PHRQBASE_H
#define _PHRQBASE_H
#include <sstream>
#include "PHRQ_exports.h"
class PHRQ_io;
class IPQ_DLL_EXPORT PHRQ_base
{
public:
// constructors
PHRQ_base(void);
PHRQ_base(PHRQ_io *);
virtual ~ PHRQ_base();
// methods
void output_msg(const std::string &);
void error_msg(const std::string &, int stop=0);
void warning_msg(const std::string &);
void screen_msg(const std::string &);
void echo_msg(const std::string &);
void Set_io(PHRQ_io * p_io)
{
this->io = p_io;
}
PHRQ_io * Get_io(void)
{
return this->io;
}
void Set_base_error_count(int i)
{
this->base_error_count = i;
}
int Get_base_error_count(void)
{
return this->base_error_count;
}
// data
protected:
PHRQ_io * io;
int base_error_count;
};
#endif /* _PHRQBASE_H */