This xml:
Code: Select all
<?xml version="1.0" encoding="UTF-8"?>
<GenerateModel xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="generateMetaModel_Module.xsd">
<PythonExport
Father="ParaGeometryPy"
Name="ParaPointPy"
Twin="ParaPoint"
TwinPointer="ParaPoint"
Include="Mod/ConstraintSolver/App/G2D/ParaPoint.h"
FatherInclude="Mod/ConstraintSolver/App/ParaGeometryPy.h"
Namespace="FCS::G2D"
Constructor="true"
Delete="true"
FatherNamespace="FCS"
DisableNotify="true">
<Documentation>
<Author Licence="LGPL" Name="DeepSOIC" EMail="vv.titov@gmail.com" />
<DeveloperDocu>2D point</DeveloperDocu>
<UserDocu>2D point</UserDocu>
</Documentation>
</PythonExport>
</GenerateModel>
Code: Select all
#ifndef FCS::G2D_PARAPOINTPY_H
#define FCS::G2D_PARAPOINTPY_H
...
* do not nest (i.e., use FCSG2D and FCSG3D namespaces)
* no namespaces for 2d and 3d, just add prefix/suffix to all class names
all seem slightly inelegant...
and final,
* fix generate model. But how? It's a weird contraption of a python program that takes an xml (xsd) and generates (another) python program that takes an xml and generates a C++ file. Why on eartch is that meta-generator needed is beyond my understanding... and figuring out how to bend all this stuff seems tricky...