export_CutController.cxx
Go to the documentation of this file.
1 
12 #ifdef _MSC_VER
13 // nonstandard extension used 'extern' before...
14 # pragma warning(disable:4231)
15 
16 // needs to have dll-interface used by client
17 # pragma warning(disable:4251)
18 
19 // non dll-interface struct
20 # pragma warning(disable:4275)
21 
22 // 'int' : forcing value to bool 'true' or 'false' (performance warning)
23 # pragma warning(disable:4800)
24 #endif
25 
26 // include first to avoid _POSIX_C_SOURCE warning.
27 #include <boost/python.hpp>
28 
30 #include "datasrcs/DataSource.h"
31 
32 using std::vector;
33 using namespace boost::python;
34 
35 namespace hippodraw {
36 namespace Python {
37 
38 void
40 {
41  class_ < CutController, bases<>,
42  CutController, boost::noncopyable >
43  ( "CutController",
44  "The CutController class provides interface to Cut functions.",
45  no_init )
46 
47  .def ( "instance", &CutController::instance,
48  return_value_policy < reference_existing_object > (),
49  "instance () -> CutController\n"
50  "\n"
51  "Returns the singleton instance of the controller." )
52 
53  .staticmethod( "instance" )
54 
55  .def ( "createIdCut",
56  &CutController::createIdCut,
57  "createIdCut (source, dest ) -> None\n"
58  "\n"
59  "Creates a column in dest that can be used as Cut on it, \n"
60  "for values in source" )
61  ;
62 }
63 
64 } // namespace Python
65 } // namespace hippodraw

Generated for HippoDraw Class Library by doxygen