|
Wt examples
3.3.0
|
#include <Wt/WApplication>#include <Wt/WBreak>#include <Wt/WContainerWidget>#include <Wt/WLineEdit>#include <Wt/WPushButton>#include <Wt/WText>Go to the source code of this file.
Classes | |
| class | HelloApplication |
Functions | |
| WApplication * | createApplication (const WEnvironment &env) |
| int | main (int argc, char **argv) |
| WApplication* createApplication | ( | const WEnvironment & | env | ) |
Definition at line 87 of file hello.C.
{
/*
* You could read information from the environment to decide whether
* the user has permission to start a new application
*/
return new HelloApplication(env);
}
| int main | ( | int | argc, |
| char ** | argv | ||
| ) |
Definition at line 96 of file hello.C.
{
/*
* Your main method may set up some shared resources, but should then
* start the server application (FastCGI or httpd) that starts listening
* for requests, and handles all of the application life cycles.
*
* The last argument to WRun specifies the function that will instantiate
* new application objects. That function is executed when a new user surfs
* to the Wt application, and after the library has negotiated browser
* support. The function should return a newly instantiated application
* object.
*/
return WRun(argc, argv, &createApplication);
}
1.7.5.1