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)  

reFuncDefs.hpp File Reference
#include "restructs.hpp"
#include "reGlobalsExtern.hpp"
#include "irods_re_structs.hpp"
#include "irods_ms_plugin.hpp"
Include dependency graph for reFuncDefs.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

int initRuleStruct (const char *inst_name, rsComm_t *svrComm, const char *ruleSet, const char *dvmSet, const char *fnmSet)
 
int readRuleStructFromFile (const char *inst_name, const char *ruleBaseName)
 
int computeExpression (char *expr, msParamArray_t *msParamArray, ruleExecInfo_t *rei, int reiSaveFlag, char *res)
 
int clearRuleStruct (ruleStruct_t *inRuleStrct)
 
int readDVarStructFromFile (char *dvarBaseName, rulevardef_t *inRuleVarDef)
 
int clearDVarStruct (rulevardef_t *inRuleVarDef)
 
int readFuncMapStructFromFile (char *fmapBaseName, rulefmapdef_t *inRuleFuncMapDef)
 
int clearFuncMapStruct (rulefmapdef_t *inRuleFuncMapDef)
 
int getRule (int ri, char *ruleBase, char *ruleHead, char *ruleCondition, char *ruleAction, char *ruleRecovery, int rSize)
 
int executeRuleBody (char *action, char *ruleAction, char *ruleRecovery, char *args[20], int argc, ruleExecInfo_t *rei, int reiSaveFlag)
 
int getActionRecoveryList (char *ruleAction, char *ruleRecovery, char *actionArray[], char *recoveryArray[])
 
int executeRuleRecovery (char *ruleRecovery, ruleExecInfo_t *rei, int reiSaveFlag)
 
int parseAction (char *inAction, char *action, char *args[], int *argc)
 
int executeRuleAction (char *inAction, ruleExecInfo_t *rei, int reiSaveFlag)
 
int actionTableLookUp (irods::ms_table_entry &, char *action)
 
int applyRuleArgPA (const char *action, const char *args[20], int argc, msParamArray_t *inMsParamArray, ruleExecInfo_t *rei, int reiSaveFlag)
 
int applyRuleBase (char *inAction, msParamArray_t *inMsParamArray, int update, ruleExecInfo_t *rei, int reiSaveFlag)
 
int applyRuleUpdateParams (char *inAction, msParamArray_t *inMsParamArray, ruleExecInfo_t *rei, int reiSaveFlag)
 
int applyAllRules (char *inAction, msParamArray_t *inMsParamArray, ruleExecInfo_t *rei, int reiSaveFlag, int allRuleExecFlag)
 
int getNextAction (char *listOfAction, char *action, char **restPtr)
 
int checkRuleHead (char *ruleHead, char *args[20], int argc)
 
int checkRuleCondition (char *action, char *incond, char *args[20], int argc, ruleExecInfo_t *rei, int reiSaveFlag)
 
int replaceVariables (char *action, char *inStr, char *args[20], int argc, ruleExecInfo_t *rei)
 
int replaceDollarParam (char *action, char *dPtr, int len, char *args[20], int argc, ruleExecInfo_t *rei)
 
int replaceArgVar (char *start, int size, char *args[20], int argc)
 
int replaceSessionVar (char *action, char *start, int size, ruleExecInfo_t *rei)
 
int replaceDataVar (char *start, int size, dataObjInfo_t *doi)
 
int replaceUserVar (char *start, int size, userInfo_t *uoic, userInfo_t *uoip)
 
int replaceCollVar (char *start, int size, collInfo_t *coi)
 
int isNumber (char *s)
 
int isLogical (char *s)
 
int isAFunction (char *s)
 
int splitExpression (char *expr, char *expr1, char *expr2, char *oper)
 
int goodExpr (char *expr)
 
int replaceStrValue (char *start, int size, char *val, int paramLen)
 
int replaceIntValue (char *start, int size, int inval, int paramLen)
 
int replaceLongValue (char *start, int size, rodsLong_t inval, int paramLen)
 
int replaceULongValue (char *start, int size, rodsULong_t inval, int paramLen)
 
int mapExternalFuncToInternalProc (char *funcName)
 
int zeroRuleExecInfoStruct (ruleExecInfo_t *rei)
 
int packRei (ruleExecInfo_t *rei, bytesBuf_t **packedReiBBuf)
 
int unpackRei (rsComm_t *rsComm, ruleExecInfo_t **rei, bytesBuf_t *packedReiBBuf)
 
int packReiAndArg (ruleExecInfo_t *rei, char *myArgv[], int myArgc, bytesBuf_t **packedReiAndArgBBuf)
 
int unpackReiAndArg (rsComm_t *rsComm, ruleExecInfoAndArg_t **reiAndArg, bytesBuf_t *packedReiAndArgBBuf)
 
int pushStack (strArray_t *strArray, char *value)
 
int popStack (strArray_t *strArray, char *value)
 
std::map< std::string, std::vector< std::string > > getTaggedValues (const char *str)
 
int print_uoi (userInfo_t *uoi)
 
int print_doi (dataObjInfo_t *doi)
 
