Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

export_FitterFactory.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 "minimizers/Fitter.h"
00027 #include "minimizers/FitterFactory.h"
00028 
00029 #include <boost/python.hpp>
00030 
00031 using std::vector;
00032 using namespace boost::python;
00033 
00034 namespace hippodraw {
00035 namespace Python {
00036 
00037 void 
00038 export_FitterFactory()
00039 {
00040   class_ < FitterFactory, bases<>,
00041     FitterFactory, boost::noncopyable >
00042     ( "FitterFactory",
00043       "The factory for returning fitters preloaded with objective functions.",
00044       no_init )
00045 
00046     .def ( "instance",  &FitterFactory::instance,
00047            return_value_policy < reference_existing_object >  (),
00048            "instance () -> FitterFactory\n"
00049            "\n"
00050            "Returns the single instance of the FitterFactory" )
00051 
00052     .staticmethod( "instance" )
00053 
00054     .def ( "names", &FitterFactory::names,
00055            return_value_policy < copy_const_reference > (),
00056            "names () -> sequence\n"
00057            "\n"
00058            "Returns the names of the available fitters." )
00059 
00060     .def ( "create", &FitterFactory::create,
00061            return_value_policy < manage_new_object > (),
00062            "create ( string ) -> Fitter\n"
00063            "\n"
00064            "Returns the newly created fitter object." )
00065     ;
00066 
00067 }
00068 
00069 } // namespace Python
00070 } // namespace hippodraw

Generated for HippoDraw-1.14.8.5 by doxygen 1.4.3