Older/WebApplication/WebApplication.h
luocai 8c0128c4e7
Some checks failed
Deploy / PullDocker (push) Failing after 2s
Deploy / Build (push) Successful in 1m59s
Deploy Docker Images / Docusaurus build and Server deploy (push) Successful in 2h4m57s
update docker images.
2024-11-07 18:21:04 +08:00

29 lines
480 B
C++

#ifndef __WEBAPPLICATION_H__
#define __WEBAPPLICATION_H__
#include <memory>
#include <thread>
namespace Wt {
class WServer;
namespace Dbo {
class SqlConnectionPool;
}
}; // namespace Wt
class WebApplication {
public:
WebApplication();
~WebApplication();
protected:
void run();
private:
std::unique_ptr<Wt::WServer> m_server;
std::thread m_thread;
std::unique_ptr<Wt::Dbo::SqlConnectionPool> m_blogSqlConnectionPool;
};
#endif // __WEBAPPLICATION_H__