NCBI C Toolkit Cross Reference

C/object/objprt.h


  1 /*  objprt.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 * File Name:  objprt.h
 27 *
 28 * Author:  James Ostell
 29 *   
 30 * Version Creation Date: 4/1/94
 31 *
 32 * $Revision: 6.0 $
 33 *
 34 * File Description:  Object manager interface for print templates
 35 *
 36 * Modifications:  
 37 * --------------------------------------------------------------------------
 38 * Date     Name        Description of modification
 39 * -------  ----------  -----------------------------------------------------
 40 *
 41 *
 42 * $Log: objprt.h,v $
 43 * Revision 6.0  1997/08/25 18:50:24  madden
 44 * Revision changed to 6.0
 45 *
 46 * Revision 4.2  1997/06/19 18:41:43  vakatov
 47 * [WIN32,MSVC++]  Adopted for the "NCBIOBJ.LIB" DLL'ization
 48 *
 49 * Revision 4.1  1995/10/30 18:38:13  kans
 50 * changed true and false fields to truepfb and falsepfb (CodeWarrior error)
 51 *
 52  * Revision 4.0  1995/07/26  13:48:06  ostell
 53  * force revision to 4.0
 54  *
 55  * Revision 3.1  1995/05/15  21:22:00  ostell
 56  * added Log line
 57  *
 58 *
 59 *
 60 * ==========================================================================
 61 */
 62 
 63 #ifndef _NCBI_ObjPrt_
 64 #define _NCBI_ObjPrt_
 65 
 66 #ifndef _ASNTOOL_
 67 #include <asn.h>
 68 #endif
 69 
 70 #undef NLM_EXTERN
 71 #ifdef NLM_IMPORT
 72 #define NLM_EXTERN NLM_IMPORT
 73 #else
 74 #define NLM_EXTERN extern
 75 #endif
 76 
 77 #ifdef __cplusplus
 78 extern "C" {
 79 #endif
 80 
 81 /*****************************************************************************
 82 *
 83 *   loader
 84 *
 85 *****************************************************************************/
 86 NLM_EXTERN Boolean LIBCALL ObjPrtAsnLoad PROTO((void));
 87 
 88 
 89 /**************************************************
 90 *
 91 *    PrintForm
 92 *
 93 **************************************************/
 94 typedef ValNode  PrintForm;
 95 typedef ValNodePtr PrintFormPtr;
 96 #define PrintForm_block 1       /*      PrintFormBlock          */
 97 #define PrintForm_boolean 2     /*      PrintFormBoolean        */
 98 #define PrintForm_enum 3        /*      PrintFormEnum   */
 99 #define PrintForm_text 4        /*      PrintFormText   */
100 #define PrintForm_use_template 5        /*      TemplateName    */
101 #define PrintForm_user 6        /*      UserFormat      */
102 #define PrintForm_null 7        /*      NULL    */
103 
104 
105 NLM_EXTERN PrintFormPtr LIBCALL PrintFormFree PROTO ((PrintFormPtr ));
106 NLM_EXTERN PrintFormPtr LIBCALL PrintFormAsnRead PROTO (( AsnIoPtr, AsnTypePtr));
107 NLM_EXTERN Boolean LIBCALL PrintFormAsnWrite PROTO (( PrintFormPtr , AsnIoPtr, AsnTypePtr));
108 
109 /**************************************************
110 *
111 *    PrintFormat
112 *
113 **************************************************/
114 typedef struct struct_PrintFormat {
115          struct struct_PrintFormat PNTR next;
116         CharPtr   asn1;
117         CharPtr   label;
118         CharPtr   prefix;
119         CharPtr   suffix;
120         PrintFormPtr   form;
121 } PrintFormat, PNTR PrintFormatPtr;
122 
123 
124 NLM_EXTERN PrintFormatPtr LIBCALL PrintFormatFree PROTO ((PrintFormatPtr ));
125 NLM_EXTERN PrintFormatPtr LIBCALL PrintFormatNew PROTO (( void ));
126 NLM_EXTERN PrintFormatPtr LIBCALL PrintFormatAsnRead PROTO (( AsnIoPtr, AsnTypePtr));
127 NLM_EXTERN Boolean LIBCALL PrintFormatAsnWrite PROTO (( PrintFormatPtr , AsnIoPtr, AsnTypePtr));
128 
129 /**************************************************
130 *
131 *    PrintTemplate
132 *
133 **************************************************/
134 typedef struct struct_PrintTemplate {
135         CharPtr   name;
136         CharPtr   labelfrom;
137         PrintFormatPtr   format;
138 } PrintTemplate, PNTR PrintTemplatePtr;
139 
140 
141 NLM_EXTERN PrintTemplatePtr LIBCALL PrintTemplateFree PROTO ((PrintTemplatePtr ));
142 NLM_EXTERN PrintTemplatePtr LIBCALL PrintTemplateNew PROTO (( void ));
143 NLM_EXTERN PrintTemplatePtr LIBCALL PrintTemplateAsnRead PROTO (( AsnIoPtr, AsnTypePtr));
144 NLM_EXTERN Boolean LIBCALL PrintTemplateAsnWrite PROTO (( PrintTemplatePtr , AsnIoPtr, AsnTypePtr));
145 NLM_EXTERN PrintTemplatePtr PNTR LIBCALL PrintTemplateInMem PROTO((Int2Ptr numptr));
146 NLM_EXTERN void LIBCALL PrintTemplateFreeAll PROTO((void));
147 
148 /**************************************************
149 *
150 *    PrintTemplateSet
151 *       Just reads a set into the PTlist
152 *
153 **************************************************/
154 NLM_EXTERN Boolean LIBCALL PrintTemplateSetAsnRead PROTO (( AsnIoPtr ));
155 
156 /**************************************************
157 *
158 *    PrintFormBlock
159 *
160 **************************************************/
161 typedef struct struct_PrintFormBlock {
162         CharPtr   separator;
163         PrintFormatPtr   components;
164 } PrintFormBlock, PNTR PrintFormBlockPtr;
165 
166 NLM_EXTERN PrintFormBlockPtr LIBCALL PrintFormBlockFree PROTO ((PrintFormBlockPtr ));
167 NLM_EXTERN PrintFormBlockPtr LIBCALL PrintFormBlockNew PROTO (( void ));
168 NLM_EXTERN PrintFormBlockPtr LIBCALL PrintFormBlockAsnRead PROTO (( AsnIoPtr, AsnTypePtr));
169 NLM_EXTERN Boolean LIBCALL PrintFormBlockAsnWrite PROTO (( PrintFormBlockPtr , AsnIoPtr, AsnTypePtr));
170 
171 /**************************************************
172 *
173 *    PrintFormBoolean
174 *
175 **************************************************/
176 typedef struct struct_PrintFormBoolean {
177         CharPtr   truepfb;
178         CharPtr   falsepfb;
179 } PrintFormBoolean, PNTR PrintFormBooleanPtr;
180 
181 NLM_EXTERN PrintFormBooleanPtr LIBCALL PrintFormBooleanFree PROTO ((PrintFormBooleanPtr ));
182 NLM_EXTERN PrintFormBooleanPtr LIBCALL PrintFormBooleanNew PROTO (( void ));
183 NLM_EXTERN PrintFormBooleanPtr LIBCALL PrintFormBooleanAsnRead PROTO (( AsnIoPtr, AsnTypePtr));
184 NLM_EXTERN Boolean LIBCALL PrintFormBooleanAsnWrite PROTO (( PrintFormBooleanPtr , AsnIoPtr, AsnTypePtr));
185 
186 /**************************************************
187 *
188 *    PrintFormEnum
189 *
190 **************************************************/
191 typedef struct struct_PrintFormEnum {
192         ValNodePtr values;
193 } PrintFormEnum, PNTR PrintFormEnumPtr;
194 
195 NLM_EXTERN PrintFormEnumPtr LIBCALL PrintFormEnumFree PROTO ((PrintFormEnumPtr ));
196 NLM_EXTERN PrintFormEnumPtr LIBCALL PrintFormEnumNew PROTO (( void ));
197 NLM_EXTERN PrintFormEnumPtr LIBCALL PrintFormEnumAsnRead PROTO (( AsnIoPtr, AsnTypePtr));
198 NLM_EXTERN Boolean LIBCALL PrintFormEnumAsnWrite PROTO (( PrintFormEnumPtr , AsnIoPtr, AsnTypePtr));
199 
200 /**************************************************
201 *
202 *    PrintFormText
203 *
204 **************************************************/
205 typedef struct struct_PrintFormText {
206         CharPtr   textfunc;
207 } PrintFormText, PNTR PrintFormTextPtr;
208 
209 NLM_EXTERN PrintFormTextPtr LIBCALL PrintFormTextFree PROTO ((PrintFormTextPtr ));
210 NLM_EXTERN PrintFormTextPtr LIBCALL PrintFormTextNew PROTO (( void ));
211 NLM_EXTERN PrintFormTextPtr LIBCALL PrintFormTextAsnRead PROTO (( AsnIoPtr, AsnTypePtr));
212 NLM_EXTERN Boolean LIBCALL PrintFormTextAsnWrite PROTO (( PrintFormTextPtr , AsnIoPtr, AsnTypePtr));
213 
214 /**************************************************
215 *
216 *    UserFormat
217 *
218 **************************************************/
219 typedef struct struct_UserFormat {
220         CharPtr   printfunc;
221         CharPtr   defaultfunc;
222 } UserFormat, PNTR UserFormatPtr;
223 
224 NLM_EXTERN UserFormatPtr LIBCALL UserFormatFree PROTO ((UserFormatPtr ));
225 NLM_EXTERN UserFormatPtr LIBCALL UserFormatNew PROTO (( void ));
226 NLM_EXTERN UserFormatPtr LIBCALL UserFormatAsnRead PROTO (( AsnIoPtr, AsnTypePtr));
227 NLM_EXTERN Boolean LIBCALL UserFormatAsnWrite PROTO (( UserFormatPtr , AsnIoPtr, AsnTypePtr));
228 
229 #ifdef __cplusplus
230 }
231 #endif
232 
233 #undef NLM_EXTERN
234 #ifdef NLM_EXPORT
235 #define NLM_EXTERN NLM_EXPORT
236 #else
237 #define NLM_EXTERN
238 #endif
239 
240 #endif
241 
242 

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.