int execMyRule (char *ruleDef, msParamArray_t *inMsParamArray, const char *outParamsDesc, ruleExecInfo_t *rei)
 
int execMyRuleWithSaveFlag (char *ruleDef, msParamArray_t *inMsParamArray, const char *outParamsDesc, ruleExecInfo_t *rei, int reiSaveFlag)
 
int executeMyRuleBody (char *action, char *ruleAction, char *ruleRecovery, msParamArray_t *inMsParamArray, ruleExecInfo_t *rei, int reiSaveFlag)
 
int executeMyRuleRecovery (char *ruleRecovery, msParamArray_t *inMsParamArray, ruleExecInfo_t *rei, int reiSaveFlag)
 
int executeMyRuleAction (char *inAction, msParamArray_t *inMsParamArray, ruleExecInfo_t *rei, int reiSaveFlag)
 
int executeMicroService (char *action, char *args[20], int argc, ruleExecInfo_t *rei)
 
int applyActionCall (char *actionCall, ruleExecInfo_t *rei, int reiSaveFlag)
 
int clearMsparamInRei (ruleExecInfo_t *rei)
 
int _delayExec (const char *inActionCall, const char *recoveryActionCall, const char *delayCondition, ruleExecInfo_t *rei)
 
int executeRuleActionNew (char *inAction, msParamArray_t *inMsParamArray, ruleExecInfo_t *rei, int reiSaveFlag)
 
int executeRuleRecoveryNew (char *ruleRecovery, msParamArray_t *inMsParamArray, ruleExecInfo_t *rei, int reiSaveFlag)
 
int executeMicroServiceNew (char *inAction, msParamArray_t *inMsParamArray, ruleExecInfo_t *rei)
 
int makeAction (char *outAction, char *action, char *args[], int argc, int len)
 
int executeRuleBodyNew (char *action, char *ruleAction, char *ruleRecovery, msParamArray_t *inMsParamArray, ruleExecInfo_t *rei, int reiSaveFlag)
 
int replaceStarVar (char *action, char *start, int size, msParamArray_t *inMsParamArray)
 
int freeRuleArgs (char *args[], int argc)
 
int doForkExec (char *prog, char *arg1)
 
int writeString (msParam_t *where, msParam_t *inString, ruleExecInfo_t *rei)
 
int getNewVarName (char *v, msParamArray_t *msParamArray)
 
int splitActions (char *expr, char *expr1, char **expr2)
 
int isStarVariable (char *str)
 
int _admShowDVM (ruleExecInfo_t *rei, rulevardef_t *inRuleVarDef, int inx)
 
int _admShowFNM (ruleExecInfo_t *rei, rulefmapdef_t *inRuleFuncMapDef, int inx)
 
int getNextValueAndBufFromListOrStruct (char *typ, void *inPtr, void **value, bytesBuf_t **buf, void **restPtr, int *inx, char **outtyp)
 
int carryOverMsParam (msParamArray_t *sourceMsParamArray, msParamArray_t *targetMsParamArray)
 
int checkFilePerms (char *fileName)
 
int evaluateExpression (char *expr, char *res, ruleExecInfo_t *rei)
 
int removeTmpVarName (msParamArray_t *msParamArray)
 
int getAllSessionVarValue (ruleExecInfo_t *rei, keyValPair_t *varValues)
 
int getSessionVarValue (char *action, char *varName, ruleExecInfo_t *rei, char **varValue)
 
int insertRulesIntoDB (char *baseName, ruleStruct_t *coreRuleStruct, ruleExecInfo_t *rei)
 
int writeRulesIntoFile (char *fileName, ruleStruct_t *myRuleStruct, ruleExecInfo_t *rei)
 
int readRuleStructFromDB (char *ruleBaseName, char *versionStr, ruleStruct_t *inRuleStrct, ruleExecInfo_t *rei)
 
int insertDVMapsIntoDB (char *baseName, dvmStruct_t *coreDVMStruct, ruleExecInfo_t *rei)
 
int writeDVMapsIntoFile (char *inFileName, dvmStruct_t *myDVMapStruct, ruleExecInfo_t *rei)
 
int readDVMapStructFromDB (char *dvmBaseName, char *versionStr, rulevardef_t *inDvmStrct, ruleExecInfo_t *rei)
 
int insertFNMapsIntoDB (char *baseName, fnmapStruct_t *coreFNMStruct, ruleExecInfo_t *rei)
 
int writeFNMapsIntoFile (char *inFileName, fnmapStruct_t *myFNMapStruct, ruleExecInfo_t *rei)
 
int readFNMapStructFromDB (char *fnmBaseName, char *versionStr, fnmapStruct_t *inFnmStrct, ruleExecInfo_t *rei)
 
int insertMSrvcsIntoDB (msrvcStruct_t *inMsrvcStruct, ruleExecInfo_t *rei)
 
int readMsrvcStructFromDB (int inStatus, msrvcStruct_t *outMsrvcStrct, ruleExecInfo_t *rei)
 
int readMsrvcStructFromFile (char *msrvcFileName, msrvcStruct_t *inMsrvcStruct)
 
int writeMSrvcsIntoFile (char *inFileName, msrvcStruct_t *myMsrvcStruct, ruleExecInfo_t *rei)
 
