You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
57 lines
1.2 KiB
57 lines
1.2 KiB
#ifndef __OBJECTCURSESLOGGINGSERVICE_H_INCL__
|
|
#define __OBJECTCURSESLOGGINGSERVICE_H_INCL__
|
|
|
|
#include "../../cli/cliClass.h"
|
|
#include "../base/basicFunctionality.h"
|
|
#include "../base/basicLoggingService.h"
|
|
#include "../base/basicNCursesEngine.h"
|
|
|
|
#include <time.h>
|
|
|
|
/**
|
|
* TODO: Add class description
|
|
*
|
|
* @author Gagua
|
|
*/
|
|
class objectCURSESLoggingService : public basicLoggingService, public WindowCLI
|
|
{
|
|
private:
|
|
|
|
bool m_bLogging;
|
|
char ** m_ppLines;
|
|
int m_iLinesCount;
|
|
|
|
public:
|
|
|
|
// Constructor
|
|
objectCURSESLoggingService();
|
|
|
|
objectCURSESLoggingService(int x, int y, int w, int h);
|
|
|
|
// Destructor
|
|
~objectCURSESLoggingService();
|
|
|
|
void logMessage(CSTR Msg);
|
|
void logMessage(const char * Msg);
|
|
void paint(void);
|
|
};
|
|
|
|
// 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__
|