export_CutController.cxx

Go to the documentation of this file.
00001 
00012 #ifdef _MSC_VER
00013 // nonstandard extension used 'extern' before...
00014 # pragma warning(disable:4231)  
00015 
00016 // needs to have dll-interface used by client
00017 # pragma warning(disable:4251)  
00018 
00019 // non dll-interface struct
00020 # pragma warning(disable:4275)  
00021 
00022 // 'int' : forcing value to bool 'true' or 'false' (performance warning)
00023 # pragma warning(disable:4800)  
00024 #endif
00025 
00026 // include first to avoid _POSIX_C_SOURCE warning.
00027 #include <boost/python.hpp>
00028 
00029 #include "controllers/CutController.h"
00030 #include "datasrcs/DataSource.h"
00031 
00032 using std::vector;
00033 using namespace boost::python;
00034 
00035 namespace hippodraw {
00036 namespace Python {
00037 
00038 void 
00039 export_CutController()
00040 {
00041   class_ < CutController, bases<>,
00042     CutController, boost::noncopyable >
00043     ( "CutController", 
00044       "The CutController class provides interface to Cut functions.",
00045       no_init )
00046 
00047     .def ( "instance",  &CutController::instance,
00048            return_value_policy < reference_existing_object >  (),
00049            "instance () -> CutController\n"
00050            "\n"
00051            "Returns the singleton instance of the controller." )
00052 
00053     .staticmethod( "instance" )
00054 
00055     .def ( "createIdCut",
00056            &CutController::createIdCut,
00057            "createIdCut (source, dest ) -> None\n"
00058            "\n"
00059            "Creates a column in dest that can be used as Cut on it, \n"
00060            "for values in source" )
00061     ;
00062 }
00063 
00064 } // namespace Python
00065 } // namespace hippodraw

Generated for HippoDraw Class Library by doxygen