int _writeXMsg (int streamId, char *hdr, char *msg)
 
int _readXMsg (int streamId, char *contRead, int *msgNum, int *seqNum, char **hdr, char **msg, char **user, char **addr)
 
int _applyRule (char *inAction, msParamArray_t *inMsParamArray, ruleExecInfo_t *rei, int reiSaveFlag)
 
int _applyAllRules (char *inAction, msParamArray_t *inMsParamArray, ruleExecInfo_t *rei, int reiSaveFlag, int allRuleExecFlag)
 
int _execMyRuleWithSaveFlag (char *ruleDef, msParamArray_t *inMsParamArray, ruleExecInfo_t *rei, int reiSaveFlag)
 
int computeHostAddress (rsComm_t *rsComm, char *inStr, rodsHostAddr_t *addr)
 
void disableReDebugger (int state[2])
 
void enableReDebugger (int state[2])
 

Function Documentation

◆ _admShowDVM()

int _admShowDVM ( ruleExecInfo_t rei,
rulevardef_t inRuleVarDef,
int  inx 
)

Definition at line 69 of file nre.ruleAdminMS.cpp.

References _writeString(), rulevardef_t::action, MAX_RULE_LENGTH, rulevardef_t::MaxNumOfDVars, rulevardef_t::var2CMap, and rulevardef_t::varName.

Referenced by msiAdmShowDVM().

Here is the call graph for this function:

◆ _admShowFNM()

int _admShowFNM ( ruleExecInfo_t rei,
rulefmapdef_t inRuleFuncMapDef,
int  inx 
)

Definition at line 131 of file nre.ruleAdminMS.cpp.

References _writeString(), rulefmapdef_t::func2CMap, rulefmapdef_t::funcName, MAX_RULE_LENGTH, and rulefmapdef_t::MaxNumOfFMaps.

Referenced by msiAdmShowFNM().

Here is the call graph for this function:

◆ _applyAllRules()

int _applyAllRules ( char *  inAction,
msParamArray_t inMsParamArray,
ruleExecInfo_t rei,
int  reiSaveFlag,
int  allRuleExecFlag 
)

◆ _applyRule()

int _applyRule ( char *  inAction,
msParamArray_t inMsParamArray,
ruleExecInfo_t rei,
int  reiSaveFlag 
)

◆ _delayExec()

int _delayExec ( const char *  inActionCall,
const char *  recoveryActionCall,
const char *  delayCondition,
ruleExecInfo_t rei 
)

Definition at line 158 of file nre.systemMS.cpp.

References clearBBuf(), fillSubmitConditions(), GlobalDelayExecStack, MAX_NUM_OF_ARGS_IN_ACTION, NULL, packReiAndArg(), RuleExecInfo::pluginInstanceName, RE_TEST_MACRO, RuleExecInfo::rsComm, rsRuleExecSubmit(), and set_plugin_instance_name().

Referenced by delayExec().

Here is the call graph for this function:

◆ _execMyRuleWithSaveFlag()

int _execMyRuleWithSaveFlag ( char *  ruleDef,
msParamArray_t inMsParamArray,
ruleExecInfo_t rei,
int  reiSaveFlag 
)

◆ _readXMsg()

int _readXMsg ( int  streamId,
char *  contRead,
int msgNum,
int seqNum,
char **  hdr,
char **  msg,
char **  user,
char **  addr 
)

Definition at line 532 of file xmsgMS.cpp.

Referenced by initializeReDebug(), and reDebug().

◆ _writeXMsg()

int _writeXMsg ( int  streamId,
char *  hdr,
char *  msg 
)

◆ actionTableLookUp()

int actionTableLookUp ( irods::ms_table_entry ,
char *  action 
)

Definition at line 34 of file irods_re_structs.cpp.

Referenced by execAction3(), and execMicroService3().

◆ applyActionCall()

int applyActionCall ( char *  actionCall,
ruleExecInfo_t rei,
int  reiSaveFlag 
)

◆ applyAllRules()

applyAllRules ( char *  inAction,
msParamArray_t inMsParamArray,
ruleExecInfo_t rei,
int  reiSaveFlag,
int  allRuleExecFlag 
)
Description:\n DEPRECATED - applyAllRules is too ad-hoc and non-deterministic.
If you need to apply multiple rules and catch the cases where one may fail, the best practice is to use the errorcode() and test for the result.
Deprecated:
Since 4.1.0. Will be removed in 4.2.0

Definition at line 204 of file nre.reLib1.cpp.

References ruleEngineEventParam::actionName, APPLY_ALL_RULES_BEGIN, APPLY_ALL_RULES_END, applyRule(), GlobalAllRuleExecFlag, GlobalREAuditFlag, NULL, reDebug(), ruleEngineEventParam::ruleIndex, and writeToTmp().

Here is the call graph for this function:

◆ applyRuleArgPA()

int applyRuleArgPA ( const char *  action,
const char *  args[20],
int  argc,
msParamArray_t inMsParamArray,
ruleExecInfo_t rei,
int  reiSaveFlag 
)

Definition at line 169 of file nre.reLib1.cpp.

