/*************************************************************************** modeler_mod.cpp - description ------------------- begin : Sun Jul 2 20:36:25 2006 copyright : (C) 2002 by Cavalli Andrea email : cavalli@bioc.unizh.ch **************************************************************************/ /*************************************************************************** * * * This program is free software; you can redistribute it and/or modify * * it under the terms of the GNU General Public License as published by * * the Free Software Foundation; either version 2 of the License, or * * (at your option) any later version. * * * ***************************************************************************/ #include #include #include #include #include using namespace Almost; #define ALMTOSTRING(s) \ template<> \ inline string to_string(const s & ){ \ return "<" #s ">"; \ } ALMTOSTRING(Molecules); ALMTOSTRING(MDB); ALMTOSTRING(Blast::Hit); ALMTOSTRING(Blast); template<> inline string to_string(const AlmModeler &){ return ""; } template<> inline string to_string(const HomologyConstraints &){ return ""; } extern "C" { void init_modeler(){ //declarations here Module mod = Module("modeler","Homoogy modeler"); Class >(mod.self(), "modeler") .def_method("get_pdb",&AlmModeler::get_pdb) .def_method("restraints",&AlmModeler::restraints) ; Class >(mod.self(),"homoogyconst"); mod.def_function("generate_restraints","Genrate homology restraints", generate_restraints); mod.def_function("restraints_statistics","Prints restraints statistics", restraints_statistics); mod.def_function("test_all","Prints statistics on all HSP", test_all); } }