in reply to Specifying multiple conditions in a config file

If I understand correctly, you want to research 'dispatch tables'.

They may not provide you with all of the complexity you are looking to achieve, but they will get you well on your way.

Perhaps you could show some code and a snip with examples from your config file

Steve

  • Comment on Re: Specifying multiple conditions in a config file

Replies are listed 'Best First'.
Re^2: Specifying multiple conditions in a config file
by planetscape (Chancellor) on Jan 25, 2012 at 13:18 UTC
Re^2: Specifying multiple conditions in a config file
by korpenkraxar (Sexton) on Feb 04, 2012 at 19:19 UTC

    Hi!

    Yes something like a dispatch table is probably what I need. I plan to use objects that register signals that they listen for and a state engine that keeps track of the signals. When an object catches a signal/condition it may send new ones and the fall-through restarts. The actual sensory input comes from a pipe or socket.