| 12854 | |
| 12855 | |
| 12856 | SWIGINTERN PyObject *_wrap_Trainer_message(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
| 12857 | PyObject *resultobj = 0; |
| 12858 | CRFSuite::Trainer *arg1 = (CRFSuite::Trainer *) 0 ; |
| 12859 | std::string *arg2 = 0 ; |
| 12860 | void *argp1 = 0 ; |
| 12861 | int res1 = 0 ; |
| 12862 | int res2 = SWIG_OLDOBJ ; |
| 12863 | PyObject * obj0 = 0 ; |
| 12864 | PyObject * obj1 = 0 ; |
| 12865 | Swig::Director *director = 0; |
| 12866 | bool upcall = false; |
| 12867 | |
| 12868 | if (!PyArg_ParseTuple(args,(char *)"OO:Trainer_message",&obj0,&obj1)) SWIG_fail; |
| 12869 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CRFSuite__Trainer, 0 | 0 ); |
| 12870 | if (!SWIG_IsOK(res1)) { |
| 12871 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Trainer_message" "', argument " "1"" of type '" "CRFSuite::Trainer *""'"); |
| 12872 | } |
| 12873 | arg1 = reinterpret_cast< CRFSuite::Trainer * >(argp1); |
| 12874 | { |
| 12875 | std::string *ptr = (std::string *)0; |
| 12876 | res2 = SWIG_AsPtr_std_string(obj1, &ptr); |
| 12877 | if (!SWIG_IsOK(res2)) { |
| 12878 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Trainer_message" "', argument " "2"" of type '" "std::string const &""'"); |
| 12879 | } |
| 12880 | if (!ptr) { |
| 12881 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Trainer_message" "', argument " "2"" of type '" "std::string const &""'"); |
| 12882 | } |
| 12883 | arg2 = ptr; |
| 12884 | } |
| 12885 | director = SWIG_DIRECTOR_CAST(arg1); |
| 12886 | upcall = (director && (director->swig_get_self()==obj0)); |
| 12887 | try { |
| 12888 | { |
| 12889 | try { |
| 12890 | if (upcall) { |
| 12891 | (arg1)->CRFSuite::Trainer::message((std::string const &)*arg2); |
| 12892 | } else { |
| 12893 | (arg1)->message((std::string const &)*arg2); |
| 12894 | } |
| 12895 | } catch(const std::invalid_argument& e) { |
| 12896 | SWIG_exception(SWIG_IOError, e.what()); |
| 12897 | } catch(const std::runtime_error& e) { |
| 12898 | SWIG_exception(SWIG_RuntimeError, e.what()); |
| 12899 | } catch (const std::exception& e) { |
| 12900 | SWIG_exception(SWIG_RuntimeError, e.what()); |
| 12901 | } catch(...) { |
| 12902 | SWIG_exception(SWIG_RuntimeError,"Unknown exception"); |
| 12903 | } |
| 12904 | } |
| 12905 | } catch (Swig::DirectorException&) { |
| 12906 | SWIG_fail; |
| 12907 | } |
| 12908 | resultobj = SWIG_Py_Void(); |
| 12909 | if (SWIG_IsNewObj(res2)) delete arg2; |
| 12910 | return resultobj; |
| 12911 | fail: |
| 12912 | if (SWIG_IsNewObj(res2)) delete arg2; |
| 12913 | return NULL; |
nothing calls this directly
no test coverage detected