~ubuntu-branches/ubuntu/dapper/ncbi-tools6/dapper

« back to all changes in this revision

Viewing changes to object/objsub.h

  • Committer: Bazaar Package Importer
  • Author(s): Aaron M. Ucko
  • Date: 2002-04-04 22:13:09 UTC
  • Revision ID: james.westby@ubuntu.com-20020404221309-vfze028rfnlrldct
Tags: upstream-6.1.20011220a
ImportĀ upstreamĀ versionĀ 6.1.20011220a

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/*  objsub.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: objsub.h,v 6.2 1999/09/27 17:48:39 kans Exp $
 
27
*
 
28
* Author:  James Ostell
 
29
*   
 
30
* Version Creation Date: 6/20/92
 
31
*
 
32
* $Revision: 6.2 $
 
33
*
 
34
* File Description:  Object manager interface for module NCBI-Sub
 
35
*
 
36
* Modifications:  
 
37
* --------------------------------------------------------------------------
 
38
* Date     Name        Description of modification
 
39
* -------  ----------  -----------------------------------------------------
 
40
*
 
41
*
 
42
* $Log: objsub.h,v $
 
43
* Revision 6.2  1999/09/27 17:48:39  kans
 
44
* using GatherIndex structure
 
45
*
 
46
* Revision 6.1  1999/09/26 19:42:51  kans
 
47
* added EXTRA_OBJMGR_FIELDS to SeqSubmit
 
48
*
 
49
* Revision 6.0  1997/08/25 18:51:04  madden
 
50
* Revision changed to 6.0
 
51
*
 
52
* Revision 4.1  1997/06/19 18:42:14  vakatov
 
53
* [WIN32,MSVC++]  Adopted for the "NCBIOBJ.LIB" DLL'ization
 
54
*
 
55
* Revision 4.0  1995/07/26 13:48:06  ostell
 
56
* force revision to 4.0
 
57
*
 
58
 * Revision 3.5  1995/06/20  15:29:39  schuler
 
59
 * Eliminated name conflict on struct/struc member "conflict"
 
60
 *
 
61
 * Revision 3.4  1995/05/15  21:22:00  ostell
 
62
 * added Log line
 
63
 *
 
64
*
 
65
*
 
66
* ==========================================================================
 
67
*/
 
68
 
 
69
#ifndef _NCBI_Submit_
 
70
#define _NCBI_Submit_
 
71
 
 
72
#ifndef _NCBI_Seqset_
 
73
#include <objsset.h>
 
74
#endif
 
75
 
 
76
#undef NLM_EXTERN
 
77
#ifdef NLM_IMPORT
 
78
#define NLM_EXTERN NLM_IMPORT
 
79
#else
 
80
#define NLM_EXTERN extern
 
81
#endif
 
82
 
 
83
#ifdef __cplusplus
 
