24 lines
347 B
C++
24 lines
347 B
C++
#ifndef __WEBAPPLICATION_H__
|
|
#define __WEBAPPLICATION_H__
|
|
|
|
#include <memory>
|
|
#include <thread>
|
|
|
|
namespace Wt {
|
|
class WServer;
|
|
};
|
|
|
|
class WebApplication {
|
|
public:
|
|
WebApplication();
|
|
~WebApplication();
|
|
|
|
protected:
|
|
void run();
|
|
|
|
private:
|
|
std::unique_ptr<Wt::WServer> m_server;
|
|
std::thread m_thread;
|
|
};
|
|
|
|
#endif // __WEBAPPLICATION_H__
|