[bind10-dev] initial thoughts about zone file loader
Michal 'vorner' Vaner
michal.vaner at nic.cz
Wed May 23 08:31:42 UTC 2012
Good morning
On Tue, May 22, 2012 at 09:00:31AM -0700, JINMEI Tatuya / 神明達哉 wrote:
> > And, while thinking about this, I've also come up with a proposal on a
> > related topic: how we can make RDATA implementation more easily. I've
> > created another wiki page about it:
> > http://bind10.isc.org/wiki/RdataAPIFramework
Looking at it, I'd have some questions and/or suggestions:
Do we have time to do the switch? Or, do you think that by implementing this, we
could save some time when implementing the RRTypes we don't yet have and leave
the current Rdata implementations as they are?
So, will this allow that several different RRTypes will be represented by a
single concrete class?
I was thinking, if they have no member variables, all their methods could be
static and we could use them in a template-like manner instead of using virtual
functions. These could be inlined and we could gain some more performance and
possibly more type safety. Then we could create new Rdata classes by just
defining the list as template parameter somehow. Would it make sense?
Like (using the type list approach):
class SRV : public RDataImplementation<P<IntField, P<IntField, P<Int16Field, P<NameField, EndList> > > > > { };
With regards
--
grep me no patterns and I'll tell you no lines.
Michal 'vorner' Vaner
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 198 bytes
Desc: Digital signature
URL: <https://lists.isc.org/pipermail/bind10-dev/attachments/20120523/720a9b35/attachment.bin>
More information about the bind10-dev
mailing list