References run_tests::action, computeExpressionWithParams(), rError_t::errMsg, freeRErrorContent(), rError_t::len, logErrMsg(), make_region(), NULL, processReturnRes(), region_free(), rsComm_t::rError, and RuleExecInfo::rsComm.

Referenced by applyRuleArg331(), and performAction().

Here is the call graph for this function:

◆ applyRuleBase()

int applyRuleBase ( char *  inAction,
msParamArray_t inMsParamArray,
int  update,
ruleExecInfo_t rei,
int  reiSaveFlag 
)

Definition at line 125 of file nre.reLib1.cpp.

References run_tests::action, ruleEngineEventParam::actionName, APPLY_RULE_BEGIN, APPLY_RULE_END, GlobalREAuditFlag, make_region(), NULL, parseAndComputeExpressionAdapter(), processReturnRes(), reDebug(), region_free(), ruleEngineEventParam::ruleIndex, and writeToTmp().

Referenced by applyRule331(), and applyRuleUpdateParams().

Here is the call graph for this function:

◆ applyRuleUpdateParams()

int applyRuleUpdateParams ( char *  inAction,
msParamArray_t inMsParamArray,
ruleExecInfo_t rei,
int  reiSaveFlag 
)

Definition at line 119 of file nre.reLib1.cpp.

References applyRuleBase().

Referenced by exec_rule().

Here is the call graph for this function:

◆ carryOverMsParam()

int carryOverMsParam ( msParamArray_t sourceMsParamArray,
msParamArray_t targetMsParamArray 
)

◆ checkFilePerms()

int checkFilePerms ( char *  fileName)

Definition at line 444 of file nre.systemMS.cpp.

References buf.

Referenced by doForkExec().

◆ checkRuleCondition()

int checkRuleCondition ( char *  action,
char *  incond,
char *  args[20],
int  argc,
ruleExecInfo_t rei,
int  reiSaveFlag 
)

◆ checkRuleHead()

int checkRuleHead ( char *  ruleHead,
char *  args[20],
int  argc 
)

◆ clearDVarStruct()

int clearDVarStruct ( rulevardef_t inRuleVarDef)

◆ clearFuncMapStruct()

int clearFuncMapStruct ( rulefmapdef_t inRuleFuncMapDef)

Definition at line 776 of file nre.reLib1.cpp.

References appRuleFuncMapDef, appRuleFuncMapDefIndex, clearIndex(), coreRuleFuncMapDef, coreRuleFuncMapDefIndex, rulefmapdef_t::func2CMap, rulefmapdef_t::funcName, rulefmapdef_t::MaxNumOfFMaps, and NULL.

Referenced by clearCoreRule().

Here is the call graph for this function:

◆ clearMsparamInRei()

int clearMsparamInRei ( ruleExecInfo_t rei)

Definition at line 306 of file reStruct.cpp.

References clearMsParamArray(), RuleExecInfo::msParamArray, and NULL.

Here is the call graph for this function:

◆ clearRuleStruct()

int clearRuleStruct ( ruleStruct_t inRuleStrct)

Definition at line 728 of file nre.reLib1.cpp.

References appRuleStrct, clearResources(), coreRuleStrct, ruleStruct_t::MaxNumOfRules, NULL, RESC_APP_FUNC_DESC_INDEX, RESC_APP_RULE_SET, RESC_CORE_FUNC_DESC_INDEX, RESC_CORE_RULE_SET, ruleStruct_t::ruleAction, ruleStruct_t::ruleBase, ruleStruct_t::ruleCondition, ruleStruct_t::ruleHead, and ruleStruct_t::ruleRecovery.

Here is the call graph for this function:

◆ computeExpression()

int computeExpression ( char *  expr,
msParamArray_t msParamArray,
ruleExecInfo_t rei,
int  reiSaveFlag,
char *  res 
)

Definition at line 73 of file nre.reLib1.cpp.

Referenced by exec_rule_expression().

◆ computeHostAddress()

int computeHostAddress ( rsComm_t rsComm,
char *  inStr,
rodsHostAddr_t addr 
)

◆ disableReDebugger()

void disableReDebugger ( int  state[2])

Definition at line 32 of file nre.reHelpers1.cpp.

References GlobalREAuditFlag, and GlobalREDebugFlag.

Referenced by processXMsg().

◆ doForkExec()

int doForkExec ( char *  prog,
char *  arg1 
)

Definition at line 364 of file nre.systemMS.cpp.

References checkFilePerms(), and pid_age::pid.

Here is the call graph for this function:

◆ enableReDebugger()

void enableReDebugger ( int  state[2])

Definition at line 40 of file nre.reHelpers1.cpp.

References GlobalREAuditFlag, and GlobalREDebugFlag.

Referenced by processXMsg().

◆ evaluateExpression()

int evaluateExpression ( char *  expr,
char *  res,
ruleExecInfo_t rei 
)

◆ execMyRule()

int execMyRule ( char *  ruleDef,
msParamArray_t inMsParamArray,
const char *  outParamsDesc,
ruleExecInfo_t rei 
)

Definition at line 239 of file nre.reLib1.cpp.

References execMyRuleWithSaveFlag().

