/home/koen/project/wt/public-git/wt/examples/hello/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

WApplication* createApplication ( const WEnvironment env  ) 

Definition at line 69 of file hello.C.

00070 {
00071   /*
00072    * You could read information from the environment to decide whether
00073    * the user has permission to start a new application
00074    */
00075   return new HelloApplication(env);
00076 }

int main ( int  argc,
char **  argv 
)

Definition at line 78 of file hello.C.

00079 {
00080   /*
00081    * Your main method may set up some shared resources, but should then
00082    * start the server application (FastCGI or httpd) that starts listening
00083    * for requests, and handles all of the application life cycles.
00084    *
00085    * The last argument to WRun specifies the function that will instantiate
00086    * new application objects. That function is executed when a new user surfs
00087    * to the Wt application, and after the library has negotiated browser
00088    * support. The function should return a newly instantiated application
00089    * object.
00090    */
00091   return WRun(argc, argv, &createApplication);
00092 }


Generated on Mon Mar 9 08:28:56 2009 for Wt by doxygen 1.5.6