File: local-downcast-packages-layout.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 (87 lines) | stat: -rw-r--r-- 2,147 bytes parent folder | download | duplicates (22)
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
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87

#ifdef USE_LAYOUT
else if (pkgName == "layout")
{
    switch (sb->getTypeCode())
    {
		case SBML_LIST_OF:
			name = sb->getElementName();
			if(name == "listOfCompartmentGlyphs"){
				return SWIGTYPE_p_ListOfCompartmentGlyphs;
			}
			else if(name == "listOfAdditionalGraphicalObjects"){
				return SWIGTYPE_p_ListOfGraphicalObjects;
			}
			else if(name == "listOfLayouts"){
				return SWIGTYPE_p_ListOfLayouts;
			}
			else if(name == "listOfCurveSegments"){
				return SWIGTYPE_p_ListOfLineSegments;
			}
			else if(name == "listOfSpeciesGlyphs"){
				return SWIGTYPE_p_ListOfSpeciesGlyphs;
			}
			else if(name == "listOfSpeciesReferenceGlyphs"){
				return SWIGTYPE_p_ListOfSpeciesReferenceGlyphs;
			}
			else if(name == "listOfReactionGlyphs"){
				return SWIGTYPE_p_ListOfReactionGlyphs;
			}
			else if(name == "listOfTextGlyphs"){
				return SWIGTYPE_p_ListOfTextGlyphs;
			}
			else if(name == "listOfReferenceGlyphs"){
				return SWIGTYPE_p_ListOfReferenceGlyphs;
			}
			return SWIGTYPE_p_ListOf;
			
		case SBML_LAYOUT_BOUNDINGBOX:
			return SWIGTYPE_p_BoundingBox;
			
		case SBML_LAYOUT_COMPARTMENTGLYPH:
			return SWIGTYPE_p_CompartmentGlyph;
			
		case SBML_LAYOUT_CUBICBEZIER:
			return SWIGTYPE_p_CubicBezier;
			
		case SBML_LAYOUT_CURVE:
			return SWIGTYPE_p_Curve;
			
		case SBML_LAYOUT_DIMENSIONS:
			return SWIGTYPE_p_Dimensions;
			
		case SBML_LAYOUT_GRAPHICALOBJECT:
			return SWIGTYPE_p_GraphicalObject;
			
		case SBML_LAYOUT_LAYOUT:
			return SWIGTYPE_p_Layout;
			
		case SBML_LAYOUT_LINESEGMENT:
			return SWIGTYPE_p_LineSegment;
			
		case SBML_LAYOUT_POINT:
			return SWIGTYPE_p_Point;
			
		case SBML_LAYOUT_REACTIONGLYPH:
			return SWIGTYPE_p_ReactionGlyph;
			
		case SBML_LAYOUT_SPECIESGLYPH:
			return SWIGTYPE_p_SpeciesGlyph;
			
		case SBML_LAYOUT_SPECIESREFERENCEGLYPH:
			return SWIGTYPE_p_SpeciesReferenceGlyph;
			
		case SBML_LAYOUT_TEXTGLYPH:
			return SWIGTYPE_p_TextGlyph;
			
		case SBML_LAYOUT_REFERENCEGLYPH:
			return SWIGTYPE_p_ReferenceGlyph;
			
		case SBML_LAYOUT_GENERALGLYPH:
			return SWIGTYPE_p_GeneralGlyph;
			
		default:
			return SWIGTYPE_p_SBase;
    }
}
#endif // USE_LAYOUT