Referenced by exec_rule_text().

Here is the call graph for this function:

◆ execMyRuleWithSaveFlag()

int execMyRuleWithSaveFlag ( char *  ruleDef,
msParamArray_t inMsParamArray,
const char *  outParamsDesc,
ruleExecInfo_t rei,
int  reiSaveFlag 
)

Definition at line 285 of file nre.reLib1.cpp.

References ruleEngineEventParam::actionName, appendOutputToInput(), EXEC_MY_RULE_BEGIN, EXEC_MY_RULE_END, extractVarNames(), GlobalREAuditFlag, LOG_NOTICE, make_region(), MAX_PARAMS_LEN, NULL, parseAndComputeRuleAdapter(), reDebug(), region_free(), rodsLog(), ruleEngineEventParam::ruleIndex, and irods.pypyodbc::status.

Referenced by execMyRule().

Here is the call graph for this function:

◆ executeMicroService()

int executeMicroService ( char *  action,
char *  args[20],
int  argc,
ruleExecInfo_t rei 
)

◆ executeMicroServiceNew()

int executeMicroServiceNew ( char *  inAction,
msParamArray_t inMsParamArray,
ruleExecInfo_t rei 
)

◆ executeMyRuleAction()

int executeMyRuleAction ( char *  inAction,
msParamArray_t inMsParamArray,
ruleExecInfo_t rei,
int  reiSaveFlag 
)

◆ executeMyRuleBody()

int executeMyRuleBody ( char *  action,
char *  ruleAction,
char *  ruleRecovery,
msParamArray_t inMsParamArray,
ruleExecInfo_t rei,
int  reiSaveFlag 
)

◆ executeMyRuleRecovery()

int executeMyRuleRecovery ( char *  ruleRecovery,
msParamArray_t inMsParamArray,
ruleExecInfo_t rei,
int  reiSaveFlag 
)

◆ executeRuleAction()

int executeRuleAction ( char *  inAction,
ruleExecInfo_t rei,
int  reiSaveFlag 
)

◆ executeRuleActionNew()

int executeRuleActionNew ( char *  inAction,
msParamArray_t inMsParamArray,
ruleExecInfo_t rei,
int  reiSaveFlag 
)

◆ executeRuleBody()

int executeRuleBody ( char *  action,
char *  ruleAction,
char *  ruleRecovery,
char *  args[20],
int  argc,
ruleExecInfo_t rei,
int  reiSaveFlag 
)

◆ executeRuleBodyNew()

int executeRuleBodyNew ( char *  action,
char *  ruleAction,
char *  ruleRecovery,
msParamArray_t inMsParamArray,
ruleExecInfo_t rei,
int  reiSaveFlag 
)

◆ executeRuleRecovery()

int executeRuleRecovery ( char *  ruleRecovery,
ruleExecInfo_t rei,
int  reiSaveFlag 
)

◆ executeRuleRecoveryNew()

int executeRuleRecoveryNew ( char *  ruleRecovery,
msParamArray_t inMsParamArray,
ruleExecInfo_t rei,
int  reiSaveFlag 
)

◆ freeRuleArgs()

int freeRuleArgs ( char *  args[],
int  argc 
)

◆ getActionRecoveryList()

int getActionRecoveryList ( char *  ruleAction,
char *  ruleRecovery,
char *  actionArray[],
char *  recoveryArray[] 
)

Referenced by showRules().

◆ getAllSessionVarValue()

int getAllSessionVarValue ( ruleExecInfo_t rei,
keyValPair_t varKeyVal 
)

int getSetValFrom(char *varMap, _t **inptr, char **varValue, void *newVarValue) { char varName[NAME_LEN]; char *varMapCPtr; int i; _t *ptr;

ptr = *inptr;

if (varMap == NULL) { i = getSetLeafValue(varValue,inptr, (void *) inptr, newVarValue, RE_PTR); return i; }

if (ptr == NULL) return NULL_VALUE_ERR; i = getVarNameFromVarMap(varMap, varName, &varMapCPtr); if (i != 0) return i; if (!strcmp(varName, "") ) g; else if (!strcmp(varName, "") ) i = getSetLeafValue(varValue,&(ptr->), (void *) ptr-> , newVarValue,RE_STR); else if (!strcmp(varName, "") ) i = getSetLeafValue(varValue,&(ptr->), (void *) ptr-> , newVarValue,RE_STR); else if (!strcmp(varName, "") ) i = getSetLeafValue(varValue,&(ptr->), (void *)ptr-> , newVarValue,RE_STR); else if (!strcmp(varName, "") ) i = getSetLeafValue(varValue,&(ptr->), (void *)ptr-> , newVarValue, RE_INT); else if (!strcmp(varName, "") ) i = getSetLeafValue(varValue,&(ptr->), (void *)ptr-> , newVarValue, RE_INT); else if (!strcmp(varName, "") ) i = getSetLeafValue(varValue,&(ptr->), (void *)ptr-> , newVarValue, RE_INT); else if (!strcmp(varName, "") ) i = getSetLeafValue(varValue,&(ptr->), (void *)ptr-> , newVarValue, RE_INT); else if (!strcmp(varName, "") ) i = getSetLeafValue(varValue,&(ptr->), (void *)ptr-> , newVarValue, RE_INT); else if (!strcmp(varName, "") ) i = getSetLeafValue(varValue,&(ptr->), (void *)ptr-> , newVarValue, RE_INT); else if (!strcmp(varName, "") ) g; else if (!strcmp(varName, "") ) g; else if (!strcmp(varName, "") ) g; if (!strcmp(varName, "") ) g; else if (!strcmp(varName, "") ) g; else if (!strcmp(varName, "") ) g; else return UNDEFINED_VARIABLE_MAP_ERR; return i;

}

