FAQ Database Discussion Community


c++ plugin : pass object across boundary (emulating it)

c++,dynamic,dll,plugins,boundary
Since we shouldn't pass anything else than Plain Old Data-structure[1] across a plug-in boundary, I came up with to following idea in order to pass an object : expose all the public method in the plugin "C" interface, and on the application side, wrap the plugin in an object. (See...

Create mask from bwtraceboundary in Matlab

image,matlab,image-processing,mask,boundary
I'm trying to create a mask (or similar result) in order to erase pieces of a binary image that are not attached to the object surrounded by the boundary. I saw this thread (http://www.mathworks.com/matlabcentral/answers/120579-converting-boundary-to-mask) to do this from bwboundaries, but I'm having trouble making suitable changes to it. My goal...

Regex pass dynamic values with boundry

c#,regex,string,boundary
I'm trying to pass a dynamic value at runtime with a boundary \b to a Regex function. My code is: static void Main(string[] args) { string sent = "Accelerometer, gyro, proximity, compass, barometer, gesture, heart rate"; string match = "gyro"; string bound = @"\b"; if (Regex.IsMatch(sent, @"\bgyro", RegexOptions.IgnoreCase)) { Console.WriteLine("match...

Activiti / Camunda change boundary timer with variable

timer,activiti,boundary,camunda
I got a special question regarding timer boundary events on a user task in Activiti/Camunda: When starting the process I set the timer duration with a process variable and use expressions in the boundary definition to resolve the variable. The boundary event is defined on a user task. <bpmn2:timerEventDefinition id="_TimerEventDefinition_11">...