In filters.h, MeterFilter, I believe that the Get functions:
  GetTotalBytes()
  GetCurrentSeriesMessages()
  GetTotalMessages()
  GetTotalMessageSeries()
should all be declared const.

GetCurrentMessageBytes() is already const


Here is a small patch to filters.h to do this:

Index: filters.h
===================================================================
--- filters.h   (revision 421)
+++ filters.h   (working copy)
@@ -92,10 +92,10 @@
        void IsolatedInitialize(const NameValuePairs &parameters)
{ResetMeter();}

        lword GetCurrentMessageBytes() const {return m_currentMessageBytes;}
-       lword GetTotalBytes() {return m_totalBytes;}
-       unsigned int GetCurrentSeriesMessages() {return
m_currentSeriesMessages;}
-       unsigned int GetTotalMessages() {return m_totalMessages;}
-       unsigned int GetTotalMessageSeries() {return m_totalMessageSeries;}
+       lword GetTotalBytes() const {return m_totalBytes;}
+       unsigned int GetCurrentSeriesMessages() const {return
m_currentSeriesMessages;}
+       unsigned int GetTotalMessages() const {return m_totalMessages;}
+       unsigned int GetTotalMessageSeries() const {return
m_totalMessageSeries;}

        byte * CreatePutSpace(size_t &size)
                {return AttachedTransformation()->CreatePutSpace(size);}


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the "Crypto++ Users" 
Google Group.
To unsubscribe, send an email to [EMAIL PROTECTED]
More information about Crypto++ and this group is available at 
http://www.cryptopp.com.
-~----------~----~----~----~------~----~------~--~---

Reply via email to