Menu

[r1958]: / framework / trunk / examples / basic_cache / content.h  Maximize  Restore  History

Download this file

37 lines (26 with data), 577 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
25
26
27
28
29
30
31
32
33
34
35
36
#ifndef CONTENT_H
#define CONTENT_H
#include <cppcms/view.h>
#include <cppcms/form.h>
#include <string>
namespace content {
struct input_form : public cppcms::form {
cppcms::widgets::numeric<int> arg;
cppcms::widgets::submit submit;
input_form()
{
arg.message("N");
submit.value("Calc");
add(arg);
add(submit);
arg.non_empty();
}
};
struct message : public cppcms::base_content {
long long int fact;
int arg;
input_form info;
};
}
#endif
// vim: tabstop=4 expandtab shiftwidth=4 softtabstop=4
MongoDB Logo MongoDB