roadrunner  2.6.0
Fast simulator for SBML models
rrCodeBuilder.h
1 #ifndef rrCodeBuilderH
2 #define rrCodeBuilderH
3 #include "rrStringBuilder.h"
4 
5 namespace rr
6 {
7 
8 class RR_DECLSPEC CodeBuilder : public StringBuilder
9 {
10  protected:
11  int mSizeOfVarField1;
12  int mSizeOfVarField2;
13  int mSizeOfVarField3;
14  std::string mDeclSpec;
15  std::string mCallingConvention;
16 
17  public:
18  CodeBuilder(const std::string& aStr = "", const std::string& decl_spec = "D_S", const std::string& call_conv = "__cdecl");
19  void FormatVariable(const std::string& type, const std::string& varName, const std::string& comment = "");
20  void AddFunctionExport(const std::string& retValue, const std::string& funcProto);
21  void AddFunctionProto(const std::string& retValue, const std::string& funcProto);
22  void FormatArray(const std::string& type, const std::string& varName, const int& arraySize, const std::string& comment = "");
23 };
24 
25 }
26 
27 #endif
Definition: rrCodeBuilder.h:9
Definition: rrStringBuilder.h:18