summaryrefslogtreecommitdiff
path: root/asnlib/asntool.h
blob: af83ec2de3f222d17b3bd9409b76bf29c3d6e5e3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
/* asncode.h
* ===========================================================================
*
*                            PUBLIC DOMAIN NOTICE
*               National Center for Biotechnology Information
*
*  This software/database is a "United States Government Work" under the
*  terms of the United States Copyright Act.  It was written as part of
*  the author's official duties as a United States Government employee and
*  thus cannot be copyrighted.  This software/database is freely available
*  to the public for use. The National Library of Medicine and the U.S.
*  Government have not placed any restriction on its use or reproduction.
*
*  Although all reasonable efforts have been taken to ensure the accuracy
*  and reliability of the software and data, the NLM and the U.S.
*  Government do not and cannot warrant the performance or results that
*  may be obtained by using this software or data. The NLM and the U.S.
*  Government disclaim all warranties, express or implied, including
*  warranties of performance, merchantability or fitness for any particular
*  purpose.
*
*  Please cite the author in any work or product based on this material.
*
* ===========================================================================
*
* File Name: asncode.h
*
* Author:  Karl Sirotkin
*
* Version Creation Date: 12/3/97
*
* $Revision: 6.4 $
*
* File Description:
*   Includes for building asntool and libraries
*
* Modifications:
* --------------------------------------------------------------------------
* Date     Name        Description of modification
* -------  ----------  -----------------------------------------------------
*
* $Log: asntool.h,v $
* Revision 6.4  2009/11/05 16:54:12  gouriano
* Added option to use quoted syntax form to include headers. JIRA: CXX-1402
*
* Revision 6.3  2005/01/24 17:12:11  kans
* added force_choice_struct (-V) to force struct plus object instead of ValNode for choices - for compatibility with old hand-coded object loaders
*
* Revision 6.2  1998/03/25 23:31:32  kans
* params to register new object manager type, give optional non-default label
*
* Revision 6.1  1997/12/16 14:51:52  kans
* header needed for asntool/asncode merge
*
*
* ==========================================================================
*/

#ifndef _ASNCODE_
#define _ASNCODE_

typedef struct struct_AsnCodeInfo {
   Int4            debug_level;     /* > 0, some debugging  if> 3 max */
   FILE           *bug_fp ;   /* file pointer for debugging print */
   Int2     maxDefineLength;        /* maximum token length */

   CharPtr loadname;  /* goes in "#include <%s>\n\n", in generated
                         .h file, with a forced extension of .h */
   CharPtr filename;  /* for generated code, .h and .c appended */
   Boolean do_bit_twiddle; /* add slot in generated code to
                              track whether slots are present,
                              so a zero value can be output */
   Boolean force_choice_struct; /* generate structure instead of ValNodePtr for choice */
   CharPtr include_filename; /* similar to loadname, except for .c file */
   CharPtr object_manager_entry; /* to create a registered object manager type */
   CharPtr object_label; /* label (defaults to object_manager_entry) */
   AsnModulePtr amp;         /* standard ncbi usage, all modules */
   AsnModulePtr last_amp;    /* stop generating code when get to this module */
   Boolean use_quoted_include;
} AsnCodeInfo, PNTR AsnCodeInfoPtr;

void AsnCode    PROTO ((AsnCodeInfoPtr acip));

#endif