| Gavin Doughtie on 22 Aug 2003 20:56:54 -0000 |
[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]
| Re: [ALACPP] boost::bind and global functions? |
Here's more code:
typedef void (*ProcessRowFunc)(FetchRow);
bool MyQueryResultWrapper::nextRow(ProcessRowFunc func)
{
// blah blah, get aFetchRow from Oracle...
func(aFetchRow);
}
// read file info from oracle. This is inside an instance method on a Take object
MyQueryResultWrapper wrap(aCursorLikeThingie);
while(wrap.nextRow(boost::bind(&Take::addFile, this, _1)));
void Take::addFile(FetchRow row)
{
// process the row and add it to myself.
}
Does this reveal the madness of my ways? I'm afraid I can't post much more of our Super Secret Important Code in unobfuscated form...
Gavin
_______________________________________________
alacpp mailing list
alacpp@xxxxxxxxxxx
http://lists.ellipsis.cx/mailman/listinfo/alacpp