I am implementing an in-memory table library. I have a ITableSchema interface that defines the columns, table name etc. I also have a IRow interface with methods like get(Column), set(Column). What would be a good practice way to ensure that. If I have Say Two table schemas TableA, TableB and a row implementation for each schema- what would be a good way to ensure RowAs are not used with TableBs etc. can I use templates for this somehow?
Aucun commentaire:
Enregistrer un commentaire