File: FILL

package info (click to toggle)
pyqwt3d 0.1.8-6
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, bullseye, sid
  • size: 984 kB
  • sloc: python: 3,932; cpp: 328; makefile: 115; sh: 7
file content (80 lines) | stat: -rwxr-xr-x 2,133 bytes parent folder | download | duplicates (5)
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
#!/usr/bin/env python
#
# Generate the SIP specification files for C++ templates.


import os

STD_VECTOR_BASE = open('STD_VECTOR_BASE').read()
STD_VECTOR_USER = open('STD_VECTOR_USER').read()

file = open('qwt3d_axisvector.sip', 'w')
print >> file, STD_VECTOR_USER % {
    'HEAD': ('\n#include <vector>'
             '\n#include <qwt3d_axis.h>'          
             '\nusing namespace Qwt3D;'
             '\ntypedef std::vector<Axis> AxisVector;'
             ),
    'ITEM': 'Axis',
    'VECTOR': 'AxisVector',
    }

file = open('qwt3d_cell.sip', 'w')
print >> file, STD_VECTOR_BASE % {
    'HEAD': ('\n#include <qwt3d_types.h>'          
             '\nusing namespace Qwt3D;'
             ),
    'ITEM': 'size_t',
    'VECTOR': 'Cell',
    }

file = open('qwt3d_cellfield.sip', 'w')
print >> file, STD_VECTOR_USER % {
    'HEAD': ('\n#include <qwt3d_types.h>'          
             '\nusing namespace Qwt3D;'
             ),
    'ITEM': 'Cell',
    'VECTOR': 'CellField',
    }

file = open('qwt3d_colorvector.sip', 'w')
print >> file, STD_VECTOR_USER % {
    'HEAD': ('\n#include <qwt3d_color.h>'          
             '\nusing namespace Qwt3D;'
             ),
    'ITEM': 'RGBA',
    'VECTOR': 'ColorVector',
    }

file = open('qwt3d_doublevector.sip', 'w')
print >> file, STD_VECTOR_BASE % {
    'HEAD': ('\n#include <vector>'          
             '\ntypedef std::vector<double> DoubleVector;'
             ),
    'ITEM': 'double',
    'VECTOR': 'DoubleVector',
    }

file = open('qwt3d_freevectorfield.sip', 'w')
print >> file, STD_VECTOR_USER % {
    'HEAD': ('\n#include <qwt3d_types.h>'
             '\n#include <sip_Qwt3DFreeVector.h>'          
             '\nusing namespace Qwt3D;'
             ),
    'ITEM': 'FreeVector',
    'VECTOR': 'FreeVectorField',
    }

file = open('qwt3d_triplefield.sip', 'w')
print >> file, STD_VECTOR_USER % {
    'HEAD': ('\n#include <qwt3d_types.h>'
             '\n#include <sip_Qwt3DTriple.h>'          
             '\nusing namespace Qwt3D;'
             ),
    'ITEM': 'Triple',
    'VECTOR': 'TripleField',
    }

# Local Variables: ***
# mode: python ***
# End: ***