int getSetValFrom(char *varMap, _t **inptr, char **varValue, void *newVarValue) { char varName[NAME_LEN]; char *varMapCPtr; int i; _t *ptr;

ptr = *inptr;

if (varMap == NULL) { i = getSetLeafValue(varValue,inptr, (void *) inptr, newVarValue, RE_PTR); return i; }

if (ptr == NULL) return NULL_VALUE_ERR; i = getVarNameFromVarMap(varMap, varName, &varMapCPtr); if (i != 0) return i; if (!strcmp(varName, "") ) g; else if (!strcmp(varName, "") ) g; else return UNDEFINED_VARIABLE_MAP_ERR; return i;

}

int getSetValFrom(char *varMap, _t **inptr, char **varValue, void *newVarValue) { char varName[NAME_LEN]; char *varMapCPtr; int i; _t *ptr;

ptr = *inptr;

if (varMap == NULL) { i = getSetLeafValue(varValue,inptr, (void *) inptr, newVarValue, RE_PTR); return i; }

if (ptr == NULL) return NULL_VALUE_ERR; i = getVarNameFromVarMap(varMap, varName, &varMapCPtr); if (i != 0) return i; if (!strcmp(varName, "") ) g; else if (!strcmp(varName, "") ) g; else return UNDEFINED_VARIABLE_MAP_ERR; return i;

}

int getSetValFrom(char *varMap, _t **inptr, char **varValue, void *newVarValue) { char varName[NAME_LEN]; char *varMapCPtr; int i; _t *ptr;

ptr = *inptr;

if (varMap == NULL) { i = getSetLeafValue(varValue,inptr, (void *) inptr, newVarValue, RE_PTR); return i; }

if (ptr == NULL) return NULL_VALUE_ERR; i = getVarNameFromVarMap(varMap, varName, &varMapCPtr); if (i != 0) return i; if (!strcmp(varName, "") ) g; else if (!strcmp(varName, "") ) g; else return UNDEFINED_VARIABLE_MAP_ERR; return i;

}

int getSetValFrom(char *varMap, _t **inptr, char **varValue, void *newVarValue) { char varName[NAME_LEN]; char *varMapCPtr; int i; _t *ptr;

ptr = *inptr;

if (varMap == NULL) { i = getSetLeafValue(varValue,inptr, (void *) inptr, newVarValue, RE_PTR); return i; }

if (ptr == NULL) return NULL_VALUE_ERR; i = getVarNameFromVarMap(varMap, varName, &varMapCPtr); if (i != 0) return i; if (!strcmp(varName, "") ) g; else if (!strcmp(varName, "") ) g; else return UNDEFINED_VARIABLE_MAP_ERR; return i;

}

Definition at line 379 of file reVariableMap.cpp.

References addKeyVal(), coreRuleVarDef, getSessionVarValue(), LOG_ERROR, rulevardef_t::MaxNumOfDVars, NULL, rodsLog(), irods.pypyodbc::status, SYS_INTERNAL_NULL_INPUT_ERR, and rulevardef_t::varName.

Referenced by msiGetSessionVarValue().

Here is the call graph for this function:

◆ getNewVarName()

int getNewVarName ( char *  v,
msParamArray_t msParamArray 
)

Definition at line 14 of file nre.reHelpers2.cpp.

References getMsParamByLabel(), NULL, and staticVarNumber.

Here is the call graph for this function:

◆ getNextAction()

int getNextAction ( char *  listOfAction,
char *  action,
char **  restPtr 
)

◆ getNextValueAndBufFromListOrStruct()

int getNextValueAndBufFromListOrStruct ( char *  typ,
void *  inPtr,
void **  value,
bytesBuf_t **  buf,
void **  restPtr,
int inx,
char **  outtyp 
)

◆ getRule()

int getRule ( int  ri,
char *  ruleBase,
char *  ruleHead,
char *  ruleCondition,
char *  ruleAction,
char *  ruleRecovery,
int  rSize 
)

Definition at line 1007 of file nre.reLib1.cpp.

References appRuleStrct, CORE_RULE_INDEX_OFF, coreRuleStrct, LOG_ERROR, MAX_NUM_OF_RULES, rodsLog(), rstrcpy(), ruleStruct_t::ruleAction, ruleStruct_t::ruleBase, ruleStruct_t::ruleCondition, ruleStruct_t::ruleHead, ruleStruct_t::ruleRecovery, and SYS_RULE_NOT_FOUND.

Referenced by showRules().

Here is the call graph for this function:

◆ getSessionVarValue()

