roadrunner  2.6.0
Fast simulator for SBML models
rrCompiler.h
1 /*
2  * rrCompiler.h
3  *
4  * Author: Andy Somogyi
5  * Created on: Jul 15, 2013
6  */
7 
8 #ifndef rrCompiler_H
9 #define rrCompiler_H
10 
11 #include "rrOSSpecifics.h"
12 #include <string>
13 
14 namespace rr
15 {
16 
25 class RR_DECLSPEC Compiler
26 {
27 public:
28  virtual std::string getCompiler() const = 0;
29  virtual bool setCompiler(const std::string& compiler) = 0;
30 
31  virtual std::string getCompilerLocation() const = 0;
32  virtual bool setCompilerLocation(const std::string& path) = 0;
33 
34  virtual std::string getSupportCodeFolder() const = 0;
35  virtual bool setSupportCodeFolder(const std::string& path) = 0;
36 
37 
47  virtual std::string getDefaultTargetTriple() = 0;
48 
53  virtual std::string getProcessTriple() = 0;
54 
62  virtual std::string getHostCPUName() = 0;
63 
67  virtual std::string getVersion() = 0;
68 
69  static std::string getDefaultCompiler();
70 
71  static Compiler* New();
72 
73  virtual ~Compiler() {};
74 };
75 
76 } /* namespace rr */
77 #endif /* rrCompiler_H */
interface to manipulate 'compiler' settings.
Definition: rrCompiler.h:26
virtual std::string getHostCPUName()=0
getHostCPUName - Get the LLVM name for the host CPU.
virtual std::string getDefaultTargetTriple()=0
getDefaultTargetTriple() - Return the default target triple the compiler has been configured to produ...
virtual std::string getVersion()=0
get the version of the compiler.
virtual std::string getProcessTriple()=0
getProcessTriple() - Return an appropriate target triple for generating code to be loaded into the cu...
C_DECL_SPEC bool rrcCallConv setSupportCodeFolder(RRHandle handle, const char *folder)
Set the path to a folder containing support code for model generation.
C_DECL_SPEC char *rrcCallConv getCompilerLocation(RRHandle handle)
Get the path to a folder containing the compiler being used.
C_DECL_SPEC bool rrcCallConv setCompiler(RRHandle handle, const char *fNameWithPath)
Set the path and filename to the compiler to be used by roadrunner.
C_DECL_SPEC bool rrcCallConv setCompilerLocation(RRHandle handle, const char *folder)
Set the path to a folder containing the compiler to be used.
C_DECL_SPEC char *rrcCallConv getSupportCodeFolder(RRHandle handle)
Get the path to a folder containing support code.
C_DECL_SPEC char *rrcCallConv getCompiler(RRHandle handle)
Get the name of the compiler currently being used by roadrunner.