~ubuntu-branches/ubuntu/saucy/python-demgengeo/saucy

« back to all changes in this revision

Viewing changes to Python/AVolume2DPy.cc

  • Committer: Package Import Robot
  • Author(s): Anton Gladky
  • Date: 2011-11-18 21:47:18 UTC
  • Revision ID: package-import@ubuntu.com-20111118214718-4ysqm3dhpqwdd7gd
Tags: upstream-0.99~bzr106
ImportĀ upstreamĀ versionĀ 0.99~bzr106

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/////////////////////////////////////////////////////////////
 
2
//                                                         //
 
3
// Copyright (c) 2007-2011 by The University of Queensland //
 
4
// Earth Systems Science Computational Centre (ESSCC)      //
 
5
// http://www.uq.edu.au/esscc                              //
 
6
//                                                         //
 
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          //
 
10
//                                                         //
 
11
/////////////////////////////////////////////////////////////
 
12
 
 
13
#include <boost/version.hpp>
 
14
#include <iostream>
 
15
#include <sstream>
 
16
#include "AVolume2DPy.h"
 
17
 
 
18
using namespace boost::python;
 
19
 
 
20
    using boost::python::arg;
 
21
    void exportAVolume()
 
22
    {
 
23
      // Check that Boost 1.34.0 or higher is being used.
 
24
      // If so, disable auto-generation of C++ signatures for Epydoc
 
25
      // (which stumbles over indentation in the auto-generated strings).
 
26
      #if ((BOOST_VERSION / 100000 >= 1) \
 
27
          && (BOOST_VERSION / 100 % 1000 >= 34)) \
 
28
          || (BOOST_VERSION / 100000 >= 2)
 
29
        boost::python::docstring_options no_autogen(true,false);
 
30
      #endif
 
31
 
 
32
      class_<AVolume, boost::noncopyable>("AVolume", "Abstract base class for Volume classes in 2D or 3D.", no_init);
 
33
      ;
 
34
    }
 
35
    void exportAVolume2D()
 
36
    {
 
37
      // Check that Boost 1.34.0 or higher is being used.
 
38
      // If so, disable auto-generation of C++ signatures for Epydoc
 
39
      // (which stumbles over indentation in the auto-generated strings).
 
40
      #if ((BOOST_VERSION / 100000 >= 1) \
 
41
          && (BOOST_VERSION / 100 % 1000 >= 34)) \
 
42
          || (BOOST_VERSION / 100000 >= 2)
 
43
        boost::python::docstring_options no_autogen(true,false);
 
44
      #endif
 
45
 
 
46
      class_<AVolume2D, bases<AVolume>, boost::noncopyable >(
 
47
         "AVolume2D", 
 
48
         "Abstract base class for 2D Volumes.", 
 
49
         no_init
 
50
      )
 
51
      ;
 
52
    }
 
53
 
 
54
 
 
55