- Scriptcontext debugged to be working
- Added a drivable adapter to scriptcontext nodes - Added subsampling to simulated histograms (and as a general option) in order to support Gumtree testing.
This commit is contained in:
@@ -715,6 +715,17 @@ static hdbCallbackReturn SICSScriptReadCallback(pHdb node, void *userData,
|
||||
}
|
||||
return hdbAbort;
|
||||
}
|
||||
|
||||
/*
|
||||
* do we need to copy?
|
||||
*/
|
||||
if(strstr(data,"@@NOCOPY@@") != NULL){
|
||||
return hdbContinue;
|
||||
}
|
||||
|
||||
/*
|
||||
* we need to copy: do it
|
||||
*/
|
||||
equal = strchr(data,'=');
|
||||
if(equal != NULL){
|
||||
data = equal + 1;
|
||||
@@ -1412,7 +1423,7 @@ void RemoveSICSInternalCallback(void *internalID) {
|
||||
m.type = killPtr;
|
||||
m.pPtr = internalID;
|
||||
RecurseCallbackChains(GetHipadabaRoot(),(pHdbMessage)&m);
|
||||
ForEachCommand(RemoveParNodeCallback, internalID);
|
||||
ForEachCommand(RemoveParNodeCallback, internalID);
|
||||
}
|
||||
/*--------------------------------------------------------------------------*/
|
||||
int SICSHdbGetPar(void *obj, SConnection *pCon, char *path, hdbValue *v){
|
||||
@@ -2951,7 +2962,25 @@ static int SetSICSHdbProperty(SConnection *pCon, SicsInterp *pSics, void *pData,
|
||||
SCSendOK(pCon);
|
||||
return 1;
|
||||
}
|
||||
/*--------------------------------------------------------------------------*/
|
||||
/*-------------------------------------------------------------------------------*/
|
||||
static int DelSICSHdbProperty(SConnection *pCon, SicsInterp *pSics, void *pData,
|
||||
int argc, char *argv[]){
|
||||
pHdb targetNode = NULL;
|
||||
|
||||
if(argc < 3) {
|
||||
SCWrite(pCon,"ERROR: need path key as parameters",eError);
|
||||
return 0;
|
||||
}
|
||||
targetNode = FindHdbNode(NULL,argv[1],pCon);
|
||||
if(targetNode == NULL){
|
||||
SCWrite(pCon,"ERROR: node not found",eError);
|
||||
return 0;
|
||||
}
|
||||
SetHdbProperty(targetNode,argv[2], NULL);
|
||||
SCSendOK(pCon);
|
||||
return 1;
|
||||
}
|
||||
/*--------------------------------------------------------------------------*/
|
||||
static int GetSICSHdbProperty(SConnection *pCon, SicsInterp *pSics, void *pData,
|
||||
int argc, char *argv[]){
|
||||
pHdb targetNode = NULL;
|
||||
@@ -3106,6 +3135,7 @@ int InstallSICSHipadaba(SConnection *pCon, SicsInterp *pSics, void *pData,
|
||||
AddCommand(pSics,"hfactory", HdbNodeFactory, NULL, NULL);
|
||||
AddCommand(pSics,"hmakescript", MakeHdbScriptNode, NULL, NULL);
|
||||
AddCommand(pSics,"hattach", SICSHdbAdapter, NULL, NULL);
|
||||
AddCommand(pSics,"hsubsamplehm", HdbSubSample, NULL, NULL);
|
||||
AddCommand(pSics,"hdel", DeleteHdbNode, NULL, NULL);
|
||||
AddCommand(pSics,"hset", SetHdbNode, NULL, NULL);
|
||||
AddCommand(pSics,"hupdate", UpdateHdbNode, NULL, NULL);
|
||||
@@ -3121,6 +3151,7 @@ int InstallSICSHipadaba(SConnection *pCon, SicsInterp *pSics, void *pData,
|
||||
AddCommand(pSics,"hchain", ChainHdbNode, NULL, NULL);
|
||||
AddCommand(pSics,"hcommand",SicsCommandNode, NULL, NULL);
|
||||
AddCommand(pSics,"hsetprop",SetSICSHdbProperty, NULL, NULL);
|
||||
AddCommand(pSics,"hdelprop",DelSICSHdbProperty, NULL, NULL);
|
||||
AddCommand(pSics,"hgetprop",GetSICSHdbProperty, NULL, NULL);
|
||||
AddCommand(pSics,"hgetpropval",GetSICSHdbPropertyVal, NULL, NULL);
|
||||
AddCommand(pSics,"hmatchprop",MatchHdbProperty, NULL, NULL);
|
||||
|
||||
Reference in New Issue
Block a user