| 12804 | |
| 12805 | |
| 12806 | SWIGINTERN PyObject *_wrap_Trainer_help(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
| 12807 | PyObject *resultobj = 0; |
| 12808 | CRFSuite::Trainer *arg1 = (CRFSuite::Trainer *) 0 ; |
| 12809 | std::string *arg2 = 0 ; |
| 12810 | void *argp1 = 0 ; |
| 12811 | int res1 = 0 ; |
| 12812 | int res2 = SWIG_OLDOBJ ; |
| 12813 | PyObject * obj0 = 0 ; |
| 12814 | PyObject * obj1 = 0 ; |
| 12815 | std::string result; |
| 12816 | |
| 12817 | if (!PyArg_ParseTuple(args,(char *)"OO:Trainer_help",&obj0,&obj1)) SWIG_fail; |
| 12818 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CRFSuite__Trainer, 0 | 0 ); |
| 12819 | if (!SWIG_IsOK(res1)) { |
| 12820 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Trainer_help" "', argument " "1"" of type '" "CRFSuite::Trainer *""'"); |
| 12821 | } |
| 12822 | arg1 = reinterpret_cast< CRFSuite::Trainer * >(argp1); |
| 12823 | { |
| 12824 | std::string *ptr = (std::string *)0; |
| 12825 | res2 = SWIG_AsPtr_std_string(obj1, &ptr); |
| 12826 | if (!SWIG_IsOK(res2)) { |
| 12827 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Trainer_help" "', argument " "2"" of type '" "std::string const &""'"); |
| 12828 | } |
| 12829 | if (!ptr) { |
| 12830 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Trainer_help" "', argument " "2"" of type '" "std::string const &""'"); |
| 12831 | } |
| 12832 | arg2 = ptr; |
| 12833 | } |
| 12834 | { |
| 12835 | try { |
| 12836 | result = (arg1)->help((std::string const &)*arg2); |
| 12837 | } catch(const std::invalid_argument& e) { |
| 12838 | SWIG_exception(SWIG_IOError, e.what()); |
| 12839 | } catch(const std::runtime_error& e) { |
| 12840 | SWIG_exception(SWIG_RuntimeError, e.what()); |
| 12841 | } catch (const std::exception& e) { |
| 12842 | SWIG_exception(SWIG_RuntimeError, e.what()); |
| 12843 | } catch(...) { |
| 12844 | SWIG_exception(SWIG_RuntimeError,"Unknown exception"); |
| 12845 | } |
| 12846 | } |
| 12847 | resultobj = SWIG_From_std_string(static_cast< std::string >(result)); |
| 12848 | if (SWIG_IsNewObj(res2)) delete arg2; |
| 12849 | return resultobj; |
| 12850 | fail: |
| 12851 | if (SWIG_IsNewObj(res2)) delete arg2; |
| 12852 | return NULL; |
| 12853 | } |
| 12854 | |
| 12855 | |
| 12856 | SWIGINTERN PyObject *_wrap_Trainer_message(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
nothing calls this directly
no test coverage detected