Changeset 312


Ignore:
Timestamp:
Apr 6, 2006, 12:54:12 AM (19 years ago)
Author:
pr
Message:

Added Clear method to BSMemLoggerBase

Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/cppbase/bs_logger.h

    r250 r312  
    9191     *@@changed V0.9.9 (2001-03-30) [umoeller]: renamed from BSLoggerBase
    9292     *@@changed V0.9.20 (2002-07-22) [umoeller]: added copy constructor to avoid flat copy
     93     *@@changed WarpIN V1.0.10 (2006-04-05) [pr]: added Clear method
    9394     */
    9495
     
    113114            void Append(const ustring &ustr);
    114115
     116            void Clear(void);
     117
    115118            BOOL Store(HINI hini, const char *pszApp, const char *pszKey) const;
    116119            BOOL Load(HINI hini, const char *pszApp, const char *pszKey);
  • trunk/src/cppbase/bs_logger.cpp

    r254 r312  
    250250
    251251/*
     252 *@@ Clear:
     253 *      this clears the whole Logger string.
     254 *
     255 *@@added WarpIN V1.0.10 (2006-04-05) [pr]
     256 */
     257
     258void BSMemLoggerBase::Clear(void)
     259{
     260    if (_pabLogString)
     261    {
     262        free(_pabLogString);
     263        _pabLogString = 0;
     264        _cbLogString = 0;
     265    }
     266}
     267
     268/*
    252269 *@@ Store:
    253270 *      this stores the whole BSMemLoggerBase in the given profile key.
Note: See TracChangeset for help on using the changeset viewer.