iphreeqc/testcpp/testcpp.cpp
Scott R Charlton 4463d41703 passes all tests on win32; before changing to multiple instances
git-svn-id: svn://136.177.114.72/svn_GW/IPhreeqc/branches/class@4201 1feff8c3-07ed-0310-ac33-dd36852eb9cd
2010-04-02 00:14:16 +00:00

25 lines
367 B
C++

#include <iostream>
#include <IPhreeqc2.h>
#define IPhreeqc IPhreeqc2
int main(int argc, char* argv[])
{
IPhreeqc obj;
obj.SetOutputOn(true);
if (obj.LoadDatabase("phreeqc.dat"))
{
goto error;
}
if (obj.RunFile("ex1"))
{
goto error;
}
std::cout << "Ok\n";
return 0;
error:
std::cout << obj.GetLastErrorString();
return 1;
}