#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 76 of file hello.C.
00077 { 00078 /* 00079 * You could read information from the environment to decide whether 00080 * the user has permission to start a new application 00081 */ 00082 return new HelloApplication(env); 00083 }
| int main | ( | int | argc, | |
| char ** | argv | |||
| ) |
Definition at line 85 of file hello.C.
00086 { 00087 /* 00088 * Your main method may set up some shared resources, but should then 00089 * start the server application (FastCGI or httpd) that starts listening 00090 * for requests, and handles all of the application life cycles. 00091 * 00092 * The last argument to WRun specifies the function that will instantiate 00093 * new application objects. That function is executed when a new user surfs 00094 * to the Wt application, and after the library has negotiated browser 00095 * support. The function should return a newly instantiated application 00096 * object. 00097 */ 00098 return WRun(argc, argv, &createApplication); 00099 }
1.5.6