00001 /* -*- Mode: C -*- 00002 * basepair.h 00003 * Copyright © 2002-03 Laboratoire de Biologie Informatique et Théorique 00004 * Université de Montréal. 00005 * Author : Patrick Charbonneau 00006 * Created On : Wed Sep 12 16:48:15 2003 00007 * $Revision: 1.5 $ 00008 * $Id: basepair.h,v 1.5 2003/10/01 13:07:24 larosem Exp $ 00009 * 00010 * This file is part of xmlcpg. 00011 * 00012 * xmlcpg is free software; you can redistribute it and/or modify it under 00013 * the terms of the GNU Lesser General Public License as published by the Free 00014 * Software Foundation; either version 2 of the License, or (at your option) 00015 * any later version. 00016 * 00017 * xmlcpg is distributed in the hope that it will be useful, but WITHOUT ANY 00018 * WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS 00019 * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for 00020 * more details. 00021 * 00022 * You should have received a copy of the GNU Lesser General Public License 00023 * along with xmlcpg; if not, write to the Free Software Foundation, Inc., 00024 * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 00025 */ 00026 00027 00028 #ifndef _rnaml_basepair_h_ 00029 #define _rnaml_basepair_h_ 00030 00031 #include "baseid5p.h" 00032 #include "baseid3p.h" 00033 #include "object.h" 00034 #include "xmlcpg.h" 00035 00036 00037 00041 typedef struct rnamlBASEPAIR rnamlBasePair; 00042 00047 rnamlBasePair* rnamlnewBasePair (); 00048 00054 rnamlBasePair* rnamlcloneBasePair (const rnamlBasePair *basepair); 00055 00060 void rnamldeleteBasePair (rnamlBasePair *basepair); 00061 00067 int rnamlisBasePair (const rnamlObject *obj); 00068 00075 int rnamlequalsBasePair (const rnamlBasePair *left, const rnamlBasePair *right); 00076 00083 rnamlBaseId5p* rnamlgetBasePairBaseId5p (rnamlBasePair *basePair); 00084 00090 void rnamlsetBasePairBaseId5p (rnamlBasePair *basePair, rnamlBaseId5p *baseId5p); 00091 00098 rnamlBaseId3p* rnamlgetBasePairBaseId3p (rnamlBasePair *basePair); 00099 00105 void rnamlsetBasePairBaseId3p (rnamlBasePair *basePair, rnamlBaseId3p *baseId3p); 00106 00112 const char* rnamlgetBasePairEdge5p (const rnamlBasePair *basePair); 00113 00120 void rnamlsetBasePairEdge5p (rnamlBasePair *basePair, const char *edge5p); 00121 00127 const char* rnamlgetBasePairEdge3p (const rnamlBasePair *basePair); 00128 00135 void rnamlsetBasePairEdge3p (rnamlBasePair *basePair, const char *edge3p); 00136 00142 const char* rnamlgetBasePairBondOrientation (const rnamlBasePair *basePair); 00143 00150 void rnamlsetBasePairBondOrientation (rnamlBasePair *basePair, const char *bondOrientation); 00151 00157 const char* rnamlgetBasePairStrandOrientation (const rnamlBasePair *basePair); 00158 00165 void rnamlsetBasePairStrandOrientation (rnamlBasePair *basePair, const char *strandOrientation); 00166 00173 xmlcpgObject* rnamltoXMLBasePair (const rnamlBasePair *basePair); 00174 00175 #endif 00176