1 
2 #ifdef USE_LAYOUT
3 if (pkgName == "layout")
4 {
5     if (sb->getTypeCode() == SBML_MODEL || dynamic_cast<Model*>(sb) != NULL)
6     {
7 		return SWIGTYPE_p_LayoutModelPlugin;
8     }
9     else if (sb->getTypeCode() == SBML_SPECIES_REFERENCE)
10     {
11 		return SWIGTYPE_p_LayoutSpeciesReferencePlugin;
12     }
13     else if (sb->getTypeCode() == SBML_MODIFIER_SPECIES_REFERENCE)
14     {
15 		return SWIGTYPE_p_LayoutSpeciesReferencePlugin;
16     }
17 }
18 #endif // USE_LAYOUT
19 
20