C++ Interface¶
Since v1.1.1, a simple C++ interface is provided, see the smodels/cpp directory in the source code.
Its usage is documented in run.cpp:
#include <SModelS.h>
#include <iostream>
#include <string>
/** example only */
using namespace std;
int main( int argc, char * argv[] )
{
/** initialise SModelS, load database, second argument (installdir) must point to smodels
* installation top-level directory */
SModelS smodels ( "./parameters.ini", "../" );
/** run over one single file or directory */
int ret = smodels.run ( "test.slha" );
}
A sample Makefile is also provided. The python header files have to be installed.