[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: ost::Digest class Re: protected initDigest() method
From: |
Federico Montesino Pouzols |
Subject: |
Re: ost::Digest class Re: protected initDigest() method |
Date: |
Sat, 29 Nov 2003 13:36:41 +0100 |
User-agent: |
Mutt/1.5.4i |
Hi,
On Wed, Nov 26, 2003 at 03:22:55PM -0500, address@hidden wrote:
> The ost::MD5Digest/ost::SHA1Digest/ost::SHA256Digest classes all inherit
> from the abstract ost::Digest class.daThe ost::Digest class lists a
> protected abstract method, initDigest().daThe digest classes that inherit
> from ost::Digest make their initDigest() methods public.daI want to use the
> ost::Digest class as an interface to multiple digests. That way I can have
> a function that takes a ost::Digest* and uses it for it's digest computing
> needs.
It seems that initDigest was originally intended to be used
only internally by derived classes, but I think the idea you propose
is quite interesting. I see no reason why initDigest cannot be public.
Should we make it public?