NCBI C Toolkit Cross Reference

C/cdromlib/accutils.h


  1 /*   accutils.h
  2 * ===========================================================================
  3 *
  4 *                            PUBLIC DOMAIN NOTICE                          
  5 *               National Center for Biotechnology Information
  6 *                                                                          
  7 *  This software/database is a "United States Government Work" under the   
  8 *  terms of the United States Copyright Act.  It was written as part of    
  9 *  the author's official duties as a United States Government employee and 
 10 *  thus cannot be copyrighted.  This software/database is freely available 
 11 *  to the public for use. The National Library of Medicine and the U.S.    
 12 *  Government have not placed any restriction on its use or reproduction.  
 13 *                                                                          
 14 *  Although all reasonable efforts have been taken to ensure the accuracy  
 15 *  and reliability of the software and data, the NLM and the U.S.          
 16 *  Government do not and cannot warrant the performance or results that    
 17 *  may be obtained by using this software or data. The NLM and the U.S.    
 18 *  Government disclaim all warranties, express or implied, including       
 19 *  warranties of performance, merchantability or fitness for any particular
 20 *  purpose.                                                                
 21 *                                                                          
 22 *  Please cite the author in any work or product based on this material.   
 23 *
 24 * ===========================================================================
 25 *
 26 * RCS $Id: accutils.h,v 6.8 1999/04/01 13:56:35 sicotte Exp $
 27 *
 28 * Author:  J. Epstein
 29 *
 30 * Version Creation Date:   10/18/93
 31 *
 32 * File Description: 
 33 *       Utilities which make use of the Entrez "data access library"
 34 *
 35 * Modifications:  
 36 * --------------------------------------------------------------------------
 37 * Date     Name        Description of modification
 38 * -------  ----------  -----------------------------------------------------
 39 * 05-16-94 Schuler     Added RCS Log directive.  Comments will henceforth
 40 *                      be inserted automatically into the source at the
 41 *                      time it is checked into the system.
 42 
 43 $Log: accutils.h,v $
 44 Revision 6.8  1999/04/01 13:56:35  sicotte
 45 Moved WHICH_db_accession,IS_ntdb_accession,IS_protdb_accession to
 46   sequtil.ch
 47 Removed old static functions of Colombe (that are public in salutil.c)
 48 The only code left in accutils.c is the Entrez Access code.
 49 
 50 Revision 6.7  1999/03/18 20:24:06  sicotte
 51 changed the define name for NC_ accession
 52 
 53 Revision 6.6  1999/03/18 20:18:18  sicotte
 54 added REFSEQ accession numbers and macro ACCN_IS_GENBANK()
 55 
 56 Revision 6.5  1999/03/18 15:34:04  sicotte
 57 Updated Accession List and added protein Accessions
 58 for functions IS_ntdb_accession and IS_protdb_accession.
 59 New function WHICH_db_accession with return code allowing
 60 to figure out the molecule type and the database from macros
 61 in accutils.h
 62 
 63 Revision 6.4  1999/02/24 16:48:10  kans
 64 added IS_ntdb_accession and IS_protdb_accession, removed NormalizeSeqAlignId
 65 
 66 Revision 6.3  1997/11/14 22:13:52  vakatov
 67 [WIN32,DLL]  Added NLM_EXTERN's
 68 
 69 Revision 6.2  1997/09/12 15:31:01  chappey
 70 changes in NormalizeSeqAlign
 71 
 72 Revision 6.1  1997/09/04 14:14:52  chappey
 73 changes in NormalizeSeqAlign
 74 
 75 Revision 6.0  1997/08/25 18:12:38  madden
 76 Revision changed to 6.0
 77 
 78 Revision 5.8  1997/08/07 16:02:43  kans
 79 added NormalizeSeqAlignId (Colombe)
 80 
 81 Revision 5.7  1997/06/26 21:55:19  vakatov
 82 [PC] DLL'd "ncbicdr.lib", "ncbiacc.lib", "ncbinacc.lib" and "ncbicacc.lib"
 83 
 84 Revision 5.6  1997/02/04 18:57:58  epstein
 85 add GetFullEntrezTermList() function
 86 
 87  * Revision 5.5  1996/09/23  21:23:02  shavirin
 88  * Added include files <tofasta.h> and <lsqfetch.h> for
 89  * AccessionToFasta() function
 90  *
 91  * Revision 5.4  1996/08/14  17:08:29  brandon
 92  * *** empty log message ***
 93  *
 94  * Revision 5.2  1996/08/14  15:15:05  brandon
 95  * added date parameter to tleval functions
 96  *
 97  * Revision 5.1  1996/07/01  14:06:32  epstein
 98  * add 'join function' EntrezCommonHierAncestor()
 99  *
100  * Revision 5.0  1996/05/28  13:55:34  ostell
101  * Set to revision 5.0
102  *
103  * Revision 4.0  1995/07/26  13:50:32  ostell
104  * force revision to 4.0
105  *
106  * Revision 1.4  1995/05/16  14:12:46  schuler
107  * Automatic comment insertion enabled
108  *
109 
110 
111 
112 * ==========================================================================
113 */
114 
115 #ifndef _ACCUTILS_
116 #define _ACCUTILS_
117 
118 #ifndef _ACCENTR_
119 #include <accentr.h>
120 #endif
121 
122 #include <tofasta.h>
123 #include <lsqfetch.h>
124 
125 /* 4/1/99 Temporately include sequtil.h to avoid breaking code that
126    uses IS_ntdb_accession
127    */
128 #include <sequtil.h>
129 
130 #undef NLM_EXTERN
131 #ifdef NLM_IMPORT
132 #define NLM_EXTERN NLM_IMPORT
133 #else
134 #define NLM_EXTERN extern
135 #endif
136 
137 #ifdef __cplusplus
138 extern "C" {
139 #endif
140 
141 
142 
143 
144 NLM_EXTERN CharPtr LIBCALL EntrezFieldToString PROTO((DocType db, DocField fld));
145 NLM_EXTERN DocField LIBCALL EntrezStringToField PROTO((DocType db, CharPtr str));
146 
147 /* Evaluate or parse a text expression describing a boolean query */
148 
149 /* In the event of a lexical or parsing error, begin and end describe the     */
150 /* range wherein an error was detected ... this range is then a candidate for */
151 /* visible highlighting                                                       */
152 
153 /* If fld == -1, then use "[*]" field mechanism (union over all fields) by    */
154 /* default                                                                    */
155 
156 NLM_EXTERN LinkSetPtr LIBCALL EntrezPMTLEvalString PROTO((CharPtr str, DocType db, DocField fld, Int2Ptr begin, Int2Ptr end, void * edc));
157 NLM_EXTERN ByteStorePtr LIBCALL EntrezPMTLEvalXString PROTO((CharPtr str, DocType db, DocField fld, Int2Ptr begin, Int2Ptr end, void * edc));
158 NLM_EXTERN Int4 LIBCALL EntrezPMTLEvalCountString PROTO((CharPtr str, DocType db, DocField fld, Int2Ptr begin, Int2Ptr end, void * edc));
159 NLM_EXTERN Boolean LIBCALL EntrezPMTLParseString PROTO((CharPtr str, DocType db, DocField fld, Int2Ptr begin, Int2Ptr end, void *edc));
160 
161 NLM_EXTERN LinkSetPtr LIBCALL EntrezTLEvalString PROTO((CharPtr str, DocType db, DocField fld, Int2Ptr begin, Int2Ptr end));
162 NLM_EXTERN ByteStorePtr LIBCALL EntrezTLEvalXString PROTO((CharPtr str, DocType db, DocField fld, Int2Ptr begin, Int2Ptr end));
163 NLM_EXTERN Int4 LIBCALL EntrezTLEvalCountString PROTO((CharPtr str, DocType db, DocField fld, Int2Ptr begin, Int2Ptr end));
164 NLM_EXTERN Boolean LIBCALL EntrezTLParseString PROTO((CharPtr str, DocType db, DocField fld, Int2Ptr begin, Int2Ptr end));
165 
166 NLM_EXTERN CharPtr LIBCALL EntrezCommonHierAncestor PROTO((EntrezHierarchyPtr ehp1, EntrezHierarchyPtr ehp2, Int2Ptr distance1, Int2Ptr distance2));
167 
168 NLM_EXTERN CharPtr        * LIBCALL GetFullEntrezTermList PROTO((DocType database, DocField field, Int4Ptr count));
169 
170 
171 #ifdef __cplusplus
172 }
173 #endif
174 
175 #undef NLM_EXTERN
176 #ifdef NLM_EXPORT
177 #define NLM_EXTERN NLM_EXPORT
178 #else
179 #define NLM_EXTERN
180 #endif
181 
182 #endif
183 

source navigation ]   [ diff markup ]   [ identifier search ]   [ freetext search ]   [ file search ]  

This page was automatically generated by the LXR engine.
Visit the LXR main site for more information.