irods  4.2.8
About: iRODS (the integrated Rule Oriented Data System) is a distributed data-management system for creating data grids, digital libraries, persistent archives, and real-time data systems.
  Fossies Dox: irods-4.2.8.tar.gz  ("unofficial" and yet experimental doxygen-generated source code documentation)  

reGlobalsExtern.hpp
Go to the documentation of this file.
1 
3 /* reGlobalsExtern.hpp - header file for global extern declaration for the
4  * rule engine modules
5  */
6 
7 #ifndef RE_GLOBALS_EXTERN_HPP
8 #define RE_GLOBALS_EXTERN_HPP
9 
10 
22 #include "rodsUser.h"
23 #include "rods.h"
24 #include "rcGlobalExtern.h"
25 #include "objInfo.h"
26 #include "fileOpen.h"
27 #include "regExpMatch.hpp"
28 #include "reDefines.h"
29 #include "ruleExecSubmit.h"
30 #include "ruleExecDel.h"
31 #include "dataObjInpOut.h"
32 #include "msParam.h"
33 #include "modAccessControl.h"
34 
35 #if 0
36 
37 
38 
39 
40 
41 
42 
43 
44 
45 
46 
47 
48 
49 typedef struct RuleExecInfo {
50  int status;
51  char statusStr[MAX_NAME_LEN];
52  char ruleName[NAME_LEN]; /* name of rule */
57  int l1descInx;
58  dataObjInp_t *doinp; /* data object type input */
60  char rescName[NAME_LEN]; // replaces rgi above
61  userInfo_t *uoic; /* client XXXX should get this from rsComm->clientUser */
62  userInfo_t *uoip; /* proxy XXXX should get this from rsComm->proxyUser */
63  collInfo_t *coi;
64  userInfo_t *uoio; /* other user info */
66 
69  struct RuleExecInfo *next;
71 #endif
72 
73 
74 
75 
76 
77 
78 
79 
80 
81 
82 
83 
84 
86 struct reDebugStack {
87  char *step;
88  int label;
89 };
90 
91 typedef struct {
93  char *ruleBase[MAX_NUM_OF_RULES];
95  char *ruleHead[MAX_NUM_OF_RULES];
96  char *ruleCondition[MAX_NUM_OF_RULES];
97  char *ruleAction[MAX_NUM_OF_RULES];
98  char *ruleRecovery[MAX_NUM_OF_RULES];
99  long int ruleId[MAX_NUM_OF_RULES];
100 } ruleStruct_t;
101 
102 typedef struct {
104  char *varName[MAX_NUM_OF_DVARS];
106  char *var2CMap[MAX_NUM_OF_DVARS];
107  long int varId[MAX_NUM_OF_DVARS];
108 } rulevardef_t;
109 
111 
112 typedef struct {
114  char *funcName[MAX_NUM_OF_FMAPS];
115  char *func2CMap[MAX_NUM_OF_FMAPS];
116  long int fmapId[MAX_NUM_OF_FMAPS];
117 } rulefmapdef_t;
118 
120 
121 typedef struct {
123  long int msrvcId[MAX_NUM_OF_MSRVCS];
124  char *moduleName[MAX_NUM_OF_MSRVCS];
125  char *msrvcName[MAX_NUM_OF_MSRVCS];
126  char *msrvcSignature[MAX_NUM_OF_MSRVCS];
127  char *msrvcVersion[MAX_NUM_OF_MSRVCS];
128  char *msrvcHost[MAX_NUM_OF_MSRVCS];
129  char *msrvcLocation[MAX_NUM_OF_MSRVCS];
130  char *msrvcLanguage[MAX_NUM_OF_MSRVCS];
131  char *msrvcTypeName[MAX_NUM_OF_MSRVCS];
132  long int msrvcStatus[MAX_NUM_OF_MSRVCS];
133 } msrvcStruct_t;
134 
143 extern int reTestFlag;
144 extern int reLoopBackFlag;
145 extern int GlobalREDebugFlag;
146 extern int GlobalREAuditFlag;
149 extern int reDebugStackFullPtr;
150 extern int reDebugStackCurrPtr;
151 
152 //#include "reFuncDefs.hpp"
153 #include "reHelpers1.hpp"
154 #endif /* RE_GLOBALS_EXTERN_H */
rsComm_t
Definition: rcConnect.h:145
fileOpen.h
appRuleVarDef
rulevardef_t appRuleVarDef
Definition: libirods_rule_engine_plugin-irods_rule_language.cpp:51
GlobalREAuditFlag
int GlobalREAuditFlag
Definition: libirods_rule_engine_plugin-irods_rule_language.cpp:59
reHelpers1.hpp
ruleExecInfo_t
struct RuleExecInfo ruleExecInfo_t
coreRuleFuncMapDef
rulefmapdef_t coreRuleFuncMapDef
Definition: libirods_rule_engine_plugin-irods_rule_language.cpp:49
msParam.h
userInfo_t
Definition: rodsUser.h:65
rulefmapdef_t::MaxNumOfFMaps
int MaxNumOfFMaps
Definition: reGlobalsExtern.hpp:113
rodsUser.h
RuleExecInfo::status
int status
Definition: irods_re_structs.hpp:19
GlobalREDebugFlag
int GlobalREDebugFlag
Definition: libirods_rule_engine_plugin-irods_rule_language.cpp:58
RuleExecInfo::coi
collInfo_t * coi
Definition: irods_re_structs.hpp:32
modAccessControl.h
reDebugStack
Definition: reGlobalsExtern.hpp:86
reDefines.h
RuleExecInfo::doi
dataObjInfo_t * doi
Definition: irods_re_structs.hpp:28
RuleExecInfo::doinp
dataObjInp_t * doinp
Definition: irods_re_structs.hpp:27
coreRuleVarDef
rulevardef_t coreRuleVarDef
Definition: libirods_rule_engine_plugin-irods_rule_language.cpp:48
rcGlobalExtern.h
reDebugStackFullPtr
int reDebugStackFullPtr
Definition: libirods_rule_engine_plugin-irods_rule_language.cpp:62
run_tests.action
action
Definition: run_tests.py:114
ruleExecDel.h
CollInfo
Definition: objInfo.h:177
reDebugStack::label
int label
Definition: reGlobalsExtern.hpp:88
RuleExecInfo::rsComm
rsComm_t * rsComm
Definition: irods_re_structs.hpp:22
dataObjInpOut.h
RuleExecInfo::condInputData
keyValPair_t * condInputData
Definition: irods_re_structs.hpp:34
msrvcStruct_t::MaxNumOfMsrvcs
int MaxNumOfMsrvcs
Definition: reGlobalsExtern.hpp:122
reDebugStackCurrPtr
int reDebugStackCurrPtr
Definition: libirods_rule_engine_plugin-irods_rule_language.cpp:63
reDebugStackCurr
struct reDebugStack reDebugStackCurr[1000]
Definition: libirods_rule_engine_plugin-irods_rule_language.cpp:61
ruleStruct_t::MaxNumOfRules
int MaxNumOfRules
Definition: reGlobalsExtern.hpp:92
RuleExecInfo::uoip
userInfo_t * uoip
Definition: irods_re_structs.hpp:31
appRuleStrct
ruleStruct_t appRuleStrct
Definition: libirods_rule_engine_plugin-irods_rule_language.cpp:50
fnmapStruct_t
rulefmapdef_t fnmapStruct_t
Definition: reGlobalsExtern.hpp:119
REDEBUG_STACK_SIZE_FULL
#define REDEBUG_STACK_SIZE_FULL
Definition: reDefines.h:51
ruleExecSubmit.h
REDEBUG_STACK_SIZE_CURR
#define REDEBUG_STACK_SIZE_CURR
Definition: reDefines.h:52
RuleExecInfo::statusStr
char statusStr[(1024+64)]
Definition: irods_re_structs.hpp:20
regExpMatch.hpp
rulevardef_t
Definition: reGlobalsExtern.hpp:102
DataObjInp
Definition: dataObjInpOut.h:65
MAX_NAME_LEN
#define MAX_NAME_LEN
Definition: rodsDef.h:61
reDebugStackFull
char * reDebugStackFull[2000]
Definition: libirods_rule_engine_plugin-irods_rule_language.cpp:60
appMsrvcStruct
msrvcStruct_t appMsrvcStruct
Definition: libirods_rule_engine_plugin-irods_rule_language.cpp:54
MAX_NUM_OF_RULES
#define MAX_NUM_OF_RULES
Definition: reDefines.h:13
reLoopBackFlag
int reLoopBackFlag
Definition: libirods_rule_engine_plugin-irods_rule_language.cpp:56
RULE_SET_DEF_LENGTH
#define RULE_SET_DEF_LENGTH
Definition: reDefines.h:26
reDebugStack::step
char * step
Definition: reGlobalsExtern.hpp:87
RuleExecInfo::uoio
userInfo_t * uoio
Definition: irods_re_structs.hpp:33
RuleExecInfo::ruleName
char ruleName[64]
Definition: irods_re_structs.hpp:21
RuleExecInfo::l1descInx
int l1descInx
Definition: irods_re_structs.hpp:26
MAX_NUM_OF_FMAPS
#define MAX_NUM_OF_FMAPS
Definition: reDefines.h:15
rulevardef_t::MaxNumOfDVars
int MaxNumOfDVars
Definition: reGlobalsExtern.hpp:103
MAX_NUM_OF_MSRVCS
#define MAX_NUM_OF_MSRVCS
Definition: reDefines.h:16
coreRuleStrct
ruleStruct_t coreRuleStrct
Definition: libirods_rule_engine_plugin-irods_rule_language.cpp:47
objInfo.h
RuleExecInfo::pluginInstanceName
char pluginInstanceName[(1024+64)]
Definition: irods_re_structs.hpp:23
RuleExecInfo::uoic
userInfo_t * uoic
Definition: irods_re_structs.hpp:30
RuleExecInfo::msParamArray
msParamArray_t * msParamArray
Definition: irods_re_structs.hpp:24
RuleExecInfo::rescName
char rescName[64]
Definition: irods_re_structs.hpp:29
RuleExecInfo
Definition: irods_re_structs.hpp:18
rulefmapdef_t
Definition: reGlobalsExtern.hpp:112
appRuleFuncMapDef
rulefmapdef_t appRuleFuncMapDef
Definition: libirods_rule_engine_plugin-irods_rule_language.cpp:52
dvmStruct_t
rulevardef_t dvmStruct_t
Definition: reGlobalsExtern.hpp:110
msrvcStruct_t
Definition: reGlobalsExtern.hpp:121
reTestFlag
int reTestFlag
Definition: libirods_rule_engine_plugin-irods_rule_language.cpp:55
coreMsrvcStruct
msrvcStruct_t coreMsrvcStruct
Definition: libirods_rule_engine_plugin-irods_rule_language.cpp:53
ruleStruct_t
Definition: reGlobalsExtern.hpp:91
MsParamArray
Definition: msParam.h:84
NAME_LEN
#define NAME_LEN
Definition: rodsDef.h:55
KeyValPair
Definition: objInfo.h:120
DataObjInfo
Definition: objInfo.h:129
RuleExecInfo::next
struct RuleExecInfo * next
Definition: irods_re_structs.hpp:38
RuleExecInfo::inOutMsParamArray
msParamArray_t inOutMsParamArray
Definition: irods_re_structs.hpp:25
rods.h
MAX_NUM_OF_DVARS
#define MAX_NUM_OF_DVARS
Definition: reDefines.h:14
ruleSet
Definition: restructs.hpp:282