1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889 |
- #ifndef _OPT_LOG_BASE_H_
- #define _OPT_LOG_BASE_H_
- #include <string>
- #include <sstream>
- #include "core/optimization/blackbox/Definitions_core_opt.h"
- namespace OPTIMIZATION {
-
-
- class OptLogBase
- {
- public:
-
-
- OptLogBase();
-
-
- virtual ~OptLogBase();
-
-
-
- void logError(const char* format,...);
-
-
- void logWarning(const char* format,...);
-
-
- void logTrace(const char* format,...);
-
-
- virtual void writeParamsToFile(OPTIMIZATION::matrix_type& parammatrix)
- {
- }
- void init();
- protected:
-
- virtual void writeLogError(const char* szMessage) = 0;
-
- virtual void writeLogWarning(const char* szMessage) = 0;
-
- virtual void writeLogTrace(const char* szMessage) = 0;
- private:
-
- char* m_pMessageBuffer;
-
- int m_nMessageBufferSize;
-
- };
-
- }
- #endif
|