UNIVERS  15.3
UNIVERS base processing software API
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
uwe_project.h
1 /* uwe_project.h */
2 /* $Id: uwe_project.h,v 1.5 2009/04/16 08:48:06 vlad Exp $ */
3 #ifndef __uwe_project_h
4 #define __uwe_project_h
5 
6 #include <stdio.h>
7 
8 #include <mix/portability.h>
9 #include <mix/misc.h>
10 
11 
13 #define WE_PROJECT_ENV "PROJECT"
14 
17 #define WE_DSNAME_ENV "UDB_DSNAME"
18 
22 #define WE_LOGDEST_ENV "ULOGDEST"
23 
24 #define WE_LOGDEST_STDLOG_STR "stdlog"
25 #define WE_LOGDEST_STDERR_STR "stderr"
26 #define WE_LOGDEST_STDOUT_STR "stdout"
27 
28 #define WE_LOGDEST_STDLOG_BIT (1<<0)
29 #define WE_LOGDEST_STDERR_BIT (1<<1)
30 #define WE_LOGDEST_STDOUT_BIT (1<<2)
31 
32 
37 typedef struct
38 {
39  char *szProject;
40  char *szDSName;
41  int dbVersion;
47 
48 
49 #ifdef __cplusplus
50 extern "C" {
51 #endif /* C++ */
52 
53  /*
54  * Project support
55  */
56 
58  UNIVERS_API const char* CALLSPEC UweProject ();
59 
62  UNIVERS_API ErrCode CALLSPEC UweGetProjectInfo (UweProjectInfo* pProjInfo);
63 
66  UNIVERS_API long CALLSPEC UweGetProjectSize (const char* szProject);
67 
71  UNIVERS_API ErrCode CALLSPEC UweChangeProject (const char* szProject);
72 
75  UNIVERS_API ErrCode CALLSPEC UweGetListOfProjects (int* n,
76  STRLIST* proj_list);
77 
79  UNIVERS_API ErrCode CALLSPEC UweCreateProject (const char *szDSPath,
80  const char *szProject);
81 
83  UNIVERS_API ErrCode CALLSPEC UweDeleteProject (const char *szDSPath,
84  const char *szProject);
85 
86 
87  /*
88  * Job management (closely related to project service)
89  */
90 
93  UNIVERS_API void CALLSPEC UweAppInitialize (const char* szAppName,
94  int argc, STRLIST argv);
95 
98  UNIVERS_API void CALLSPEC UweNewJob ();
99 
101  UNIVERS_API int CALLSPEC UweJobNumber ();
102 
105  UNIVERS_API void CALLSPEC UweEventTakePlace ();
106 
108  UNIVERS_API int CALLSPEC UweEventsNumber ();
109 
115  UNIVERS_API int CALLSPEC UweMakeAppHit (const char* szProject,
116  const char* szApplication);
117 
120  UNIVERS_API void CALLSPEC UweFreeProjectInfo (UweProjectInfo* pInfo);
121 
137  UNIVERS_API DirEntryItem* CALLSPEC UweBuildDirList (const char* szDirPath,
138  PortDirCB ifSelected,
139  int* pItemsCount,
140  void* pUserData);
141 
145  UNIVERS_API DirEntryItem* CALLSPEC UweBuildSeismicList (const char* szDirPath,
146  int* pItemsCount);
147 
148 #ifndef __uwe_project_vars
149 
152  extern FILE *fpCurLog;
153 
154 #endif /* __uwe_project_vars */
155 
156 
159 #define stdlog fpCurLog
160 
161 
162 #ifdef __cplusplus
163 };
164 #endif /* C++ */
165 
166 
167 #endif /* uwe_project.h */
Definition: uwe_project.h:37
char * szProject
Definition: uwe_project.h:39
char * szDSName
Definition: uwe_project.h:40
Definition: PortableDirs.h:63
int dbVersion
Definition: uwe_project.h:41