If my spidey sense is tingling correctly, I suspect you are refactoring
to make a Record base class that all other record classes are derived
from.

I have purposely avoided doing this, since I want to make sure that
all record classes are dead simple, and STL container safe.  I've done
large hierarchies of classes before, and making sure that the copy
constructors and all the operator=() functions are correct is a bit of
work, so I had intended to keep the record classes themselves
hierarchy-less.

The hierarchy I've done before had virtual operator=() functions, which
is probably most of the reason why it was so much work (you could
copy any object correctly, even through a base pointer).  But I still
favour simple record classes, just to make them absolutely bulletproof
from the application's perspective.  They should be able to toss
these things around with no fear.

This doesn't prevent us from making helper classes or helper
functions, or even helper templates (although that's less than
ideal, since that just hides the code duplication).

All such helpers would be hidden inside the library, and not accessible
to the application.

I'll commit my file-split work soon, and hopefully you'll see what
I mean.  If you've done a lot of work on these already, I apologise
for not speaking sooner.  I see you're keen on sending patches (excellent!),
so I'll try to post to the list more frequently as I work on things.

 From your previous emails, you have a bunch of record parsing classes
waiting to send, and I haven't been working on any of that side lately,
so we're at least not duplicating work there.

Thanks,
- Chris


On Thu, May 24, 2007 at 10:21:53PM -0400, Chris Frey wrote:
> Hi Brian,
> 
> I spent some time today splitting the records classes into separate files,
> just haven't committed it yet.
> 
> Do you have a compile error that this patch fixes?  It looks like it mainly
> changes the name from Record to RecordT.
> 
> - Chris
> 
> 
> On Thu, May 24, 2007 at 07:14:23PM -0600, Brian Edginton wrote:
> > Chris,
> > 
> >  Could you please add this patch. It fixes some potential namespace 
> > collisions 
> > in the templates in anticipation of refactoring the records classes.
> > 
> > Thanks,
> > -edge
> > 
> > P.S. For anyone who cares and to save someone else work:I have Messages, 
> > PIN 
> > Messages and Saved Email Messages finished but I'll send the patches after 
> > the refactoring is finished.
> > 
> 
> 
> > -------------------------------------------------------------------------
> > This SF.net email is sponsored by DB2 Express
> > Download DB2 Express C - the FREE version of DB2 express and take
> > control of your XML. No limits. Just data. Click to get it now.
> > http://sourceforge.net/powerbar/db2/
> > _______________________________________________
> > Barry-devel mailing list
> > Barry-devel@lists.sourceforge.net
> > https://lists.sourceforge.net/lists/listinfo/barry-devel
> 
> 
> -------------------------------------------------------------------------
> This SF.net email is sponsored by DB2 Express
> Download DB2 Express C - the FREE version of DB2 express and take
> control of your XML. No limits. Just data. Click to get it now.
> http://sourceforge.net/powerbar/db2/
> _______________________________________________
> Barry-devel mailing list
> Barry-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/barry-devel

-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Barry-devel mailing list
Barry-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/barry-devel

Reply via email to