bug-commoncpp
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: ost::Digest class Re: protected initDigest() method


From: David Sugar
Subject: Re: ost::Digest class Re: protected initDigest() method
Date: Sat, 29 Nov 2003 10:23:27 -0500 (EST)

Yes, it was originally meant as a method to be used in other derived
classes.  But I see no issues with changing it either, so long as any
changes like this one are also tracked in the "testing" branch.

David

Federico Montesino Pouzols said:
>
>       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?
>
>
> _______________________________________________
> Bug-commoncpp mailing list
> address@hidden
> http://mail.gnu.org/mailman/listinfo/bug-commoncpp







reply via email to

[Prev in Thread] Current Thread [Next in Thread]