/*************************************************************************** mdb_mod.cpp - description ------------------- begin : Tue Mar 18 18:15:13 2003 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 #include #include #include namespace Almost { const string c19_eef1_str = "all19_eef1.mdb"; const string c22_str = "all22.mdb"; } using namespace Almost; template<> inline string to_string(const AtomT & atom){ return atom.to_string(); } template<> inline string to_string(const BondT & bond){ return bond.to_string(); } template<> inline string to_string(const AngleT & angle){ return angle.to_string(); } template<> inline string to_string(const DihedralT & dihedral){ return dihedral.to_string(); } template<> inline string to_string(const ImproperT & improper){ return improper.to_string(); } template<> inline string to_string(const NBondT & nbond){ return nbond.to_string(); } template<> inline string to_string(const SasaT & sasa){ return sasa.to_string(); } template<> inline string to_string(const TAtom & tatom){ return tatom.to_string(false,true); } template<> inline string to_string(const TBond & tbond){ return tbond.to_string(); } template<> inline string to_string(const TDihedral & tdihedral){ return tdihedral.to_string(); } template<> inline string to_string(const TImproper & timproper){ return timproper.to_string(); } template<> inline string to_string(const TIC & tic){ return ""; } template<> inline string to_string(const TGroup & gr){ return ""; } template<> inline string to_string(const MDB & mdb){ return ""; } template<> inline string to_string(const TemplateFragment & tf){ stringstream strout; FormOStream fout(strout); fout< inline string to_string(const TemplatePatch & tf){ return "