File: local-downcast-packages-fbc.cpp

package info (click to toggle)
libsbml 5.10.0+dfsg-1
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 141,800 kB
  • ctags: 98,793
  • sloc: cpp: 804,405; xml: 206,907; ansic: 66,144; cs: 52,916; java: 25,093; python: 23,449; sh: 9,847; perl: 8,414; makefile: 7,580; ruby: 4,760; csh: 3
file content (35 lines) | stat: -rw-r--r-- 856 bytes parent folder | download | duplicates (4)
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

#ifdef USE_FBC
else if (pkgName == "fbc")
{
	switch (sb->getTypeCode())
	{
		case SBML_LIST_OF:
			name = sb->getElementName();
			if(name == "listOfFluxes"){
				return SWIGTYPE_p_ListOfFluxObjectives;
			}
			else if(name == "listOfGeneAssociations"){
				return SWIGTYPE_p_ListOfGeneAssociations;
			}
			else if(name == "listOfObjectives"){
				return SWIGTYPE_p_ListOfObjectives;
			}			
			return SWIGTYPE_p_ListOf;				  
			
		case SBML_FBC_ASSOCIATION:
			return SWIGTYPE_p_Association;
		case SBML_FBC_FLUXBOUND:
			return SWIGTYPE_p_FluxBound;
		case SBML_FBC_FLUXOBJECTIVE:
			return SWIGTYPE_p_FluxObjective;
		case SBML_FBC_GENEASSOCIATION:
			return SWIGTYPE_p_GeneAssociation;
		case SBML_FBC_OBJECTIVE:
			return SWIGTYPE_p_Objective;
		default:
			return SWIGTYPE_p_SBase;
	}
}
#endif // USE_FBC