Older/WebApplication/WebApplication.h

29 lines
480 B
C
Raw Normal View History

2024-10-30 23:59:59 +08:00
#ifndef __WEBAPPLICATION_H__
#define __WEBAPPLICATION_H__
#include <memory>
#include <thread>
namespace Wt {
class WServer;
2024-11-07 18:21:04 +08:00
namespace Dbo {
class SqlConnectionPool;
}
}; // namespace Wt
2024-10-30 23:59:59 +08:00
class WebApplication {
public:
WebApplication();
~WebApplication();
protected:
void run();
private:
std::unique_ptr<Wt::WServer> m_server;
std::thread m_thread;
2024-11-07 18:21:04 +08:00
std::unique_ptr<Wt::Dbo::SqlConnectionPool> m_blogSqlConnectionPool;
2024-10-30 23:59:59 +08:00
};
#endif // __WEBAPPLICATION_H__