2
# -*- coding: utf-8 -*-
3
# (c) 2006 Juergen Riegel
6
import generateBase.generateModel_Module
7
import generateBase.generateTools
9
class TemplateModuleAppMain (template.ModelTemplate):
11
file = open(self.path + "/App" + self.module.Name + ".cpp",'w')
12
generateBase.generateTools.replace(self.Template,locals(),file)
13
#file.write( generateBase.generateTools.replace(self.Template,locals()))
16
/***************************************************************************
17
* This program is free software; you can redistribute it and/or modify *
18
* it under the terms of the GNU Library General Public License as *
19
* published by the Free Software Foundation; either version 2 of the *
20
* License, or (at your option) any later version. *
21
* for detail see the LICENCE text file. *
23
***************************************************************************/
25
#include "PreCompiled.h"
30
#include <Base/Console.h>
32
+ for i in self.module.Content.Feature:
33
#include "Feature/@i.Name@.h"
36
extern struct PyMethodDef @self.module.Name@_methods[];
40
void App@self.module.Name@Export init@self.module.Name@() {
42
Base::Console().Log("Mod: Loading @self.module.Name@ module... done\\n");
43
PyObject* partModule = Py_InitModule3("@self.module.Name@", @self.module.Name@_methods, module_@self.module.Name@_doc); /* mod name, table ptr */
45
+ for i in self.module.Content.Feature:
46
@self.module.Name@::Feature@i.Name@::init();
b'\\ No newline at end of file'