-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathlsSBMLModel.h
68 lines (53 loc) · 1.49 KB
/
lsSBMLModel.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
#ifndef ls_SBML_MODEL_H
#define ls_SBML_MODEL_H
#ifndef NO_SBML
#include <string>
#include <sbml/SBMLDocument.h>
#include <sbml/Model.h>
#include <sbml/Species.h>
namespace ls
{
using namespace libsbml;
class SBMLmodel
{
private:
/**
* If the _Document exists, that means we created it, and
* we have to delete it.
*/
SBMLDocument* _Document;
/**
* always owned by someone else.
*/
const Model* _Model;
/**
* privat ctor, used when we create a document, and thus
* are responsible for deleting it.
*/
SBMLmodel(libsbml::SBMLDocument *document);
/**
* disallow creation of empty SBMLmodel.
*/
SBMLmodel();
public:
static SBMLmodel* FromFile(std::string &sFileName);
static SBMLmodel* FromSBML(std::string &sSBML);
/**
* Attach SBMLmodel to an existing sbml model.
*/
SBMLmodel(const libsbml::Model *model);
/**
* Create an sbml document from an sbml formatted string.
*/
SBMLmodel(const std::string &sSBML);
~SBMLmodel(void);
const Model* getModel() const;
int numFloatingSpecies() const;
int numReactions() const ;
const Species* getNthFloatingSpecies(int n) const;
const Species* getNthBoundarySpecies(int n) const;
const Reaction* getNthReaction(int n) const;
};
}
#endif
#endif //ls_SBML_MODEL_H