#include <Wt/WApplication>
#include <Wt/WServer>
#include "HangmanGame.h"
#include "Session.h"
Go to the source code of this file.
◆ createApplication()
Definition at line 13 of file hangman.C.
14{
16
18
21
23
25
26 return app;
27}
WMessageResourceBundle & messageResourceBundle()
WContainerWidget * root() const
void setTitle(const WString &title)
static std::string appRoot()
void useStyleSheet(const WLink &link, const std::string &media="all")
void use(const std::string &path, bool loadInMemory=true)
◆ main()
int main |
( |
int |
argc, |
|
|
char ** |
argv |
|
) |
| |
Definition at line 30 of file hangman.C.
31{
32 try {
33 Wt::WServer server(argc, argv, WTHTTP_CONFIGURATION);
34
36
38
39 server.run();
41 std::cerr << e.
what() << std::endl;
42 } catch (std::exception &e) {
43 std::cerr << "exception: " << e.what() << std::endl;
44 }
45}
static void configureAuth()
virtual const char * what() const
Wt::WApplication * createApplication(const Wt::WEnvironment &env)