#ifndef __OBJECT_MSONWINDOW_LOGGINGSERVICE_H_INCL__ #define __OBJECT_MSONWINDOW_LOGGINGSERVICE_H_INCL__ #include "../base/basicFunctionality.h" #include "../base/basicLoggingService.h" #include #include typedef std::vector vectorCSTR; CSTR wstr2str(wchar_t * wideStr); wchar_t * str2wstr(CSTR Str); /** * TODO: Add class description * * @author Gagua */ class objectMsOnWindowLoggingService : public basicLoggingService { private: bool m_bLogging; vectorCSTR * m_pMessages; HWND m_hWND; size_t m_nLineNumber; // basicMutex * m_pMutex; public: explicit objectMsOnWindowLoggingService(size_t Lines, vectorCSTR * VCT, HWND wnd = NULL); ~objectMsOnWindowLoggingService(); void logMessage(CSTR Msg); void logMessage(const char * Msg); // Copy constructor // TODO: Uncomment the copy constructor when you need it. // objectFileLoggingService(const objectFileLoggingService& src); // Assignment operator // TODO: Uncomment the assignment operator when you need it. // objectFileLoggingService& operator=(const objectFileLoggingService& src); void setWND(HWND ptr) { m_hWND = ptr; } wchar_t * getWString(int id); char * getString(int id); void paint(HDC hdc); }; // TODO: Uncomment the copy constructor when you need it. // inline objectFileLoggingService::objectFileLoggingService(const objectFileLoggingService& src) //{ // // TODO: copy //} // TODO: Uncomment the assignment operator when you need it. // inline objectFileLoggingService& objectFileLoggingService::operator=(const objectFileLoggingService& rhs) //{ // if (this == &rhs) { // return *this; // } // // // TODO: assignment // // return *this; //} #endif // __OBJECTFILELOGGINGSERVICE_H_INCL__