iphreeqc/PHRQ_base.h
Scott R Charlton 33b4ae373e fixed BUILD_SHARED_LIBS build on windows
git-svn-id: svn://136.177.114.72/svn_GW/phreeqc3/trunk@10347 1feff8c3-07ed-0310-ac33-dd36852eb9cd
2015-10-06 03:15:13 +00:00

53 lines
854 B
C++

#ifndef _PHRQBASE_H
#define _PHRQBASE_H
#include <sstream>
#if defined(_WINDLL)
#define IPQ_DLL_EXPORT __declspec(dllexport)
#else
#define IPQ_DLL_EXPORT
#endif
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 */