Hello again,
Just wondering how you guys would solve this problem...
1. I have a hierarchial structure consisting of Layouts which have several Tracks each of which will have various Layers.
2. I need to store this data into a SQLite database.
So would you...
A. Create a tables for Layers, Tracks and Layers and use the various RowID's to link them together or....
B. Create one table "Layouts" and store the actual structure in some sort of XML-like script in a TEXT column. (RowID, LayoutName, LayoutXML)
Thanks again!
An example script might look like this...
Just wondering how you guys would solve this problem...
1. I have a hierarchial structure consisting of Layouts which have several Tracks each of which will have various Layers.
2. I need to store this data into a SQLite database.
So would you...
A. Create a tables for Layers, Tracks and Layers and use the various RowID's to link them together or....
B. Create one table "Layouts" and store the actual structure in some sort of XML-like script in a TEXT column. (RowID, LayoutName, LayoutXML)
Thanks again!
An example script might look like this...
Code:
Layout:"StripLog"{ Depth="0"; Offset="0"; Rotate="0"; Zoom="0"; Track:"Progress"{ Width="0"; Layer:"Background"{ Type="1"; } Layer:"Date"{ Type="3"; } Layer:"Border"{ Type="2"; } } Track:"Curves"{ Width="0"; Layer:"Background"{ Type="1"; } Layer:"Grid"{ Type="4"; } Layer:"ROP"{ Type="5"; } Layer:"TotalGas"{ Type="5"; } Layer:"Gamma"{ Type="5"; } Layer:"Border"{ Type="2"; } } }
Comment