I'm looking for ideas here. Maybe someone out there has figured this out
before and is willing to share :)
We're C++ programmers and many of the applications we build (non-PalmOS) use
back-end databases for status and configuration data. We've always build
classes representing a record in a database table with accessor methods for
the fields. We also have methods to load, update, insert, and delete the
database records. Basically...
class DBRec
{
public:
...
// accessors
int id (void) const { return m_id; }
void id (int i) { m_id = i; }
...
// database manipulators
bool load (int i); // populates the object with data from
// the corresponding database record
// (i.e. "select ... where id=i")
...
};
I'm thinking of coming up with such an animal for our PalmOS apps to wrapper
the Dm* calls that we're using. Any suggestions? Ideas? Reasons it won't
work?
TIA,
-Paul
____________________________________________________________________________
Paul Dugas Computer Engineer | http://pauld.dugas.com/
mailto:[EMAIL PROTECTED] Dugas Enterprises, L.L.C. | TEL +1-404-624-7840
1711 Indian Ridge Drive, Woodstock, GA, 30189-6856 | FAX +1-404-635-8001