14 format(modulesFolder=cellModulesPath,folderName=m,bodyFileName=configJson["Body"]["name"]) for m,configJson in modulesConfigs.items() if "Body" in configJson]))
15 print('\n')
16 '''*/
17
18
19/*isigen:insert@definitions'''
20 print("""\n#ifdef MOVABLE
21 template<typename cell_t>
22 class CellBody : virtual BaseBody<CellPlugin<cell_t> > {bodyNames} {{
23 #else
24 template<typename cell_t>
25 class CellBody : public MecaCell::Movable, virtual BaseBody<CellPlugin<cell_t> > {bodyNames} {{
26 #endif
27 """.format(bodyNames=''.join([", public "+configJson["Namespace"]+"::"+configJson["Body"]["name"]+"<cell_t,CellPlugin<cell_t> >" for configJson in modulesConfigs.values() if "Body" in configJson])))
43 bodyNameConstrut = [configJson["Namespace"]+"::"+configJson["Body"]["name"]+"<cell_t, embedded_plugin_t>()" for configJson in modulesConfigs.values() if "Body" in configJson]
60 print('\n'.join([configJson["Namespace"]+"::"+configJson["Body"]["name"]+"<cell_t,embedded_plugin_t>::onCellPluginLinking();" for configJson in modulesConfigs.values() if "Body" in configJson]))