NCBI C++ ToolKit
utilref.h
Go to the documentation of this file.

Go to the SVN repository for this file.

1 /* $Id: utilref.h 102048 2024-03-22 14:21:22Z stakhovv $
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  * File Name: utilref.h
27  *
28  * Author: Karl Sirotkin, Hsiu-Chuan Chen
29  *
30  * File Description:
31  *
32  */
33 
34 #ifndef _UTILREF_
35 #define _UTILREF_
36 
37 enum ERefFormat {
38  GB_REF = 0,
39  EMBL_REF = 1,
40  SP_REF = 2,
41  PIR_REF = 3,
42  PDB_REF = 4,
43  ML_REF = 5,
44 };
45 
46 //#include <objtools/flatfile/asci_blk.h>
47 
51 
53 
54 Int4 valid_pages_range(char* pages, const Char* title, Int4 er, bool inpress);
55 ValNodePtr get_tokens(char* str, const Char* delimeter);
56 
57 void DealWithGenes(TEntryList& seq_entries, ParserPtr pp);
58 
62 void get_auth(char* pt, ERefFormat format, char* jour, CRef<objects::CAuth_list>& auths);
65 
67 
68 #endif
list< CRef< objects::CSeq_entry > > TEntryList
static const char * str(char *buf, int n)
Definition: stats.c:84
int32_t Int4
4-byte (32-bit) signed integer
Definition: ncbitype.h:102
char Char
Alias for char.
Definition: ncbitype.h:93
#define END_NCBI_SCOPE
End previously defined NCBI scope.
Definition: ncbistl.hpp:103
#define BEGIN_NCBI_SCOPE
Define ncbi namespace.
Definition: ncbistl.hpp:100
static Format format
Definition: njn_ioutil.cpp:53
ValNodePtr get_tokens(char *str, const Char *delimeter)
Definition: utilref.cpp:66
void DealWithGenes(TEntryList &seq_entries, ParserPtr pp)
Definition: genref.cpp:2957
CRef< objects::CDate > get_date(const Char *year)
Definition: utilref.cpp:503
void get_auth_from_toks(ValNodePtr tokens, ERefFormat format, CRef< objects::CAuth_list > &auths)
CRef< objects::CCit_gen > get_error(char *bptr, CRef< objects::CAuth_list > &auth_list, CRef< objects::CTitle::C_E > &title)
Int4 valid_pages_range(char *pages, const Char *title, Int4 er, bool inpress)
Definition: utilref.cpp:419
CRef< objects::CAuthor > get_std_auth(const Char *token, ERefFormat format)
Definition: utilref.cpp:177
void get_auth(char *pt, ERefFormat format, char *jour, CRef< objects::CAuth_list > &auths)
void get_auth_consortium(char *cons, CRef< objects::CAuth_list > &auths)
ERefFormat
Definition: utilref.h:37
@ PIR_REF
Definition: utilref.h:41
@ ML_REF
Definition: utilref.h:43
@ PDB_REF
Definition: utilref.h:42
@ SP_REF
Definition: utilref.h:40
@ EMBL_REF
Definition: utilref.h:39
@ GB_REF
Definition: utilref.h:38
Modified on Wed Sep 04 15:01:21 2024 by modify_doxy.py rev. 669887