pan-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Pan-devel] DataImpl abstraction


From: Tom Tanner
Subject: [Pan-devel] DataImpl abstraction
Date: Wed, 10 Aug 2022 15:29:48 +0100
User-agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:91.0) Gecko/20100101 Thunderbird/91.12.0

I've been playing with using a database backend rather than files and it seems to me that the DataImpl class doesn't really do what it's meant to do. Or at least it and the Data base class. For instance there is a Server object and an associated list type that exists in DataImpl. But that is very heavily tied in with the gui and a lot of other stuff.

I'm beginning to think that either the DataImpl class needs to be a base class for yet more classes or there needs to be a small abstract class which is passed to the DataImpl class which provides for reading data from/writing data to the desired storage system. I'd prefer the latter as it means it's much much easier to provide an upgrade path (or if not easier, at least cleaner).

However said small abstract class would require accesses to things like the Server class and the associated AssocVector<Quark, Server> container type. which would require breaking up the DataImpl class.

Which is all getting very messy and I'm just pinging the list for thoughts/suggestions



reply via email to

[Prev in Thread] Current Thread [Next in Thread]