EmptyLog.h 1020 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. //////////////////////////////////////////////////////////////////////
  2. //
  3. // OptLogBase.h: interface of the Log class.
  4. //
  5. // Written By: Matthias Wacker
  6. //
  7. //////////////////////////////////////////////////////////////////////
  8. #ifndef _OPT_LOG_EMPTY_H_
  9. #define _OPT_LOG_EMPTY_H_
  10. #include <string>
  11. #include <sstream>
  12. #include "optimization/OptLogBase.h"
  13. /*!
  14. base class for all log classes
  15. */
  16. class EmptyLog : public OptLogBase
  17. {
  18. public:
  19. /*!
  20. Constructor.
  21. */
  22. EmptyLog(){};
  23. /*!
  24. Destructor.
  25. */
  26. virtual ~EmptyLog(){};
  27. protected:
  28. /**! Write error message to an output device (file, stdio, etc.)
  29. */
  30. virtual void writeLogError(const char* szMessage){};
  31. /**! Write warning message to an output device (file, stdio, etc.)
  32. */
  33. virtual void writeLogWarning(const char* szMessage){};
  34. /**! Write trace message to an output device (file, stdio, etc.)
  35. */
  36. virtual void writeLogTrace(const char* szMessage) {};
  37. };
  38. #endif