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, 8, 2> RTree
;
30 RTree::Range range
[] = {
31 RTree::Range(-2.0, 2.0)
33 RTree::Bound
b(range
);
36 class Processor
: public RTree::SearchProcessor
{
38 virtual bool process(const RTree::Bound
&bound
, int value
) {
39 Message(Debug
, "Found value " << value
);
45 RTree::Range searchRange
[] = {
46 RTree::Range(-3.0, 3.0)
49 RTree::Bound
sb(searchRange
);
51 rt
.search(searchRange
, &p
);