84
extern "C" {
 
85
#endif
 
86
 
 
87
/*****************************************************************************
 
88
*
 
89
*   loader
 
90
*
 
91
*****************************************************************************/
 
92
NLM_EXTERN Boolean LIBCALL SubmitAsnLoad PROTO((void));
 
93
 
 
94
/*****************************************************************************
 
95
*
 
96
*   internal structures for NCBI-Submit objects
 
97
*
 
98
*****************************************************************************/
 
99
 
 
100
/*****************************************************************************
 
101
*
 
102
*   Contact Info
 
103
*
 
104
*****************************************************************************/
 
105
typedef struct ContactInfo {
 
106
        CharPtr name;
 
107
        ValNodePtr address;            /* chain of strings */
 
108
        CharPtr phone,
 
109
                fax,
 
110
                email,
 
111
                telex;
 
112
        ObjectIdPtr owner_id;
 
113
        ByteStorePtr password;
 
114
        CharPtr last_name,
 
115
                first_name,
 
116
                middle_initial;
 
117
        AuthorPtr contact;
 
118
} ContactInfo, PNTR ContactInfoPtr;
 
119
 
 
120
NLM_EXTERN ContactInfoPtr LIBCALL ContactInfoNew PROTO((void));
 
121
NLM_EXTERN ContactInfoPtr LIBCALL ContactInfoFree PROTO(( ContactInfoPtr cip));
 
122
NLM_EXTERN ContactInfoPtr LIBCALL ContactInfoAsnRead PROTO((AsnIoPtr aip, AsnTypePtr atp));
 
123
NLM_EXTERN Boolean        LIBCALL ContactInfoAsnWrite PROTO((ContactInfoPtr cip, AsnIoPtr aip, AsnTypePtr atp));
 
124
NLM_EXTERN Int2 LIBCALL ContactInfoLabel PROTO((ContactInfoPtr cip, CharPtr buffer, Int2 buflen, Uint1 content));
 
125
 
 
126
/*****************************************************************************
 
127
*
 
128
*   Submit-block
 
129
*
 
130
*****************************************************************************/
 
131
typedef struct subblk {
 
132
        ContactInfoPtr contact;
 
133
        CitSubPtr cit;
 
134
        Boolean hup;      /* hold until published */
 
135
        DatePtr reldate;  /* release date */
 
136
        Uint1 subtype;    /* submission type */
 
137
        CharPtr tool,     /* tool that made this submission */
 
138
                user_tag,     /* user "handle" to identify this submission */
 
139
                comment;      /* instructions to submission staff */
 
140
} SubmitBlock, PNTR SubmitBlockPtr;
 
141
 
 
142
NLM_EXTERN SubmitBlockPtr LIBCALL SubmitBlockNew PROTO((void));
 
143
NLM_EXTERN SubmitBlockPtr LIBCALL SubmitBlockFree PROTO(( SubmitBlockPtr sbp));
 
144
NLM_EXTERN SubmitBlockPtr LIBCALL SubmitBlockAsnRead PROTO((AsnIoPtr aip, AsnTypePtr atp));
 
145
NLM_EXTERN Boolean        LIBCALL SubmitBlockAsnWrite PROTO((SubmitBlockPtr sbp, AsnIoPtr aip, AsnTypePtr atp));
 
146
NLM_EXTERN Int2 LIBCALL SubmitBlockLabel PROTO((SubmitBlockPtr sbp, CharPtr buffer, Int2 buflen, Uint1 content));
 
147
 
 
148
/*****************************************************************************
 
149
*
 
150
*   Seq-submit
 
151
*       datatype =
 
152
*               0 = not-set (error)
 
153
*               1 = Seq-entry(s) (data = SeqEntryPtr, possibly a chain)
 
154
*               2 = Seq-annot(s) (data = SeqAnnotPtr, possibly a chain)
 
155
*               3 = Seq-id(s) for delete (data = SeqIdPtr, possibly a chain)
 
156
*
 
157
*****************************************************************************/
 
158
typedef struct seqsub {
 
159
        SubmitBlockPtr sub;
 
160
        Uint1 datatype;
 
161
        Pointer data;
 
162
        GatherIndex idx;     /* internal gather/objmgr tracking fields */
 
163
} SeqSubmit, PNTR SeqSubmitPtr;
 
164
 
 
165
NLM_EXTERN SeqSubmitPtr LIBCALL SeqSubmitNew PROTO((void));
 
166
NLM_EXTERN SeqSubmitPtr LIBCALL SeqSubmitFree PROTO(( SeqSubmitPtr ssp));
 
167
NLM_EXTERN SeqSubmitPtr LIBCALL SeqSubmitAsnRead PROTO((AsnIoPtr aip, AsnTypePtr atp));
 
168
NLM_EXTERN Boolean      LIBCALL SeqSubmitAsnWrite PROTO((SeqSubmitPtr ssp, AsnIoPtr aip, AsnTypePtr atp));
 
169
NLM_EXTERN Int2 LIBCALL SeqSubmitLabel PROTO((SeqSubmitPtr ssp, CharPtr buffer, Int2 buflen, Uint1 content));
 
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