int getSessionVarValue ( char *  action,
char *  varName,
ruleExecInfo_t rei,
char **  varValue 
)

Definition at line 405 of file reVariableMap.cpp.

References run_tests::action, convertResToString(), getVarMap(), getVarValue(), make_region(), NULL, NULL_VALUE_ERR, and region_free().

Referenced by getAllSessionVarValue(), and msiGetSessionVarValue().

Here is the call graph for this function:

◆ getTaggedValues()

std::map<std::string, std::vector<std::string> > getTaggedValues ( const char *  str)

Definition at line 462 of file irods_re_structs.cpp.

Referenced by smsi_remoteExec().

◆ goodExpr()

int goodExpr ( char *  expr)

◆ initRuleStruct()

int initRuleStruct ( const char *  inst_name,
rsComm_t svrComm,
const char *  ruleSet,
const char *  dvmSet,
const char *  fnmSet 
)

◆ insertDVMapsIntoDB()

int insertDVMapsIntoDB ( char *  baseName,
dvmStruct_t coreDVMStruct,
ruleExecInfo_t rei 
)

◆ insertFNMapsIntoDB()

int insertFNMapsIntoDB ( char *  baseName,
fnmapStruct_t coreFNMStruct,
ruleExecInfo_t rei 
)

◆ insertMSrvcsIntoDB()

◆ insertRulesIntoDB()

◆ isAFunction()

int isAFunction ( char *  s)

◆ isLogical()

int isLogical ( char *  s)

◆ isNumber()

int isNumber ( char *  s)

◆ isStarVariable()

int isStarVariable ( char *  str)

◆ makeAction()

int makeAction ( char *  outAction,
char *  action,
char *  args[],
int  argc,
int  len 
)

◆ mapExternalFuncToInternalProc()

int mapExternalFuncToInternalProc ( char *  funcName)

◆ packRei()

int packRei ( ruleExecInfo_t rei,
bytesBuf_t **  packedReiBBuf 
)

Definition at line 261 of file reStruct.cpp.

References LOG_ERROR, NATIVE_PROT, NULL, packStruct(), rodsLog(), RodsPackTable, irods.pypyodbc::status, and SYS_INTERNAL_NULL_INPUT_ERR.

Here is the call graph for this function:

◆ packReiAndArg()

int packReiAndArg ( ruleExecInfo_t rei,
char *  myArgv[],
int  myArgc,
bytesBuf_t **  packedReiAndArgBBuf 
)

Definition at line 390 of file irods_re_structs.cpp.

Referenced by _delayExec().

◆ parseAction()

int parseAction ( char *  inAction,
char *  action,
char *  args[],
int argc 
)

◆ popStack()

int popStack ( strArray_t strArray,
char *  value 
)

Definition at line 291 of file reStruct.cpp.

References StrArray::len, LOG_ERROR, rodsLog(), rstrcpy(), StrArray::size, SYS_INTERNAL_NULL_INPUT_ERR, StrArray::value, and get_irods_version::value.

Here is the call graph for this function:

◆ print_doi()

int print_doi ( dataObjInfo_t doi)

Definition at line 26 of file testMS.cpp.

References DataObjInfo::dataSize, DataObjInfo::dataType, LOG_NOTICE, DataObjInfo::objPath, DataObjInfo::rescName, and rodsLog().

Here is the call graph for this function:

◆ print_uoi()

int print_uoi ( userInfo_t uoi)

Definition at line 36 of file testMS.cpp.

References LOG_NOTICE, rodsLog(), userInfo_t::rodsZone, userInfo_t::userName, and userInfo_t::userType.

Here is the call graph for this function:

◆ pushStack()

int pushStack ( strArray_t strArray,
char *  value 
)

Definition at line 284 of file reStruct.cpp.

References addStrArray(), and get_irods_version::value.

Here is the call graph for this function:

◆ readDVarStructFromFile()

int readDVarStructFromFile ( char *  dvarBaseName,
rulevardef_t inRuleVarDef 
)

varName

action

var2CMap

varId

ruleId

Definition at line 799 of file nre.reLib1.cpp.

References rulevardef_t::action, buf, irods::error::code(), DVARMAP_FILE_READ_ERROR, update_schema_ids_for_cmake::file, irods::get_full_path_for_config_file(), int(), irods::log(), LOG_NOTICE, MAX_DVAR_LENGTH, MAX_NAME_LEN, rulevardef_t::MaxNumOfDVars, NULL, irods::error::ok(), PASS, rodsLog(), rSplitStr(), rulevardef_t::var2CMap, rulevardef_t::varId, and rulevardef_t::varName.

Referenced by initRuleStruct(), and msiAdmReadDVMapsFromFileIntoStruct().

Here is the call graph for this function:

◆ readDVMapStructFromDB()

◆ readFNMapStructFromDB()

◆ readFuncMapStructFromFile()

int readFuncMapStructFromFile ( char *  fmapBaseName,
rulefmapdef_t inRuleFuncMapDef 
)

◆ readMsrvcStructFromDB()

◆ readMsrvcStructFromFile()

◆ readRuleStructFromDB()

◆ readRuleStructFromFile()

