C API Documentation
ExecutableModelFactory.h
1 /*
2  * ExecutableModelFactory.h
3  *
4  * Created on: Dec 11, 2014
5  * Author: andy
6  */
7 
8 #ifndef EXECUTABLEMODELFACTORY_H_
9 #define EXECUTABLEMODELFACTORY_H_
10 
11 #include "rrExecutableModel.h"
12 #include "Dictionary.h"
13 #include <string>
14 #include <iostream>
15 
16 
17 namespace rr
18 {
19 
23 class RR_DECLSPEC ExecutableModelFactory
24 {
25 public:
33  static ExecutableModel *createModel(const std::string& sbml, const Dictionary* dict = 0);
34  /*
35  * Creates an executable model from a saved binary representation
36  *
37  * @param in: input stream with the representation of the model at the front
38  * @param modelGeneratorOpt: which functions should be generated, see LoadSBMLOptions::MUTABLE_INITIAL_CONDITIONS
39  * and LoadSBMLOptions::READ_ONLY
40  *
41  */
42  static ExecutableModel *createModel(std::istream& in, uint modelGeneratorOpt);
43 
44  /*
45  * Regenerate an executable model from a saved sbml document
46  *
47  * @param doc: sbml document that generate the new executable model from
48  * @param LoadSBMLOptions: load options
49  *
50  */
51  static ExecutableModel *regenerateModel(ExecutableModel* oldModel, libsbml::SBMLDocument* doc, uint options);
52 };
53 
54 } /* namespace rr */
55 
56 #endif /* EXECUTABLEMODELFACTORY_H_ */
This class is frozen, no new features A dictionary interface that objects can implement....
Definition: Dictionary.h:31
Definition: ExecutableModelFactory.h:24
static ExecutableModel * createModel(const std::string &sbml, const Dictionary *dict=0)
Base class for all code generation systems; allows compiling and evaluating the model.
Definition: rrExecutableModel.h:118
Base class for all code generators in RoadRunner.