head	1.5;
access;
symbols
	PyQwt3D-0-1-6:1.4
	PyQwt3D-0-1-5:1.4
	start:1.1.1.1
	gvermeul:1.1.1;
locks; strict;
comment	@# @;


1.5
date	2008.11.02.08.57.02;	author gvermeul;	state Exp;
branches;
next	1.4;

1.4
date	2006.02.18.07.18.50;	author gvermeul;	state Exp;
branches;
next	1.3;

1.3
date	2005.01.23.05.58.07;	author gvermeul;	state Exp;
branches;
next	1.2;

1.2
date	2004.11.19.05.24.18;	author gvermeul;	state Exp;
branches;
next	1.1;

1.1
date	2004.11.14.06.58.32;	author gvermeul;	state Exp;
branches
	1.1.1.1;
next	;

1.1.1.1
date	2004.11.14.06.58.32;	author gvermeul;	state Exp;
branches;
next	;


desc
@@


1.5
log
@Make PyQwt3D compile with the snapshots leading to SIP-4.8 by replacing
size_type with size_t.
Update copyright dates.
@
text
@#!/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: ***
@


1.4
log
@Remove support for old SIP versions.
Change license to plain GPL.
@
text
@d27 1
a27 1
    'ITEM': 'size_type',
@


1.3
log
@Update copyright dates.
@
text
@a3 28
#
# Copyright (C) 2004-2005 Gerard Vermeulen
#
# This file is part of PyQwt3D.
#
# PyQwt3D is free software; you can redistribute it and/or modify it under the
# terms of the GNU General Public License as published by the Free Software
# Foundation; either version 2 of the License, or (at your option) any later
# version.
#
# PyQwt3D is distributed in the hope that it will be useful, but WITHOUT ANY
# WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
# FOR A PARTICULAR PURPOSE.  See the GNU General Public License for more
# details.
#
# You should have received a copy of the GNU General Public License along
# with PyQwt3D; if not, write to the Free Software Foundation, Inc.,
# 59 Temple Place, Suite 330, Boston, MA 02111-1307, USA.
#
# In addition, as a special exception, Gerard Vermeulen gives permission to
# link PyQwt3D dynamically with commercial, non-commercial or educational
# versions of Qt, PyQt and sip, and distribute PyQwt in this form, provided
# that equally powerful versions of Qt, PyQt and sip have been released under
# the terms of the GNU General Public License.
#
# If PyQwt3D is dynamically linked with commercial, non-commercial or
# educational versions of Qt, PyQt and sip, PyQwt3D becomes a free plug-in for
# a non-free program.
@


1.2
log
@Zap some "using namespace std;"
@
text
@d5 1
a5 1
# Copyright (C) 2004 Gerard Vermeulen
@


1.1
log
@Initial revision
@
text
@a42 1
             '\nusing namespace std;'
d44 1
a44 1
             '\ntypedef vector<Axis> AxisVector;'
d52 1
a52 3
    'HEAD': ('\n#include <vector>'
             '\n#include <qwt3d_types.h>'          
             '\nusing namespace std;'
d61 1
a61 3
    'HEAD': ('\n#include <vector>'
             '\n#include <qwt3d_types.h>'          
             '\nusing namespace std;'
d70 1
a70 3
    'HEAD': ('\n#include <vector>'
             '\n#include <qwt3d_color.h>'          
             '\nusing namespace std;'
d80 1
a80 2
             '\nusing namespace std;'
             '\ntypedef vector<double> DoubleVector;'
d88 1
a88 2
    'HEAD': ('\n#include <vector>'
             '\n#include <qwt3d_types.h>'
a89 1
             '\nusing namespace std;'
d98 1
a98 2
    'HEAD': ('\n#include <vector>'
             '\n#include <qwt3d_types.h>'
a99 1
             '\nusing namespace std;'
@


1.1.1.1
log
@Initial import.
@
text
@@
