1 /** Aesalon, a tool to visualize program behaviour in real time.
2 Copyright (C) 2009-2011, Aesalon development team.
4 Aesalon is distributed under the terms of the GNU GPLv3. See
5 the included file LICENSE for more information.
7 @file src/monitor/Aesalon.cpp
10 #include "monitor/Coordinator.h"
12 #include "storage/RTree.h"
15 int main(int argc
, char *argv
[]) {
18 Monitor::Coordinator
coordinator(argv
);
20 return coordinator
.returnValue();
25 int main(int argc
, char *argv
[]) {
26 typedef Storage::RTree
<double, int, 1, 4, 2> RTree
;
31 b
.setRange(RTree::Range(-2.0, 2.0), 0);
33 b
.setRange(RTree::Range(-1.0, 1.0), 0);
35 b
.setRange(RTree::Range(-1.5, 1.0), 0);
37 b
.setRange(RTree::Range(3.5, 6.0), 0);
39 b
.setRange(RTree::Range(-6.0, -3.5), 0);
42 class Processor
: public RTree::SearchProcessor
{
44 virtual bool process(const RTree::Bound
&bound
, int value
) {
45 Message(Debug
, "Found value " << value
);
52 RTree::Range searchRange
[] = {
53 RTree::Range(-3.0, 3.0)
56 RTree::Bound
sb(searchRange
);
58 rt
.search(searchRange
, &p
);