libRoadRunner C++ API  1.0.0
 All Classes Functions Variables Enumerations Enumerator Pages
Static Public Member Functions | List of all members
rr::ModelGeneratorFactory Class Reference

#include <rrModelGeneratorFactory.h>

Static Public Member Functions

static ModelGeneratorcreateModelGenerator (const std::string &compiler, const std::string &tmpDir="", const std::string &supportCodeDir="")
 

Detailed Description

A factory class to create a ModelGenerator.

Currently we have two concrete Model implmentations, an LLVM JIT compiled model and the older C file generating shared library model.

Member Function Documentation

ModelGenerator * rr::ModelGeneratorFactory::createModelGenerator ( const std::string &  compiler,
const std::string &  tmpDir = "",
const std::string &  supportCodeDir = "" 
)
static

Create a model generator. Eventauly we will have another static method that returns the names of the available model generators and their descriptions. Currently we only support CModelGenerator, although this is ignored and this will always return a CModelGenerator.

The created object is owned by the caller and must be deleted accordingly.

Parameters
compiler,:the textual name of the compiler. If this is "llvm", then then the LLVM ModelGenerator is created, otherwise, A C based model generator is created.
tmpDirThe C version stores all the generated temporary C files and objects here, not used for LLVM.
supportCodeDirLocation where roadrunner include files are, not used in LLVM.

The documentation for this class was generated from the following files: