1
/////////////////////////////////////////////////////////////
3
// Copyright (c) 2007-2011 by The University of Queensland //
4
// Earth Systems Science Computational Centre (ESSCC) //
5
// http://www.uq.edu.au/esscc //
7
// Primary Business: Brisbane, Queensland, Australia //
8
// Licensed under the Open Software License version 3.0 //
9
// http://www.opensource.org/licenses/osl-3.0.php //
11
/////////////////////////////////////////////////////////////
13
#include <boost/version.hpp>
14
#include "HexAggregateShapePy.h"
16
using namespace boost::python;
18
void exportHexAggregateShape ()
20
// Check that Boost 1.34.0 or higher is being used.
21
// If so, disable auto-generation of C++ signatures for Epydoc
22
// (which stumbles over indentation in the auto-generated strings).
23
#if ((BOOST_VERSION / 100000 >= 1) \
24
&& (BOOST_VERSION / 100 % 1000 >= 34)) \
25
|| (BOOST_VERSION / 100000 >= 2)
26
boost::python::docstring_options no_autogen(true,false);
29
class_<HexAggregateShape>(
31
"A hexahedral aggregate shape, to be inserted into a packing via a L{ShapeList}\n",
36
&HexAggregateShape::bias,
38
"Sets the bias of the shape (how often it should occur)\n"
40
"@kwarg i: the bias as any integer\n"