Wt examples 3.3.12
Classes | Functions
hello.C File Reference
#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

WApplicationcreateApplication (const WEnvironment &env)
 
int main (int argc, char **argv)
 

Function Documentation

◆ createApplication()

WApplication * createApplication ( const WEnvironment env)

Definition at line 87 of file hello.C.

88{
89 /*
90 * You could read information from the environment to decide whether
91 * the user has permission to start a new application
92 */
93 return new HelloApplication(env);
94}

◆ main()

int main ( int  argc,
char **  argv 
)

Definition at line 96 of file hello.C.

97{
98 /*
99 * Your main method may set up some shared resources, but should then
100 * start the server application (FastCGI or httpd) that starts listening
101 * for requests, and handles all of the application life cycles.
102 *
103 * The last argument to WRun specifies the function that will instantiate
104 * new application objects. That function is executed when a new user surfs
105 * to the Wt application, and after the library has negotiated browser
106 * support. The function should return a newly instantiated application
107 * object.
108 */
109 return WRun(argc, argv, &createApplication);
110}
WApplication * createApplication(const WEnvironment &env)
Definition hello.C:87

Generated on Fri May 17 2024 for the C++ Web Toolkit (Wt) by doxygen 1.9.8