title: c++ and oracle DB and linked lists, which data structures to use?
body: <p>I am writing a program that receives data over time and I am looking for different patterns in the data.</p>
  
  <p>I have to save data for different  processes that I create in the program for future calculations,
  I want to save the data to an Oracle DB (that has some support for storing objects).</p>
  
  <p>the information that I want to relate to a new process has the following structure:
  list of logic expressions:</p>
  
  <pre><code>stage 1  -&gt;(a*b*c)+(d*e)+..(can have more conditions)
  stage 2  -&gt;(f*a*c)+(a*b)+..
  stage 3  -&gt;(g*h*i)+(j*k)+..
  </code></pre>
  
  <p>each letter: a,b, c,d etc represent a logic function that has different parameters related to it, I need to save these parameters for future usage of each logic function.
  the * represents logical AND
  the + represents logical OR</p>
  
  <p>The question is how to implement it?
  I can create an object for each letter, e.g. for "a" (which can be a function or a condition that needs to be check etc) and save the data of this object to the oracle DB.</p>
  
  <p>A numerator can be given to each process to identify it, however I am not sure how to identify each one of the logic functions (e.g. "a") because I need later to assemble the data from the database back to the original process that I am handling (example stage 1).</p>
  
  <p>Regarding linked lists, not sure if to use them in my program to represent the structure of each logic in each stage   e.g.  a->b->c->(new OR expression)->d->e.  or maybe there is a better solution? I can also save this information as a string and try to do parsing later
  e.g.  <code>string command="stage 1  -&gt;(a*b*c)+(d*e)"</code></p>
  
  <p>in case that I will be using linked list, I am not sure how to save the structure of the lists to the database.</p>
  
  <p>for the external structure, stage1,stage2, stage3.. etc not sure also if to use linked lists and how to save them to a database.
  I would appreciate some advice on how to build it.
  Thanks!</p>