Line | |
---|
1 | BEGIN {
|
---|
2 | print "<html>"
|
---|
3 |
|
---|
4 | print "<head>"
|
---|
5 | print " <meta HTTP-EQUIV=\"Content-Type\" CONTENT=\"text/html; charset=iso-8859-1\">"
|
---|
6 | print " <meta NAME=\"keywords\" CONTENT=\"root, tree, ntuple, format, description\">"
|
---|
7 | print " <title>root tree description</title>"
|
---|
8 | print "</head>"
|
---|
9 |
|
---|
10 | print "<body>"
|
---|
11 |
|
---|
12 | print "<H1>root tree description</H1>"
|
---|
13 | print "<hr>"
|
---|
14 | print "<H2>Branches</H2>"
|
---|
15 | print "<hr>"
|
---|
16 |
|
---|
17 | print "<table style=\"border: 1px dotted;\" align=\"center\" border=\"0\" cellpadding=\"7\" cellspacing=\"3\" widt=\"95%\">"
|
---|
18 | print "<tr><td><b>Branch</b></td>"
|
---|
19 | print "<td><b>Definition</b></td>"
|
---|
20 | print "<td><b>Class</b></td></tr>"
|
---|
21 |
|
---|
22 | even = 1;
|
---|
23 | previous_line = ""
|
---|
24 | }
|
---|
25 |
|
---|
26 | function print_line(previous_line, current_line, even) {
|
---|
27 | if(even) print "<tr bgcolor=\"#eeeeee\">"
|
---|
28 | else print "<tr bgcolor=\"#ffffff\">"
|
---|
29 | split(current_line, a, "\"");
|
---|
30 | print " <td>"a[2]"</td>"
|
---|
31 | split(previous_line, a, "// ");
|
---|
32 | print " <td>"a[2]"</td>"
|
---|
33 | split(current_line, a, ",");
|
---|
34 | split(a[2], b, "::");
|
---|
35 | gsub(" ", "", b[1]);
|
---|
36 |
|
---|
37 | if(b[1] == "ExRootGen" || b[1] == "ExRootSimParticle") b[1] = "ExRootGenParticle";
|
---|
38 |
|
---|
39 | print " <td><a href=\"#"b[1]"\">"b[1]"</a></td>";
|
---|
40 | print "</tr>";
|
---|
41 | }
|
---|
42 |
|
---|
43 | /NewBranch/ {
|
---|
44 | print_line(previous_line, $0, even);
|
---|
45 | even = !even;
|
---|
46 | }
|
---|
47 |
|
---|
48 | {
|
---|
49 | previous_line = $0
|
---|
50 | }
|
---|
51 |
|
---|
52 | END {
|
---|
53 | print "</table>"
|
---|
54 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.