Menu

[r365]: / framework / trunk / hello_world.cpp  Maximize  Restore  History

Download this file

25 lines (21 with data), 479 Bytes

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#include "worker_thread.h"
#include "manager.h"
using namespace cppcms;
class my_hello_world : public worker_thread {
public:
my_hello_world(worker_settings const &s) : worker_thread(s) {};
virtual void main();
};
void my_hello_world::main()
{
out+="<h1>Simple Hello World test application.</h1>\n";
}
int main(int argc,char ** argv)
{
try {
run_application(argc,argv,simple_factory<my_hello_world>());
}
catch(std::exception const &e) {
cerr<<e.what()<<endl;
}
}
MongoDB Logo MongoDB