File: local-downcast-plugins-comp.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 (52 lines) | stat: -rw-r--r-- 1,341 bytes parent folder | download | duplicates (20)
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

#ifdef USE_COMP
if (pkgName == "comp")
{
	switch (sb->getTypeCode())
	{
		case SBML_DOCUMENT: 
			return SWIGTYPE_p_CompSBMLDocumentPlugin;
		case SBML_MODEL:
		case SBML_COMP_MODELDEFINITION:
			return SWIGTYPE_p_CompModelPlugin;
		case SBML_COMPARTMENT:
		case SBML_COMPARTMENT_TYPE:
		case SBML_CONSTRAINT:
		case SBML_EVENT:
		case SBML_EVENT_ASSIGNMENT:
		case SBML_FUNCTION_DEFINITION:
		case SBML_INITIAL_ASSIGNMENT:
		case SBML_KINETIC_LAW:
		case SBML_LIST_OF:
		case SBML_PARAMETER:
		case SBML_REACTION:
		case SBML_RULE:
		case SBML_SPECIES:
		case SBML_SPECIES_REFERENCE:
		case SBML_SPECIES_TYPE:
		case SBML_MODIFIER_SPECIES_REFERENCE:
		case SBML_UNIT_DEFINITION:
		case SBML_UNIT:
		case SBML_ALGEBRAIC_RULE:
		case SBML_ASSIGNMENT_RULE:
		case SBML_RATE_RULE:
		case SBML_SPECIES_CONCENTRATION_RULE:
		case SBML_COMPARTMENT_VOLUME_RULE:
		case SBML_PARAMETER_RULE:
		case SBML_TRIGGER:
		case SBML_DELAY:
		case SBML_STOICHIOMETRY_MATH:
		case SBML_LOCAL_PARAMETER:
		case SBML_COMP_SUBMODEL:
		case SBML_COMP_SBASEREF:
		case SBML_COMP_REPLACEDELEMENT:
		case SBML_COMP_REPLACEDBY:
		case SBML_COMP_PORT:
		case SBML_COMP_EXTERNALMODELDEFINITION:
		case SBML_COMP_DELETION:
			return SWIGTYPE_p_CompSBasePlugin;
	}
	return SWIGTYPE_p_SBasePlugin;
}
#endif // USE_COMP