Sophie

Sophie

distrib > Mandriva > 2010.0 > i586 > media > contrib-release > by-pkgid > 5e0734d031c1540c9ae2b2e262d735ad > files > 41

libpolyxmass11-devel-0.9.1-2mdv2008.1.i586.rpm

/* GNU polyxmass - the massist's program.
   -------------------------------------- 
   Copyright (C) 2000,2001,2002,2003,2004 Filippo Rusconi

   http://www.polyxmass.org

   This file is part of the "GNU polyxmass" project.
   
   The "GNU polyxmass" project is an official GNU project package (see
   www.gnu.org) released ---in its entirety--- under the GNU General
   Public License and was started at the Centre National de la
   Recherche Scientifique (FRANCE), that granted me the formal
   authorization to publish it under this Free Software License.

   This software 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.
   
   This software is distributed in the hope that it will be useful,
   but WITHOUT ANY WARRANTY; without even the implied warranty of
   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
   General Public License for more details.
   
   You should have received a copy of the GNU  General Public
   License along with this software; if not, write to the
   Free Software Foundation, Inc., 51 Franklin St, Fifth Floor,
   Boston, MA 02110-1301, USA.
*/

#ifndef PXMCHEM_SEARCHMASSOPT_H
#define PXMCHEM_SEARCHMASSOPT_H

#include "libpolyxmass-globals.h"
#include "libpolyxmass-prop.h"


#ifdef __cplusplus
extern "C" {
#endif /* __cplusplus */


  typedef struct _PxmSearchmassOpt PxmSearchmassOpt;


  struct _PxmSearchmassOpt
  {
    /* Mass type to search for.
     */
    PxmMassType mass_type;
  
    /* Mass to search for.
     */
    gdouble mass;
  
    /* Type of the tolerance: atomic mass unit, percentage, ppm.
     */
    PxmMassTolerance tolerance_type;

    /* Tolerance value.
     */
    gdouble tolerance;

    /* What chemical entities pertaining to monomers should be stored in
       the oligomer? Default: PXMCHEMENT_MNM_NONE.
    */
    PxmMnmChement mnm_chement;

    /* What chemical entities pertaining to the polymer sequence should
       be stored in the oligomer? Default: PXMCHEMENT_PLM_NONE.
    */
    PxmPlmChement plm_chement;

    /* put_sequence indicates if the generated oligomers should have a
       property holding a copy of the parent polymer sequence
       corresponding to the oligomer.
    */
    gboolean put_sequence; 
  };
  
  
  
  /* NEW'ING FUNCTIONS, DUPLICATING FUNCTIONS ...
   */
  PxmSearchmassOpt *
  pxmchem_searchmassopt_new (void);
  
  PxmSearchmassOpt *
  pxmchem_searchmassopt_dup (PxmSearchmassOpt *smopt, PxmHowDup how_dup);
  
  PxmProp *
  pxmchem_searchmassopt_prop_dup (PxmProp * prop, PxmHowDup how_dup);
  

  /* UTILITY FUNCTIONS
   */
  gboolean
  pxmchem_searchmassopt_set_default (PxmSearchmassOpt *smopt);
  
  
  /* FREE'ING FUNCTIONS
   */
  gboolean
  pxmchem_searchmassopt_free (PxmSearchmassOpt *smopt);

  gint 
  pxmchem_searchmassopt_prop_free (PxmProp *prop);
  




  /* GPtrArray-RELATED FUNCTIONS
   */
  gint
  pxmchem_searchmassopt_GPA_free (GPtrArray *GPA);
  







#ifdef __cplusplus
}
#endif /* __cplusplus */

#endif /* PXMCHEM_SEARCHMASSOPT_H */