D
Dr Ann Huxtable
Hello,
I am trying to design an abstract data type (lets call it an HTable)
which mimics a heirarchical rcordset (ala ADO 2.0). I have got this far:
1). Data will be stored in a vector of vectors
2). The HTable Constructor will specify the datatypes for the columns -
and this cannot be changed later - ensuring all row columns are of the
same data types
3). Create a Row object that returns a vector "horizontal" slice at the
appropriate "row" in the vector of vectors
4). Create a Column object that returns a vector "vertical" slice at the
appropriate "column" in the vector of vectors
This it seems will work for a flat (2D) table. However, I can't seem to
work out how to make it heirarchical, i.e. specifiy a column that is of
type HTable.
Is there a library out there that already does this kind of thing (save
me reinventing the whel), or can someone please provide some helpful
links or sample code that shows how to do this?
Thanks very much
Ann
I am trying to design an abstract data type (lets call it an HTable)
which mimics a heirarchical rcordset (ala ADO 2.0). I have got this far:
1). Data will be stored in a vector of vectors
2). The HTable Constructor will specify the datatypes for the columns -
and this cannot be changed later - ensuring all row columns are of the
same data types
3). Create a Row object that returns a vector "horizontal" slice at the
appropriate "row" in the vector of vectors
4). Create a Column object that returns a vector "vertical" slice at the
appropriate "column" in the vector of vectors
This it seems will work for a flat (2D) table. However, I can't seem to
work out how to make it heirarchical, i.e. specifiy a column that is of
type HTable.
Is there a library out there that already does this kind of thing (save
me reinventing the whel), or can someone please provide some helpful
links or sample code that shows how to do this?
Thanks very much
Ann