UNIVERS  15.3
UNIVERS base processing software API
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
pep_cli.h
1 /* pep_cli.h */
2 /* $Id: pep_cli.h,v 1.4 2009/04/14 12:15:58 vlad Exp $ */
3 #ifndef __pep_cli_h
4 #define __pep_cli_h
5 
6 #include <stdlib.h>
7 #include <stdio.h>
8 
9 /*************************************************************
10  *
11  * Client side PEP API.
12  *
13  *************************************************************/
14 
15 #include <csi/pep_defs.h>
16 
17 
18 #ifdef __cplusplus
19 extern "C" {
20 #endif /* __cplusplus */
21 
27 #if defined(__cplusplus) && defined(PEP_CORE)
28 typedef Protocol* PEP;
29 #else
30 typedef void* PEP;
31 #endif /* __cplusplus && PEP_CORE */
32 
35 typedef struct
36 {
37  char *name;
38  char *type;
39  char *targ;
40  char *label;
41  char *anno;
43 } PEP_ParDesc;
44 
45 
46 /*************************************************************
47  * Main tools.
48  *************************************************************/
49 
51 void PEP_AppStart (const char* application, int ver_no,
52  int argc, char** argv);
53 
55 void PEP_AppEnd (int exit_code);
56 
58 #define exit(exit_code) PEP_AppEnd(exit_code)
59 
61 void PEP_GetValue (PEP pep, const char* pname, .../* value */);
62 
64 void PEP_SetValue (PEP pep, const char* pname, .../* value */);
65 
66 
67 /*************************************************************
68  * Additional tools.
69  *************************************************************/
70 
72 void PEP_InputValues (PEP pep, FILE* stream);
73 
75 void PEP_OutputValues (PEP pep, FILE* stream);
76 
78 int PEP_ParamCount (PEP pep);
79 
81 void PEP_ParamDesc (PEP pep, int pindex, PEP_ParDesc* pdesc);
82 
85 void PEP_GetTextValue (PEP pep, const char* pname, char** text);
86 
88 void PEP_SetTextValue (PEP pep, const char* pname, const char* text);
89 
90 
91 
92 #ifndef __pep_cli_global_vars
93 
94 /* Handles of protocols */
95 extern PEP pepParameters;
96 extern PEP pepRuntime;
97 extern PEP pepResults;
98 extern PEP pepProperties;
101 extern FILE* fplog;
102 
103 #endif /* __pep_cli_global_vars */
104 
105 #ifdef __cplusplus
106 };
107 #endif /* __cplusplus */
108 
109 #endif /* pep_cli.h */
char * targ
Definition: pep_cli.h:39
char * label
Definition: pep_cli.h:40
char * name
Definition: pep_cli.h:37
char * type
Definition: pep_cli.h:38
char * anno
Definition: pep_cli.h:41
Definition: pep.H:23
Definition: pep_cli.h:35