int readRuleStructFromFile ( const char *  inst_name,
const char *  ruleBaseName 
)

Definition at line 723 of file nre.reLib1.cpp.

References loadRuleFromCacheOrFile().

Referenced by initRuleStruct().

Here is the call graph for this function:

◆ removeTmpVarName()

int removeTmpVarName ( msParamArray_t msParamArray)

Definition at line 30 of file nre.reHelpers2.cpp.

References MsParam::label, MsParamArray::len, MsParamArray::msParam, and rmMsParamByLabel().

Here is the call graph for this function:

◆ replaceArgVar()

int replaceArgVar ( char *  start,
int  size,
char *  args[20],
int  argc 
)

◆ replaceCollVar()

int replaceCollVar ( char *  start,
int  size,
collInfo_t coi 
)

◆ replaceDataVar()

int replaceDataVar ( char *  start,
int  size,
dataObjInfo_t doi 
)

◆ replaceDollarParam()

int replaceDollarParam ( char *  action,
char *  dPtr,
int  len,
char *  args[20],
int  argc,
ruleExecInfo_t rei 
)

◆ replaceIntValue()

int replaceIntValue ( char *  start,
int  size,
int  inval,
int  paramLen 
)

◆ replaceLongValue()

int replaceLongValue ( char *  start,
int  size,
rodsLong_t  inval,
int  paramLen 
)

◆ replaceSessionVar()

int replaceSessionVar ( char *  action,
char *  start,
int  size,
ruleExecInfo_t rei 
)

◆ replaceStarVar()

int replaceStarVar ( char *  action,
char *  start,
int  size,
msParamArray_t inMsParamArray 
)

◆ replaceStrValue()

int replaceStrValue ( char *  start,
int  size,
char *  val,
int  paramLen 
)

◆ replaceULongValue()

int replaceULongValue ( char *  start,
int  size,
rodsULong_t  inval,
int  paramLen 
)

◆ replaceUserVar()

int replaceUserVar ( char *  start,
int  size,
userInfo_t uoic,
userInfo_t uoip 
)

◆ replaceVariables()

int replaceVariables ( char *  action,
char *  inStr,
char *  args[20],
int  argc,
ruleExecInfo_t rei 
)

◆ splitActions()

int splitActions ( char *  expr,
char *  expr1,
char **  expr2 
)

◆ splitExpression()

int splitExpression ( char *  expr,
char *  expr1,
char *  expr2,
char *  oper 
)

◆ unpackRei()

int unpackRei ( rsComm_t rsComm,
ruleExecInfo_t **  rei,
bytesBuf_t packedReiBBuf 
)

Definition at line 362 of file irods_re_structs.cpp.

◆ unpackReiAndArg()

int unpackReiAndArg ( rsComm_t rsComm,
ruleExecInfoAndArg_t **  reiAndArg,
bytesBuf_t packedReiAndArgBBuf 
)

Definition at line 434 of file irods_re_structs.cpp.

◆ writeDVMapsIntoFile()

int writeDVMapsIntoFile ( char *  inFileName,
dvmStruct_t myDVMapStruct,
ruleExecInfo_t rei 
)

Definition at line 1383 of file nre.reLib1.cpp.

References rulevardef_t::action, irods::error::code(), update_schema_ids_for_cmake::file, FILE_OPEN_ERR, irods::get_full_path_for_config_file(), irods::log(), LOG_NOTICE, MAX_NAME_LEN, rulevardef_t::MaxNumOfDVars, NULL, irods::error::ok(), PASS, rodsLog(), rulevardef_t::var2CMap, rulevardef_t::varId, and rulevardef_t::varName.

Referenced by msiAdmWriteDVMapsFromStructIntoFile().

Here is the call graph for this function:

◆ writeFNMapsIntoFile()

int writeFNMapsIntoFile ( char *  inFileName,
fnmapStruct_t myFNMapStruct,
ruleExecInfo_t rei 
)

Definition at line 1423 of file nre.reLib1.cpp.

References irods::error::code(), update_schema_ids_for_cmake::file, FILE_OPEN_ERR, rulefmapdef_t::fmapId, rulefmapdef_t::func2CMap, rulefmapdef_t::funcName, irods::get_full_path_for_config_file(), irods::log(), LOG_NOTICE, MAX_NAME_LEN, rulefmapdef_t::MaxNumOfFMaps, NULL, irods::error::ok(), PASS, and rodsLog().

Referenced by msiAdmWriteFNMapsFromStructIntoFile().

Here is the call graph for this function:

◆ writeMSrvcsIntoFile()

◆ writeRulesIntoFile()

int writeRulesIntoFile ( char *  fileName,
ruleStruct_t myRuleStruct,
ruleExecInfo_t rei 
)

◆ writeString()

int writeString ( msParam_t where,
msParam_t inString,
ruleExecInfo_t rei 
)

Definition at line 311 of file irods_re_structs.cpp.

Referenced by msiPrintKeyValPair(), and writeLine().

◆ zeroRuleExecInfoStruct()

int zeroRuleExecInfoStruct ( ruleExecInfo_t rei)

Definition at line 254 of file reStruct.cpp.